/* Blackglass v2: page layout. Composes the design-system components (components.css) into the landing page. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}
[hidden] {
  display: none !important;
}
.v2-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--line-300);
  background: var(--bg-100);
  color: var(--ink-100);
  font: 450 13px/1.2 var(--font-sans);
  text-decoration: none;
  transform: translateY(-160%);
}
.v2-skip:focus {
  transform: none;
}

/* Masthead mobile panel */
.v2-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 4px var(--page-gutter-sm) 20px;
  border-bottom: 1px solid var(--line-200);
  background: var(--bg-050);
}
.v2-mobile-nav a,
.v2-mobile-nav button {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-100);
  background: none;
  color: var(--ink-100);
  font: 450 16px/1.3 var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

/* Sections */
.v2-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
}
.v2-section > * {
  min-width: 0;
}
.v2-section + .v2-section {
  border-top: 1px solid var(--line-200);
}
.v2-disclosure {
  color: var(--ink-300);
  font: 400 12px/1.5 var(--font-sans);
  text-align: center;
}

/* Platform chapters with the rail */
.v2-platform__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 64px;
}
.v2-platform__intro .b-heading__intro {
  max-width: 40ch;
}
.v2-chapters {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  padding-top: var(--space-12);
  border-top: 1px solid var(--line-200);
}
.v2-chapters > * {
  min-width: 0;
}
.v2-chapters__rail {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
}
.v2-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  min-width: 0;
  padding-bottom: 72px;
}
.v2-chapter + .v2-chapter {
  padding-top: 64px;
  border-top: 1px solid var(--line-200);
}
.v2-chapter:last-child {
  padding-bottom: 0;
}
.v2-subhead {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.v2-subhead h3 {
  font: 450 20px/1.3 var(--font-sans);
  letter-spacing: -0.015em;
}
.v2-subhead p {
  max-width: 56ch;
  color: var(--ink-200);
  font: 400 14px/1.65 var(--font-sans);
  letter-spacing: 0;
}
.v2-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}
.v2-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 60ch;
  color: var(--ink-300);
  font: 400 13px/1.6 var(--font-sans);
}
.v2-note .b-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--signal);
}

/* Report */
.v2-report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.v2-report__copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}
.v2-report__copy .b-heading__intro {
  max-width: 46ch;
}
.v2-report__binder {
  display: grid;
  justify-items: center;
}

/* Viewer dialog: hosts a live product surface; the dialog scrolls under its sticky head */
.b-viewer {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
}
.b-viewer__head {
  position: sticky;
  top: 0;
  z-index: 5;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Product surfaces in the page */
.v2-section .b-lifecycle {
  min-height: 760px;
}
.v2-section .b-lifecycle__view .b-window {
  --peek: 520px;
}
.v2-section .b-tour__view.b-stage {
  min-height: 680px;
}
.v2-section .b-tour__slide .b-window {
  --peek: 560px;
}
.v2-section .b-tour__slide {
  padding: 40px 36px;
}
.v2-proofs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--space-8);
  padding-top: var(--space-12);
  border-top: 1px solid var(--line-200);
}
.v2-proofs__item {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 28px;
  min-width: 0;
}
.v2-proofs__text {
  display: grid;
  gap: 10px;
  max-width: 52ch;
}
.v2-proofs__text h3 {
  font: 450 22px/1.25 var(--font-sans);
  letter-spacing: -0.02em;
}
.v2-proofs__text p:last-child {
  color: var(--ink-200);
  font: 400 14px/1.65 var(--font-sans);
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .v2-platform__intro,
  .v2-report {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .v2-chapters {
    grid-template-columns: minmax(0, 1fr);
  }
  .v2-chapters__rail {
    display: none;
  }
  .v2-proofs {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .v2-section .b-lifecycle {
    min-height: 0;
  }
  .v2-section .b-tour__view.b-stage {
    min-height: 640px;
  }
  .v2-section .b-tour__slide .b-window {
    --peek: 520px;
  }
}
@media (max-width: 600px) {
  .b-viewer__head {
    flex-wrap: wrap;
  }
  .b-viewer__stage {
    padding: 12px;
  }
  .v2-section .b-tour__slide {
    padding: 20px 12px;
  }
  .v2-section .b-lifecycle__content {
    padding: 0 12px 20px;
  }
  .v2-section .b-lifecycle__view {
    padding: 0;
    border: 0;
    background: none;
  }
  .v2-section .b-lifecycle__view::before {
    display: none;
  }
  .v2-section .b-annotated > .b-stage {
    padding: 28px 12px;
  }
}

/* Showcase explorations (appended for comparison) */
.v2-sc-tag {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  height: 26px;
  padding: 0 10px;
  border: 1px dashed var(--line-300);
  border-radius: var(--radius-xs);
  color: var(--ink-200);
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
}
.v2-sc-tag b {
  color: var(--signal);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-sc > .v2-sc-tag {
  margin-bottom: -24px;
}
.v2-sc-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-200);
  border-left: 1px solid var(--line-200);
}
.v2-sc-index a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line-200);
  border-bottom: 1px solid var(--line-200);
  color: var(--ink-200);
  font: 450 14px/1.3 var(--font-sans);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.v2-sc-index a span {
  color: var(--signal);
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
}
.v2-sc-index a:hover {
  background: var(--bg-100);
  color: var(--ink-050);
}
@media (max-width: 900px) {
  .v2-sc-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .v2-sc-index a {
    padding: 14px 12px;
    font-size: 13px;
  }
}
