:root {
  --bg: #070908;
  --panel: rgba(15, 19, 18, 0.84);
  --panel-strong: rgba(18, 24, 23, 0.96);
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f7f5;
  --muted: rgba(244, 247, 245, 0.72);
  --dim: rgba(244, 247, 245, 0.5);
  --mint: #82efcf;
  --amber: #f0c46b;
  --blue: #7fb7ff;
  --rose: #ff9aa8;
  --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 {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7, 9, 8, 0.88), rgba(7, 9, 8, 1) 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 68px);
  color: var(--text);
  font-family: var(--sans);
  cursor: none !important;
}

a,
button {
  cursor: none !important;
}

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

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  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.68);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.openbim-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 126px max(26px, calc((100vw - 1180px) / 2)) 70px;
  border-bottom: 1px solid var(--line);
  background: #09110f;
}

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

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

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.98), rgba(7, 9, 8, 0.76) 48%, rgba(7, 9, 8, 0.54)),
    linear-gradient(0deg, rgba(7, 9, 8, 1), rgba(7, 9, 8, 0.16) 55%, rgba(7, 9, 8, 0.72));
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

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

.reviewer-path {
  max-width: 870px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(130, 239, 207, 0.3);
  border-radius: 8px;
  background: rgba(130, 239, 207, 0.08);
  color: rgba(244, 247, 245, 0.86);
  font-size: 0.98rem;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

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

.hero-actions,
.single-action,
.repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions a,
.single-action a,
.repo-actions a,
.handoff-grid 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;
  overflow-wrap: anywhere;
  text-align: center;
}

.hero-actions a:first-child,
.hero-actions a:hover,
.single-action a:hover,
.repo-actions a:hover,
.handoff-grid a:hover {
  border-color: rgba(130, 239, 207, 0.54);
  background: rgba(130, 239, 207, 0.12);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 12, 0.9);
}

.proof-band div {
  min-width: 0;
  padding: 24px max(18px, calc((100vw - 1180px) / 8));
  border-right: 1px solid var(--line);
}

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

.proof-band span {
  display: block;
  color: var(--mint);
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
}

.proof-band p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.pipeline-section,
.evidence-section,
.handoff-section,
.validation-section,
.repo-section {
  width: min(1180px, calc(100% - 52px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-copy h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  font-weight: 300;
  line-height: 1.02;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.pipeline-grid article,
.validation-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.pipeline-grid article {
  padding: 18px;
}

.pipeline-grid span,
.handoff-grid span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.pipeline-grid h3 {
  margin: 12px 0 10px;
  font-size: 1.14rem;
  font-weight: 300;
  line-height: 1.22;
}

.pipeline-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.evidence-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.evidence-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #09100f;
  border-bottom: 1px solid var(--line);
}

.evidence-grid figcaption {
  padding: 13px 14px 15px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.handoff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.handoff-grid a {
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 15px;
  background: var(--panel);
}

.handoff-grid strong {
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 300;
}

.validation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.validation-panel {
  overflow: hidden;
  background: #080c0b;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.panel-top span:last-child {
  color: var(--mint);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: rgba(244, 247, 245, 0.88);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
}

.repo-section {
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .proof-band,
  .pipeline-grid,
  .evidence-grid,
  .handoff-grid,
  .validation-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .validation-section {
    gap: 24px;
  }
}

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

  .openbim-hero {
    min-height: 86vh;
    padding: 104px 22px 54px;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.45rem, 12.2vw, 3.8rem);
  }

  .hero-content > p,
  .section-copy > p {
    font-size: 1rem;
  }

  .proof-band,
  .pipeline-grid,
  .evidence-grid,
  .handoff-grid,
  .validation-section {
    grid-template-columns: 1fr;
  }

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

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

  .pipeline-section,
  .evidence-section,
  .handoff-section,
  .validation-section,
  .repo-section {
    width: min(100% - 36px, 1180px);
    padding: 62px 0;
  }

  .hero-actions a,
  .single-action a,
  .repo-actions a {
    width: 100%;
  }
}
