/* OXMAN-inspired editorial layout */

:root {
  --bg: #050606;
  --bg-tinted: #0a0b0d;
  --fg: #ffffff;
  --fg-muted: #ffffff;
  --border-subtle: #1e1f24;
  --accent: #dfbefa;
  --accent-soft: rgba(223, 190, 250, 0.12);

  --font-main: "Montserrat", system-ui, sans-serif;
  --font-mono: "Montserrat", system-ui, sans-serif;

  --max-narrow: 680px;
  --max-wide: 1200px;
  --section-pad: clamp(60px, 10vw, 120px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  mix-blend-mode: difference;
}

.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.5;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.4;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 6, 6, 0.4), rgba(5, 6, 6, 0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: none;
  width: 100%;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(1.57rem, 3.36vw, 2.52rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--font-main);
  font-size: clamp(0.84rem, 1.68vw, 1.08rem);
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Block sections */
.block {
  padding: var(--section-pad) 24px;
}

.block-tinted {
  background: var(--bg-tinted);
}

#impact {
  background: #000000;
}

.block-content {
  max-width: var(--max-wide);
  margin: 0 auto;
  text-align: center;
}

.block-content.narrow {
  max-width: var(--max-narrow);
  margin-left: auto;
  margin-right: auto;
}

.lead,
.block-content p,
.col-text p,
.product-meta p {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  line-height: 1.75;
  color: var(--fg-muted);
}

.lead {
  margin: 0 0 20px;
}

.lead + .lead {
  margin-top: 16px;
}

.block-intro {
  text-align: center;
}

.block-intro .lead {
  margin-bottom: 0;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Section heads */
.section-head {
  font-family: var(--font-main);
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 40px;
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  text-align: center;
}

/* Two-col editorial */
.two-col-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  max-width: var(--max-wide);
  margin: 0 auto 48px;
}

.col-text p {
  margin: 0 0 16px;
}

.col-text p:last-child {
  margin-bottom: 0;
}

/* Stat callouts */
.col-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
}

.block-position-stats {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.block-position-stats .col-stats {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.stat-callout {
  padding: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  color: var(--fg-muted);
}

.stat-label {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

/* Full-bleed images */
.block-image {
  width: 100%;
  margin: 48px 0;
}

.block-image.full-bleed {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
}

.block-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

.pipeline-container {
  background: #ffffff;
  padding: 32px 24px;
  margin-bottom: 0;
}

#pipeline {
  padding-top: 0;
}

.integration-module + .block-image {
  margin-top: 0;
}

.pipeline-container .pipeline-diagram-img {
  width: 50%;
  max-width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: grayscale(100%);
}

.pipeline-container .pipeline-caption {
  color: #000000;
}

.image-placeholder {
  width: 100%;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.placeholder-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

.placeholder-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.image-caption {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-top: 12px;
  padding: 0 24px;
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
}

/* Body Input & Context Input (from review_proposal) — reversed/light theme for image blend */
.input-module {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) 24px;
  text-align: center;
  background: #ffffff;
  color: #000000;
}

.body-input-module,
.context-input-module,
.integration-module,
.showcase-module {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding-left: max(24px, calc(50vw - var(--max-wide) / 2));
  padding-right: max(24px, calc(50vw - var(--max-wide) / 2));
}

.input-module-title {
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 24px;
}

.input-module-text,
.context-intro,
.context-description {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  line-height: 1.75;
  color: #000000;
  max-width: var(--max-narrow);
  margin: 0 auto 32px;
}

.context-question {
  font-family: var(--font-main);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 40px;
  letter-spacing: 0.05em;
}

.body-visual-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 32px 0;
}

.body-visual-placeholder {
  max-width: 320px;
  min-height: 120px;
}

.body-visual-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.body-visual-placeholder.body-geometry {
  max-width: 400px;
  margin: 24px auto;
}

.input-module .media-placeholder {
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.4);
}

.measurements-section {
  margin-top: 48px;
  padding-top: 32px;
}

.input-module .measurements-title {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #000000;
  margin: 0 0 20px;
}

.input-module .measurements-text {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  line-height: 1.8;
  color: #000000;
  margin: 0 0 16px;
}

.measurements-text p {
  margin: 0 0 6px;
}

.input-module .measurements-text strong {
  color: var(--accent);
}

.input-module .text-line {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: #000000;
  margin: 24px 0;
}

.context-video-placeholder {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.context-video-placeholder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text-analysis-placeholder {
  max-width: 800px;
  margin: 40px auto;
}

.text-analysis-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.equations-container {
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-module .equation-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
  border-radius: 6px;
  text-align: left;
}

.input-module .equation-label {
  font-family: var(--font-main);
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.input-module .equation-formula {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
  color: #000000;
  margin: 0;
  line-height: 1.6;
  word-break: break-word;
}

.context-sliders-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 48px;
  margin-top: 48px;
  padding: 24px 0;
}

.context-sliders-row .slider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.input-module .context-sliders-row .slider-item label {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
}

.input-module .context-sliders-row .slider-value {
  font-family: var(--font-main);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 600;
  color: var(--accent);
}

.showcase-embed {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0;
  min-height: 600px;
  height: 70vh;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

.showcase-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Wireframe placeholder */
.wireframe-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: rgba(255, 255, 255, 0.02);
}

.wireframe-placeholder canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wireframe-placeholder .image-caption {
  position: absolute;
  bottom: 16px;
  left: 24px;
  margin: 0;
  padding: 0;
}

/* Platform section */
#platform {
  padding-bottom: clamp(120px, 15vw, 200px);
}

/* Platform details */
.platform-details {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.platform-item {
  margin-bottom: 64px;
}

.platform-item:last-child {
  margin-bottom: 0;
}

.platform-item {
  text-align: center;
}

.platform-item .section-head {
  margin-bottom: 24px;
}

.platform-item .block-content {
  margin-bottom: 48px;
}

.platform-item:last-child .block-content:last-of-type {
  margin-bottom: 0;
}

/* Product gallery */
.product-gallery {
  max-width: var(--max-wide);
  margin: 48px auto 0;
}

.product-item {
  margin-bottom: 80px;
}

.product-item:last-child {
  margin-bottom: 0;
}

.product-image {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* 50% smaller, centered */
.product-image--small {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.product-item:hover .product-image img {
  filter: grayscale(60%);
}

.product-meta {
  max-width: var(--max-narrow);
}

.product-code {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.product-meta h3 {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.product-meta p {
  margin: 0;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: rgba(223, 190, 250, 0.9);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  padding: var(--section-pad) 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.footer-inner .section-head {
  margin-bottom: 24px;
}

.footer-inner .lead {
  margin-bottom: 24px;
}

.footer-meta {
  font-family: var(--font-main);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin: 24px 0 8px;
}

.footer-meta a {
  color: var(--fg);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-fine {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin: 16px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .two-col-editorial {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .col-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-callout {
    padding: 0;
  }

  .platform-body .two-col-editorial {
    grid-template-columns: 1fr;
  }

  .product-item {
    margin-bottom: 48px;
  }

  .body-visual-row {
    flex-direction: column;
    align-items: center;
  }

  .context-sliders-row {
    gap: 32px;
  }
}
