/* ============================================================
   OMICA HOMEPAGE — 2026/2027 ELEVATED EDITORIAL SYSTEM
   Precision therapies need precision diagnostics.
   ============================================================ */

.hm-wrap {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Same section rhythm as the Biobank / Diagnostics / PRISMA pages */
.hm-section {
  padding-top: clamp(72px, 8vw, 128px);
  padding-bottom: 0;
}

.hm-section.hm-opp { padding-top: clamp(80px, 9vw, 128px); }

.hm-section:last-of-type {
  padding-bottom: clamp(72px, 8vw, 128px);
}

.hm-section .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.hm-section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.hm-section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: var(--lh-section);
  letter-spacing: var(--track-section);
  color: var(--ink);
  text-wrap: balance;
  max-width: 24ch;
}

.hm-fig {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hm-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  background: rgba(17, 13, 23, 0.04);
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 999px;
  color: var(--ink);
}

.hm-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-out);
}

.hm-card-link span {
  display: inline-block;
  transition: transform var(--duration-micro) var(--ease-out);
}

.hm-card-link:hover span {  transform: translateX(3px);
}

/* ── Hero additions ── */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 24px);
  max-width: min(1200px, 100%);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 84px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
  margin: 0;
}

.hero-sub .strip {
  background: var(--paper);
  padding: 0.08em 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  pointer-events: auto;
}

.hero-actions {
  margin-top: 6px;
  pointer-events: auto;
}

.hero-actions .btn {
  pointer-events: auto;
}

/* Without .hero--band these wrappers are inert and the strips sit over the tide */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-aside { display: contents; }

/* ── Band hero — the tide as a plate, the copy on paper beneath it ── */
.hero--print.hero--band {
  height: 100svh;
  min-height: 680px;
  padding-bottom: 0;
  justify-content: flex-start;
}

.hero--band .hero-stage {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.hero--band .hero-copy {
  flex: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 32px);
  align-items: end;
  width: min(1200px, 100%);
  padding-top: clamp(28px, 3.2vw, 44px);
  padding-bottom: clamp(32px, 4vw, 56px);
  pointer-events: auto;
}

.hero--band h1 {
  grid-column: 1 / span 8;
  max-width: 17ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.04;
}

.hero--band .hero-aside {
  grid-column: 9 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 1.6vw, 22px);
  padding-bottom: 0.35em;
}

.hero--band .hero-sub {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: var(--ink-muted);
}

.hero--band .strip,
.hero--band h1 .strip,
.hero--band .hero-sub .strip {
  background: none;
  padding: 0;
}

.hero--band .hero-actions { margin-top: 0; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(8px); }
}

.hero--band h1 { animation: hero-rise var(--duration-reveal) var(--ease-out) 0.2s both; }
.hero--band .hero-aside { animation: hero-rise var(--duration-reveal) var(--ease-out) 0.32s both; }

@media (max-width: 960px) {
  .hero--band h1 { grid-column: 1 / -1; max-width: 18ch; }
  .hero--band .hero-aside {
    grid-column: 1 / span 9;
    margin-top: clamp(18px, 3vw, 28px);
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .hero--print.hero--band {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
  }
  .hero--band .hero-stage { flex: none; height: 56svh; min-height: 340px; }
  .hero--band .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero--band h1 { font-size: clamp(32px, 8.4vw, 48px); }
  .hero--band .hero-aside { margin-top: 0; }
}

/* ── Section: The Opportunity ── */
.hm-opp {
  border-top: 1px solid var(--line);
}

.hm-opp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.hm-opp-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: var(--lh-section);
  letter-spacing: var(--track-section);
  color: var(--ink);
  text-wrap: balance;
  max-width: 16ch;
}

.hm-opp-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 6px;
}

.hm-opp-body .lede {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  max-width: 44ch;
}

.hm-opp-body .prose {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 46ch;
}

/* ── Section: Diagnostics + Biobank Duo ── */
.hm-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--paper-card);
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-move) var(--ease-out),
              background var(--duration-move) var(--ease-out);
}

.hm-card:hover,
.hm-card:focus-within {
  border-color: rgba(17, 13, 23, 0.2);
  background: #e5e2d9;
}

.hm-card:has(.hm-card-link:focus-visible) {
  box-shadow: 0 0 0 2px var(--blue);
}

.hm-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hm-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin: 12px 0 28px;
}

.hm-card-visual .hm-still {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  image-rendering: pixelated;
}

.hm-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: balance;
}

.hm-card > p:not(.hm-fig) {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 44ch;
}

.hm-card > .hm-card-link {
  margin-top: auto;
  padding-top: 28px;
}

