/* Omega Frontier - Zero-WASM WebGL2 + Pure-OM Q32.32 Showcase (Scoped for aienos.com) */
.of {
  --bg: #050912;
  --panel: rgba(8, 13, 25, 0.84);
  --panel-solid: #0a1120;
  --border: rgba(164, 194, 240, 0.18);
  --border-strong: rgba(242, 184, 102, 0.45);
  --text: #eef3fb;
  --muted: #9eb0cb;
  --accent: #f2b866;
  --cyan: #64d2ff;
  --ok: #5be09d;
  --warn: #ff7a70;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 16px 44px;
  color: var(--text);
  font-family: var(--sans);
  box-sizing: border-box;
}
.of *, .of *::before, .of *::after { box-sizing: border-box; }
.of-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.of-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.of-head h1 {
  font-size: clamp(22px, 2.8vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: var(--text);
}
.of-sub {
  font-size: 13.5px;
  line-height: 1.48;
  color: #b7c8e2;
  max-width: 820px;
  margin: 0;
}
.of-verify {
  margin-top: 16px;
  background: #0a1222;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.of-verify-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.of-verify h2 { font-size: 18px; margin: 0; color: #ffffff; }
.of-verify p { font-size: 13px; line-height: 1.52; color: #b7c8e2; margin: 0 0 12px; }
.of-verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.of-pre {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #050912;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.48;
  color: #cbe7ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.of-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.of-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(16, 26, 46, 0.8);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.of-link:hover { border-color: var(--accent); color: #ffffff; }
.of-link-primary { border-color: var(--border-strong); background: rgba(242, 184, 102, 0.18); }

    @property --fade-start {
      syntax: "<length>";
      inherits: false;
      initial-value: 0px;
    }
    @property --fade-end {
      syntax: "<length>";
      inherits: false;
      initial-value: 0px;
    }

    

    

    

    .of .stage-shell {
  position: relative;
  width: 100%;
  height: min(76dvh, 720px);
  min-height: 540px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(164, 194, 240, 0.22);
  background: radial-gradient(circle at 50% 35%, #12203a 0%, #050912 75%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
}

    .of canvas#gl {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      cursor: grab;
      touch-action: none;
    }
    .of canvas#gl:active { cursor: grabbing; }

    /* Top Bar */
    .of .topbar {
      position: absolute;
      top: 12px;
      left: 12px;
      right: 12px;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid var(--border);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
    }

    .of .brand {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: none;
      padding-inline-end: 6px;
      border-inline-end: 1px solid var(--border);
    }

    .of .brand-mark {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 16px;
      color: #08101f;
      background: linear-gradient(135deg, #f8d48b 0%, #e79d42 52%, #64d2ff 100%);
      box-shadow: 0 0 16px rgba(242, 184, 102, 0.35);
    }

    .of .brand-title {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .of .brand-sub {
      display: block;
      font-size: 10px;
      font-family: var(--mono);
      color: var(--cyan);
      letter-spacing: 0.03em;
    }

    /* Accessible single-row scrolling tablist (Modern Web Guidance) */
    .of .tablist-wrap {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      align-items: center;
    }

    .of .tablist {
      display: flex;
      align-items: center;
      gap: 2px;
      overflow-x: auto;
      scrollbar-width: none;
      scroll-snap-type: inline proximity;
      scroll-padding-inline: 2.2rem;
      --fade-size: 2.2rem;
      mask:
        linear-gradient(black, black) no-clip subtract,
        linear-gradient(to right, black, transparent) 0 0 / var(--fade-start) 100% no-repeat no-clip,
        linear-gradient(to right, transparent, black) 100% 0 / var(--fade-end) 100% no-repeat no-clip;
      animation: reveal-fade-start linear both, hide-fade-end linear both;
      animation-timeline: scroll(self inline);
      animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
    }
    .of .tablist::-webkit-scrollbar { display: none; }

    @keyframes reveal-fade-start { to { --fade-start: var(--fade-size); } }
    @keyframes hide-fade-end { from { --fade-end: var(--fade-size); } }

    .of .tablist button[role="tab"] {
      position: relative;
      flex: none;
      scroll-snap-align: start;
      appearance: none;
      border: 0;
      background: transparent;
      color: var(--muted);
      font-family: var(--sans);
      font-size: 11.8px;
      font-weight: 600;
      padding: 7px 8px 9px;
      border-radius: 8px;
      cursor: pointer;
      white-space: nowrap;
      transition: color 0.16s ease, background-color 0.16s ease;
    }

    .of .tablist button[role="tab"]:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.06);
    }

    .of .tablist button[role="tab"]:focus-visible,
    .of .tool-btn:focus-visible,
    .of .preset-btn:focus-visible,
    .of .tour-card:focus-visible,
    details summary:focus-visible {
      outline: 2px solid var(--cyan);
      outline-offset: 2px;
    }

    .of .tablist button[role="tab"][aria-selected="true"] {
      color: var(--accent);
      background: rgba(242, 184, 102, 0.11);
    }

    .of .tablist button[role="tab"][aria-selected="true"]::after {
      content: "";
      position: absolute;
      inset: auto 8px 1px;
      border-block-end: 3px solid var(--accent);
      border-radius: 2px;
    }

    .of .toolbar {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: none;
    }

    .of .tool-btn {
      appearance: none;
      border: 1px solid var(--border);
      background: rgba(16, 26, 46, 0.72);
      color: var(--text);
      font-family: var(--sans);
      font-size: 11.5px;
      font-weight: 600;
      padding: 5px 8px;
      border-radius: 8px;
      cursor: pointer;
      white-space: nowrap;
      transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
    }
    .of .tool-btn:hover {
      border-color: var(--border-strong);
      background: rgba(242, 184, 102, 0.14);
      color: #fff;
    }
    .of .tool-btn.active {
      border-color: var(--accent);
      background: rgba(242, 184, 102, 0.22);
      color: #ffe3b8;
    }
    .of .tool-btn.accent {
      border-color: rgba(100, 210, 255, 0.45);
      color: var(--cyan);
    }

    /* Split-compare interactive wipe handle */
    .of .split-overlay {
      position: absolute;
      inset: 0;
      z-index: 12;
      pointer-events: none;
      display: none;
    }
    .of .split-overlay.visible { display: block; }

    .of .split-line {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(180deg, rgba(242, 184, 102, 0.3), rgba(242, 184, 102, 0.95) 50%, rgba(100, 210, 255, 0.6));
      box-shadow: 0 0 18px rgba(242, 184, 102, 0.55);
      transform: translateX(-1px);
    }

    .of .split-knob {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(8, 13, 25, 0.92);
      border: 2px solid var(--accent);
      color: var(--accent);
      display: grid;
      place-items: center;
      font-size: 14px;
      font-weight: 700;
      pointer-events: auto;
      cursor: ew-resize;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
      user-select: none;
    }

    .of .split-badge {
      position: absolute;
      top: 72px;
      z-index: 14;
      padding: 6px 12px;
      border-radius: 999px;
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.03em;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      pointer-events: none;
      max-width: 44%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .of .split-badge.left {
      left: 16px;
      background: rgba(45, 16, 18, 0.82);
      border: 1px solid rgba(255, 122, 112, 0.45);
      color: #ffc2bc;
    }
    .of .split-badge.right {
      right: 16px;
      background: rgba(10, 32, 26, 0.82);
      border: 1px solid rgba(91, 224, 157, 0.45);
      color: #c2ffe0;
    }

    /* Bottom-left Exhibit Inspector Card */
    .of .exhibit-card {
      position: absolute;
      left: 14px;
      bottom: 14px;
      z-index: 18;
      width: min(400px, calc(100% - 28px));
      max-height: calc(100% - 104px);
      overflow-y: auto;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid var(--border);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
      padding: 14px 16px;
    }

    .of .exhibit-card.collapsed {
      width: auto;
      padding: 8px 12px;
    }
    .of .exhibit-card.collapsed .card-body { display: none; }

    .of .card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .of .eyebrow {
      font-family: var(--mono);
      font-size: 10.5px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .of .exhibit-title {
      margin: 2px 0 0;
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      line-height: 1.25;
    }

    .of .exhibit-copy {
      margin: 8px 0 10px;
      font-size: 12.8px;
      line-height: 1.48;
      color: #d6e2f5;
    }

    .of .controls-grid {
      display: grid;
      gap: 8px;
      margin: 8px 0 10px;
    }

    .of .slider-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 4px 10px;
      align-items: center;
    }
    .of .slider-row label {
      font-size: 11.5px;
      color: var(--muted);
      font-weight: 600;
    }
    .slider-val {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--cyan);
    }
    .of .slider-row input[type="range"] {
      grid-column: 1 / -1;
      width: 100%;
      accent-color: var(--accent);
      cursor: pointer;
      margin: 0;
    }

    .of .preset-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
    }
    .of .preset-btn {
      appearance: none;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
      font-size: 11.5px;
      font-weight: 600;
      padding: 5px 9px;
      border-radius: 8px;
      cursor: pointer;
    }
    .of .preset-btn:hover {
      border-color: var(--accent);
      background: rgba(242, 184, 102, 0.16);
    }

    /* Provenance details */
    .of details.proof-box {
      border-top: 1px solid var(--border);
      padding-top: 8px;
      margin-top: 6px;
    }
    .of details.proof-box summary {
      cursor: pointer;
      font-size: 11.5px;
      font-family: var(--mono);
      color: var(--cyan);
      user-select: none;
      list-style: none;
    }
    .of details.proof-box summary::before {
      content: "▸ ";
      color: var(--accent);
    }
    .of details.proof-box[open] summary::before { content: "▾ "; }

    .of .proof-list {
      margin: 8px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 5px;
      font-size: 11px;
      font-family: var(--mono);
      color: var(--muted);
    }
    .of .proof-list b { color: var(--text); }
    .of .proof-pledge {
      margin: 7px 0 0;
      font-size: 11.5px;
      line-height: 1.4;
      color: #b7c8e2;
    }

    /* Bottom-right Pure-Omega Telemetry & Fault Injection Strip */
    .of .telemetry-bar {
      position: absolute;
      right: 14px;
      bottom: 14px;
      z-index: 18;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      max-width: min(560px, calc(100% - 432px));
      padding: 8px 12px;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid var(--border);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      font-family: var(--mono);
      font-size: 11px;
      box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    }

    .of .metric-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: var(--muted);
      white-space: nowrap;
    }
    .of .metric-pill strong { color: var(--text); font-weight: 600; }
    .of .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--ok);
      box-shadow: 0 0 8px var(--ok);
    }
    .of .fault-toast {
      width: 100%;
      margin-top: 2px;
      padding: 6px 8px;
      border-radius: 8px;
      background: rgba(12, 26, 22, 0.88);
      border: 1px solid rgba(91, 224, 157, 0.35);
      color: #c8ffe3;
      font-size: 10.5px;
      line-height: 1.4;
      display: none;
    }
    .of .fault-toast.visible { display: block; }

    /* Native Modal Dialog (Modern Web Guidance) */
    dialog#tour-dialog {
  --panel-solid: #0a1120; --text: #eef3fb; --muted: #9eb0cb; --accent: #f2b866; --cyan: #64d2ff; --border: rgba(164, 194, 240, 0.18); --border-strong: rgba(242, 184, 102, 0.45); --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      width: min(760px, calc(100vw - 28px));
      max-height: calc(100dvh - 40px);
      border: 1px solid var(--border-strong);
      border-radius: 18px;
      background: var(--panel-solid);
      color: var(--text);
      padding: 20px 22px;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
    }
    dialog#tour-dialog:modal {
      overscroll-behavior: contain;
    }
    dialog#tour-dialog::backdrop {
      background: rgba(3, 6, 14, 0.74);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      overflow: hidden;
      overscroll-behavior: contain;
    }

    .of .dialog-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 12px;
    }
    .of .dialog-head h2 {
      margin: 0;
      font-size: 20px;
      line-height: 1.2;
    }
    .of .dialog-lead {
      margin: 6px 0 14px;
      font-size: 13.5px;
      line-height: 1.5;
      color: #cad7ec;
    }

    .of .tour-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .of .tour-card {
      text-align: left;
      appearance: none;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      padding: 12px;
      border-radius: 12px;
      cursor: pointer;
      display: grid;
      gap: 4px;
      transition: border-color 0.16s ease, background-color 0.16s ease;
    }
    .of .tour-card:hover {
      border-color: var(--accent);
      background: rgba(242, 184, 102, 0.11);
    }
    .of .tour-card small {
      font-family: var(--mono);
      color: var(--accent);
      font-size: 10.5px;
    }
    .of .tour-card strong { font-size: 13.5px; }
    .of .tour-card span {
      font-size: 12px;
      line-height: 1.4;
      color: var(--muted);
    }

    .of .dialog-foot {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border-top: 1px solid var(--border);
      padding-top: 12px;
      font-size: 12px;
      color: var(--muted);
    }

    @media (max-width: 980px) {
      .of .topbar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 7px 9px;
      }
      .of .brand { border-inline-end: 0; }
      .of .tablist-wrap { order: 3; flex-basis: 100%; }
      .of .toolbar {
        order: 2;
        flex-basis: 100%;
        flex-wrap: wrap;
        gap: 4px;
      }
      .of .toolbar .tool-btn {
        font-size: 11px;
        padding: 4px 7px;
      }
      .of .telemetry-bar { display: none; }
      .of .exhibit-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-height: 36dvh;
      }
      .of .split-badge { top: 132px; font-size: 10px; }
    }

    
  
@media (max-width: 980px) {
  .of-verify-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .of { padding: 8px 10px 32px; }
  .of .stage-shell { min-height: 540px; height: 78dvh; }
}
