:root {
  --bg: #080b0a;
  --panel: rgba(15, 20, 18, 0.86);
  --panel-strong: rgba(18, 24, 22, 0.98);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f8f6;
  --muted: rgba(245, 248, 246, 0.72);
  --dim: rgba(245, 248, 246, 0.5);
  --field: #8ee6c8;
  --gold: #e9c66b;
  --red: #ff6f63;
  --teal: #58b8c1;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  cursor: none !important;
}

main {
  max-width: 100vw;
  overflow-x: hidden;
}

a,
button {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.52);
}

.cursor.hover {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.back-button {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 20;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(6, 8, 8, 0.64);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--field);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.mi-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 124px max(28px, calc((100vw - 1180px) / 2)) 72px;
  border-bottom: 1px solid var(--line);
  background: #09100f;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.98), rgba(8, 11, 10, 0.76) 48%, rgba(8, 11, 10, 0.54)),
    linear-gradient(0deg, rgba(8, 11, 10, 1), rgba(8, 11, 10, 0.24) 58%, rgba(8, 11, 10, 0.76));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 940px);
  min-width: 0;
}

h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 0.96;
}

.hero-content > p {
  max-width: 790px;
  margin: 22px 0 0;
  color: rgba(245, 248, 246, 0.84);
  font-size: 1.16rem;
  line-height: 1.58;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.reviewer-path,
.scope-note,
.readiness-note {
  border: 1px solid rgba(142, 230, 200, 0.28);
  border-radius: 8px;
  background: rgba(142, 230, 200, 0.08);
}

.reviewer-path {
  max-width: 850px;
  margin-top: 24px;
  padding: 14px 16px;
  color: rgba(245, 248, 246, 0.86);
  font-size: 0.98rem;
  line-height: 1.5;
}

.reviewer-path strong {
  color: var(--field);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
}

.hero-actions,
.link-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions a,
.link-panel a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.hero-actions a:first-child,
.hero-actions a:hover,
.link-panel a:hover {
  border-color: rgba(142, 230, 200, 0.52);
  background: rgba(142, 230, 200, 0.12);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #0b1110;
}

.proof-band div {
  min-height: 104px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}

.proof-band div:last-child {
  border-right: 0;
}

.proof-band span {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.proof-band p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.scope-note,
.readiness-note {
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 0;
  padding: 22px;
}

.scope-note p:not(.eyebrow),
.readiness-note p {
  margin: 0;
  color: rgba(245, 248, 246, 0.82);
  font-size: 1rem;
  line-height: 1.6;
}

.project-section,
.pipeline-summary,
.evidence-package {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0;
}

.section-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 300;
  line-height: 1;
}

.section-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 34px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.project-row.reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.project-row.reverse .project-visual {
  order: 2;
}

.project-row:last-child {
  border-bottom: 0;
}

.project-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.project-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef1f0;
}

.project-visual figcaption {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.elegans-visual img {
  object-fit: contain;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(142, 230, 200, 0.12), rgba(233, 198, 107, 0.08)),
    #111715;
}

.project-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 300;
  line-height: 1.02;
}

.project-copy > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.metric-grid div {
  min-width: 0;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.metric-grid span {
  display: block;
  color: var(--field);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.transfer-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(233, 198, 107, 0.28);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(233, 198, 107, 0.08);
  color: rgba(245, 248, 246, 0.86);
  font-size: 0.92rem;
}

.pipeline-summary {
  border-top: 1px solid var(--line);
  padding-top: 58px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.pipeline-grid article {
  min-width: 0;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.pipeline-grid span {
  display: block;
  color: var(--field);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.pipeline-grid p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.evidence-package {
  border-top: 1px solid var(--line);
}

.handoff-table-wrap {
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.handoff-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.handoff-table th,
.handoff-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  line-height: 1.45;
  vertical-align: top;
}

.handoff-table th {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
}

.handoff-table td:first-child {
  width: 34%;
}

.handoff-table td:nth-child(2) {
  width: 16%;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.86rem;
}

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

.handoff-table a {
  color: var(--field);
  text-decoration: none;
}

.handoff-table a:hover {
  color: var(--text);
}

.readiness-note {
  margin-bottom: 52px;
}

@media (max-width: 900px) {
  .mi-hero {
    min-height: 86vh;
    padding: 104px 24px 54px;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4.4rem);
  }

  .proof-band,
  .project-row,
  .project-row.reverse,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .project-row.reverse .project-visual {
    order: 0;
  }

  .proof-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-section,
  .pipeline-summary,
  .evidence-package,
  .scope-note,
  .readiness-note {
    width: min(100% - 32px, 1180px);
  }

  .section-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .handoff-table {
    min-width: 760px;
  }
}

@media (max-width: 560px) {
  .back-button {
    top: 18px;
    left: 18px;
  }

  .hero-actions a,
  .link-panel a {
    width: 100%;
  }

  .mi-hero {
    padding-top: 92px;
  }

  .metric-grid,
  .transfer-grid {
    grid-template-columns: 1fr;
  }
}
