/* foundmotive.com/opxy overhaul: black and white marketing page */
.opx {
  --bg: #0a0a0b;
  --bg-elev: #111113;
  --ink: #f5f5f0;
  --muted: #a8a8a0;
  --line: #2a2a2c;
  --line-soft: #1c1c1e;
  --white: #ffffff;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-visual img { animation: none !important; }
}

.opx {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.opx img { max-width: 100%; height: auto; display: block; }
.opx a:not(.btn) { color: inherit; }
.opx a.btn:hover { text-decoration: none; }
.opx code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.opx .wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.center { text-align: center; }

/* ----- Hero ----- */
/* Full-bleed cinematic frame. Height comes from aspect-ratio, not the viewport,
   so the shared header does not leave a tall letterboxed wall. */
.opx .hero {
  position: relative;
  width: 100%;
  min-height: 0;
  background: var(--bg);
  display: block;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

#hero-flip {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.opx .hero-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 2.6rem var(--pad) 0.7rem;
  background: linear-gradient(to top, #0a0a0b 0%, #0a0a0b 34%, rgba(10, 10, 11, 0) 100%);
  pointer-events: none;
}
.opx .hero-actions .btn { pointer-events: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover { background: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-lg {
  min-width: min(100%, 14rem);
  min-height: 3.5rem;
  font-size: 1.1rem;
  padding: 1rem 1.85rem;
}

/* ----- Sections ----- */
.opx section {
  padding: clamp(2.1rem, 4.5vw, 3.75rem) 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-sub {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
}

/* ----- Stats ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat {
  text-align: center;
  padding: 0.5rem 0.25rem;
}

.stat-num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ----- Feature cards ----- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.feature-visual > img {
  position: absolute;
  inset: 0;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  animation: softPulse 6s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { opacity: 0.9; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.06); }
}

.feature-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.feature-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-body p:last-child { margin-bottom: 0; }

.credit-inline {
  color: var(--muted);
  font-size: 0.85rem !important;
}

/* ----- Engine grid ----- */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.engine-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.25rem;
  background: transparent;
  min-height: 100%;
}

.engine-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.engine-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.engine-kind {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1920 / 719;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* ----- Install / FAQ / Credits ----- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.install-notes {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
}

.install-notes ul {
  margin: 0;
  padding-left: 1.15rem;
}

.install-notes li { margin: 0.55rem 0; }

.checksum {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: break-word;
}
.checksum code {
  word-break: break-all;
}

.faq {
  max-width: 42rem;
  margin: 0 auto;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "-"; }

.faq details p {
  margin: 0.75rem 0 0.15rem;
  color: var(--muted);
}

.credits {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.credits ul {
  margin: 0;
  padding-left: 1.15rem;
}

.credits li { margin: 0.45rem 0; }

.credits a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  padding: 2rem var(--pad) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line-soft);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--pad);
  pointer-events: none;
}

.topbar a,
.topbar button {
  pointer-events: auto;
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font: 500 11px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: #c6c6c0;
  cursor: pointer;
}

.topbar a:hover,
.topbar button:hover { color: var(--ink); }
.topbar :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.fine-legal { margin-top: 0.8rem; font-size: 0.78rem; letter-spacing: 0.04em; }
.fine-legal a { color: inherit; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 6;
  transform: translateY(-200%);
  background: #f4f2eb;
  color: #141416;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Breakpoints ----- */
/* phone */
@media (max-width: 719px) {
  .opx .hero {
    min-height: 0;
  }
  .hero-stage {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
  }
  .opx .hero-actions {
    gap: 0.55rem;
    padding: 1.35rem var(--pad) 0.45rem;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 0.4rem;
    padding-top: 1rem;
    padding-bottom: 0.65rem;
  }
  .stat { min-width: 0; padding: 0.35rem 0.1rem; }
  .stat-num { font-size: clamp(1.65rem, 8.5vw, 2.4rem); }
  .stat-label { font-size: clamp(0.68rem, 2.7vw, 0.82rem); line-height: 1.2; }
  .features { grid-template-columns: 1fr; }
  .engine-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .btn-lg { width: 100%; }
  .opx section { padding: 1.75rem 0; }
  .section-sub { margin-bottom: 1.1rem; }
  .topbar { padding: 0.75rem var(--pad); }
}

/* Tablet stays two columns. Three columns start only once a card is still readable. */
@media (min-width: 720px) and (max-width: 1099px) {
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) and (max-width: 1440px) {
  .engine-grid { grid-template-columns: repeat(3, 1fr); }
}

/* studio display / large */
@media (min-width: 1441px) {
  .engine-grid { grid-template-columns: repeat(4, 1fr); }
  .opx { --max: 1200px; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ----- OP-XY screen loops ----- */
.engine-screen{background:#000;border-radius:10px;padding:6px;margin:0 0 .85rem;box-shadow:inset 0 0 0 1px #222}
.engine-screen video{display:block;width:100%;height:auto;aspect-ratio:480/220;object-fit:contain;background:#000;image-rendering:pixelated;border-radius:4px}
.feature-visual.feature-screen{display:flex;align-items:center;justify-content:center;padding:1.5rem;background:#050505}
.feature-visual.feature-screen .engine-screen{width:100%;max-width:520px;margin:0}


/* Site chrome stays outside .opx. These only undo global.css rules that share names with this page. */
.opx h1, .opx h2, .opx h3 { font-family: var(--font); }
.opx .hero { padding-top: 0; min-height: 0; }
.opx { margin-bottom: calc(-1 * clamp(2.5rem, 5vw, 6rem)); }

/* Black between the hero buttons and the 11 / 2 / 22 row is three stacks,
   not the hero frame: action-bar padding under the buttons, this section's
   top padding, then padding inside the stats rule. The 2.35 and 1:1 frames stay. */
.opx .hero + section { padding-top: 1.15rem; }
.opx .hero + section .stats { padding-top: 0.65rem; }
@media (max-width: 719px) {
  .opx .hero + section { padding-top: 1rem; }
  .opx .hero + section .stats { padding-top: 0.55rem; }
}

/* Four YouTube clips. Scoped to this strip and its dialog. */
.clip-strip { padding-top: 0.35rem; padding-bottom: 1.15rem; }
.clip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.clip-strip a.clip {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.clip-strip .clip-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #050505;
}
.clip-strip .clip-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.clip-strip .clip-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.45);
}
.clip-strip .clip-play::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  top: 0.55rem;
  border-style: solid;
  border-width: 0.42rem 0 0.42rem 0.62rem;
  border-color: transparent transparent transparent var(--ink);
}
.clip-strip .clip-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem 0.75rem;
}
.clip-strip .clip-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-strip .clip-note {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.clip-strip a.clip:hover { border-color: #3a3a3e; text-decoration: none; }
.clip-strip a.clip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.clip-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  margin: auto;
  padding: 1.15rem 1.15rem 1.25rem;
  color: #f5f5f0;
  background: #111113;
  border: 1px solid #2a2a2c;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
.clip-dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
.clip-dialog .clip-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.clip-dialog h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.clip-dialog .clip-by { margin: -0.45rem 0 0.85rem; color: var(--muted); font-size: 0.85rem; }
.clip-dialog .clip-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.85rem;
  overflow: hidden;
  background: #050505;
  border-radius: 10px;
}
.clip-dialog .clip-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.clip-dialog .clip-watch {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.clip-dialog .btn { width: 100%; }
@media (max-width: 719px) {
  .clip-strip { padding-top: 0.2rem; padding-bottom: 1rem; }
  .clip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
}