/* Card is clickable via link overlay */
.hm-card > .hm-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hm-card > .hm-card-link:focus-visible {
  outline: none;
}

/* ── Section: PRISMA ── */
.hm-prisma-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hm-prisma-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hm-prisma-copy h2 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: var(--lh-section);
  letter-spacing: var(--track-section);
  color: var(--ink);
  text-wrap: balance;
  max-width: 14ch;
}

.hm-prisma-copy .lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 40ch;
}

.hm-prisma-copy .prose {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 42ch;
}

.hm-prisma-copy .hm-card-link { margin-top: 6px; }

/* Worklist: a light, compact take on the workspace. */
.hm-worklist {
  margin: 0;
  padding: 10px;
  background: var(--paper-card);
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: var(--radius-lg);
}

.hm-wl-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 14px;
  font-size: 12px;
  color: var(--ink-muted);
}

.hm-wl-brand { font-weight: 500; letter-spacing: 0.08em; color: var(--ink); }
.hm-wl-tab { color: var(--ink); }
.hm-wl-count { margin-left: auto; }

.hm-wl-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid rgba(17, 13, 23, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hm-wl-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink);
}

.hm-wl-row + .hm-wl-row { border-top: 1px solid rgba(17, 13, 23, 0.07); }

.hm-wl-id { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.hm-wl-site { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-wl-tag {
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid rgba(17, 13, 23, 0.12);
  border-radius: 999px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.hm-wl-tag.is-flag { color: var(--blue); border-color: rgba(48, 27, 235, 0.35); }
.hm-wl-tag.is-wait { border-style: dashed; }

.hm-wl-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 12px;
  align-items: stretch;
}

.hm-wl-thumb {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  object-position: 72% 60%;
  border-radius: var(--radius-sm);
}

.hm-wl-steps {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.hm-wl-steps div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(17, 13, 23, 0.07);
}

.hm-wl-steps div:first-child { border-top: 0; }
.hm-wl-steps dt { color: var(--ink-muted); }
.hm-wl-steps dd { margin: 0; text-align: right; }
.hm-wl-steps div:last-child dd { color: var(--blue); }

.hm-wl-cap {
  padding: 10px 10px 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ── Section: Our Approach ── */
.hm-approach-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.hm-approach-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: var(--lh-section);
  letter-spacing: var(--track-section);
  color: var(--ink);
  text-wrap: balance;
  max-width: 24ch;
  margin-bottom: 16px;
}

.hm-approach-head .lede {
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 60ch;
}

.hm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hm-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hm-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
}

/* Same card heading as .dx-card / .bb-card / .px-card */
.hm-step h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.hm-step p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 38ch;
}

/* ── Approach plates: ink drawings in cards, same treatment as the detail pages ── */
.hm-step {
  padding: 24px 28px 30px;
  background: var(--paper-card);
  border: 1px solid rgba(17, 13, 23, 0.06);
  border-radius: var(--radius-lg);
  gap: 0;
  outline: none;
  transition: border-color var(--duration-move) var(--ease-out), background var(--duration-move) var(--ease-out);
}

.hm-step:hover,
.hm-step:focus-visible { border-color: rgba(17, 13, 23, 0.16); background: #e7e4dc; }
.hm-step:focus-visible { box-shadow: 0 0 0 2px var(--blue); }

.hm-plate {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 200 / 140;
  margin: 18px auto 32px;
  image-rendering: pixelated;
  background: center / 100% 100% no-repeat;
}

.hm-plate[data-plate="tissue"] { background-image: url("../assets/home-approach-tissue-v3.png?v=1"); }
.hm-plate[data-plate="model"] { background-image: url("../assets/home-approach-model.png?v=1"); }
.hm-plate[data-plate="reach"] { background-image: url("../assets/home-approach-reach-v5.png?v=1"); }
.hm-plate.is-live { background: none; }

/* ── Section: Partners ── */
.hm-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-logos li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hm-logo-slot {
  display: grid;
  place-items: center;
  height: 88px;
  border: 1px dashed rgba(17, 13, 23, 0.18);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ── Responsive adjustments ── */
@media (max-width: 960px) {
  .hm-opp-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hm-prisma-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .hm-steps { grid-template-columns: 1fr; }
  .hm-plate { max-width: 300px; }
}

@media (max-width: 768px) {
  .hm-duo { grid-template-columns: 1fr; }
  .hm-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hm-wl-detail { grid-template-columns: 1fr; }
  .hm-wl-row { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; }
}

@media (max-width: 360px) {
  .hm-wl-row { grid-template-columns: 68px minmax(0, 1fr); }
  .hm-wl-tag { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-card,
  .hm-step,
  .hm-card-link span {
    transition: none !important;
  }
}
