/* Balanced 40/60 hero; shared geometry keeps the map connections anchored. */
#onyven-reference-live .or-stage {
  max-width: 3000px;
  margin: 0 auto;
  min-height: 0;
  padding: clamp(36px, 4.3vw, 80px) clamp(28px, 2.8vw, 80px);
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(28px, 2.5vw, 60px);
  align-items: center;
}
#onyven-reference-live .or-copy { min-width:0; max-width:none }
#onyven-reference-live .or-eyebrow { font-size:clamp(11px, .98vw, 23px); margin-bottom:clamp(16px, 1vw, 26px) }
#onyven-reference-live h1 { font-size:clamp(39px, 3.05vw, 104px); line-height:.98; letter-spacing:-.045em; margin-bottom:clamp(20px, 1.35vw, 34px) }
#onyven-reference-live .or-body { font-size:clamp(15px, 1.1vw, 25px); line-height:1.42; letter-spacing:-.025em; max-width:620px }
#onyven-reference-live .or-cta-row { margin-top:clamp(24px, 1.8vw, 42px) }
#onyven-reference-live .or-demo { font-size:clamp(15px, 1.2vw, 26px); min-height:48px; padding:clamp(12px, .65vw, 18px) clamp(20px, 1.3vw, 32px); border-radius:10px }
#onyven-reference-live .or-demo svg { width:24px!important; height:24px!important }
#onyven-reference-live .or-product { --u:clamp(.78px, .06cqw, 1.9px) }
#onyven-reference-live .or-window { display:flex;flex-direction:column;width:100%;min-width:0;height:auto;aspect-ratio:1.72;min-height:400px;max-height:min(68svh,1100px);border-radius:18px; padding:0 calc(14 * var(--u)) calc(15 * var(--u)); box-shadow:0 22px 60px #354b4210,0 1px 3px #354b4208 }
#onyven-reference-live .or-nav { flex-shrink:0;height:calc(55 * var(--u)); min-height:48px; margin:0 calc(8 * var(--u)) calc(12 * var(--u)); gap:calc(26 * var(--u)) }
#onyven-reference-live .or-brand { width:calc(126 * var(--u)) }
#onyven-reference-live .or-tab { font-size:max(12px,calc(16 * var(--u))); padding:3px calc(9 * var(--u)) 0; min-height:44px }
#onyven-reference-live .or-app-main { flex:1;min-height:0;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:calc(12 * var(--u)) }
#onyven-reference-live .or-map { border-radius:11px;aspect-ratio:auto;min-height:0;height:auto }
#onyven-reference-live .or-map-land-svg { position:absolute;inset:0;width:100%;height:100% }
#onyven-reference-live .or-supplier {width:22%;height:calc(56 * var(--u));transform:translateY(-50%)}
#onyven-reference-live .or-supplier-a {left:47%;top:22.0968%}
#onyven-reference-live .or-supplier-b {left:52%;top:49.0323%}
#onyven-reference-live .or-supplier-c {left:47%;top:75.9677%}
#onyven-reference-live .or-port {left:5%;top:calc(55% - 80 * var(--u));width:27%;height:calc(60 * var(--u))}
#onyven-reference-live .or-port::after {left:72%}
#onyven-reference-live .or-red-marker {left:25%;top:55%}
#onyven-reference-live .or-plant {left:82%;top:calc(48.3871% - 46.2 * var(--u));width:16%;height:calc(140 * var(--u))}
#onyven-reference-live .or-dot,#onyven-reference-live .or-signal {vector-effect:non-scaling-stroke}
#onyven-reference-live .or-supplier-label { font-size:max(11px,calc(16 * var(--u))); letter-spacing:-.035em; padding-right:calc(9 * var(--u)) }
#onyven-reference-live .or-port { font-size:max(12px,calc(20 * var(--u))) }
#onyven-reference-live .or-plant-label { font-size:max(11px,calc(17 * var(--u))); letter-spacing:-.035em }
#onyven-reference-live .or-checklist { display:grid;grid-template-columns:1fr 1.25fr 1.15fr;align-items:center;gap:calc(12 * var(--u));margin:0; padding:calc(6 * var(--u)) calc(12 * var(--u)); box-shadow:none }
#onyven-reference-live .or-check { font-size:max(12px,calc(16 * var(--u))); line-height:1.25; white-space:normal; gap:calc(8 * var(--u)); padding:calc(6 * var(--u)) 0;border:0 }
#onyven-reference-live .or-check-symbol {width:calc(28 * var(--u));height:calc(28 * var(--u))}
#onyven-reference-live .or-next { margin:0;align-items:center;font-size:max(12px,calc(18 * var(--u))); gap:calc(8 * var(--u)); padding:calc(8 * var(--u)) calc(10 * var(--u)) }
#onyven-reference-live .or-next-symbol {width:calc(30 * var(--u));height:calc(30 * var(--u))}
#onyven-reference-live .or-next br {display:none}
#onyven-reference-live .or-workflow {flex-shrink:0;margin-top:calc(10 * var(--u))}
#onyven-reference-live .or-step { font-size:max(11px,calc(16 * var(--u))); gap:calc(8 * var(--u)); min-height:max(44px,calc(56 * var(--u))); padding:calc(7 * var(--u)) calc(8 * var(--u)) }
#onyven-reference-live .or-step:first-child { white-space:normal; padding:calc(7 * var(--u)) calc(8 * var(--u)) }
#onyven-reference-live .or-step svg {width:calc(32 * var(--u))!important;height:calc(32 * var(--u))!important}
#onyven-reference-live .or-bottom,#onyven-reference-live .or-tail {display:none}

/* The first load explains the relationship without requiring hover. */
#onyven-reference-live .or-trace { fill:none;stroke:#869a37;stroke-width:2.8;stroke-dasharray:1;pointer-events:none;stroke-linecap:round }
#onyven-reference-live .or-check,#onyven-reference-live .or-next { transition:opacity .35s ease }
#onyven-reference-live[data-playing='true'] .or-link:not(.is-revealed) { opacity:.16;stroke:#7b8d83;stroke-width:1.6 }
#onyven-reference-live[data-playing='true'] .or-node:not(.is-revealed) { opacity:.35;filter:none }
#onyven-reference-live[data-playing='true'] .or-check:not(.is-revealed),
#onyven-reference-live[data-playing='true'] .or-next:not(.is-revealed) { opacity:.28 }
#onyven-reference-live[data-playing='true'] .or-red-marker { animation:or-risk-pulse 1.5s ease-out 2 }
#onyven-reference-live .or-step[data-step='0'].is-emphasized { background:#fbe8e6; border-color:#e5aaa2; box-shadow:none }
@keyframes or-risk-pulse { 0%,100% {box-shadow:0 0 0 4px #f6cdc4} 50% {box-shadow:0 0 0 10px #efaaa130,0 0 0 5px #efaaa166} }

@media(max-width:1100px) {
  #onyven-reference-live .or-stage { grid-template-columns:1fr; min-height:0; padding:36px 28px; gap:34px }
  #onyven-reference-live .or-copy { max-width:620px }
  #onyven-reference-live h1 { font-size:clamp(42px,5.5vw,58px); max-width:650px }
  #onyven-reference-live .or-body { font-size:17px;max-width:560px }
  #onyven-reference-live .or-product { --u:clamp(.8px,.095cqw,1.05px) }
  #onyven-reference-live .or-window {height:auto;aspect-ratio:1.55;min-height:500px;max-height:none}
}
@media(max-width:600px) {
  #onyven-reference-live .or-stage { padding:27px 16px 24px;gap:29px }
  #onyven-reference-live h1 { font-size:clamp(35px,7.5vw,44px);margin-bottom:20px }
  #onyven-reference-live .or-eyebrow { font-size:11px }
  #onyven-reference-live .or-body { font-size:15px }
  #onyven-reference-live .or-product { --u:.7px }
  #onyven-reference-live .or-window { padding:0 10px 12px;border-radius:13px }
  #onyven-reference-live .or-window {height:auto;aspect-ratio:auto;min-height:0;max-height:none}
  #onyven-reference-live .or-nav { height:48px;margin:0 0 12px;gap:15px }
  #onyven-reference-live .or-brand { width:82px }
  #onyven-reference-live .or-tabs { flex:1;gap:0;justify-content:space-between }
  #onyven-reference-live .or-tab { font-size:11px;padding:3px 4px 0 }
  #onyven-reference-live .or-app-main { grid-template-columns:1fr;gap:10px }
  #onyven-reference-live .or-map { aspect-ratio:auto;height:clamp(260px,70vw,380px) }
  #onyven-reference-live .or-port { width:34%;left:2%;top:32%;height:18%;font-size:10px;gap:6px }
  #onyven-reference-live .or-port svg {width:20px!important;height:20px!important}
  #onyven-reference-live .or-supplier {width:28%;height:12.2%;left:47%}
  #onyven-reference-live .or-supplier-label {font-size:10px;padding-left:24px;padding-right:4px;height:75%}
  #onyven-reference-live .or-plant {left:79%;top:39%;width:21%;height:28%}
  #onyven-reference-live .or-plant-icon {height:66%}
  #onyven-reference-live .or-plant-label {top:55%;font-size:9px;min-height:29px;padding:5px 0;letter-spacing:-.4px}
  #onyven-reference-live .or-checklist {display:grid;grid-template-columns:1fr 1fr;gap:0 8px;padding:7px 9px;border-radius:8px}
  #onyven-reference-live .or-check {font-size:11px;gap:7px;padding:6px 0;border-bottom:0}
  #onyven-reference-live .or-check-symbol {width:19px;height:19px}
  #onyven-reference-live .or-next {grid-column:1/-1;align-items:center;font-size:12px;padding:8px 10px;margin-top:6px;min-height:40px}
  #onyven-reference-live .or-next br {display:none}
  #onyven-reference-live .or-next-symbol {width:24px;height:24px}
  #onyven-reference-live .or-workflow {grid-template-columns:1fr 20px 1fr;gap:8px 0;margin-top:11px}
  #onyven-reference-live .or-workflow>.or-arrow:nth-of-type(2) {display:none}
  #onyven-reference-live .or-step {font-size:11px;min-height:46px;padding:8px;gap:8px;border-radius:8px}
  #onyven-reference-live .or-step svg {width:23px!important;height:23px!important}
}
@media(max-width:360px) {
  #onyven-reference-live .or-brand {width:68px}
  #onyven-reference-live .or-nav {gap:8px}
  #onyven-reference-live .or-tab {font-size:10px;padding-inline:3px}
}
@media(prefers-reduced-motion:reduce) {
  #onyven-reference-live * {animation:none!important;transition:none!important}
}

/* Keep the response and Network panels stable when tabs change on mobile. */
@media(max-width:600px){
  #onyven-reference-live[data-tab='network'] .or-window{min-height:var(--network-frame-height,0px)}
}

/* The second example reuses the existing frame, risk card and response flow. */
#onyven-reference-live .or-incident-copy {display:flex;flex-direction:column;align-items:flex-start;gap:3px;line-height:1.15}
#onyven-reference-live .or-incident-location {font-size:max(9px,.68em);font-weight:450;letter-spacing:.01em}
#onyven-reference-live .or-incident-location[hidden],
#onyven-reference-live .or-incident-leader[hidden],
#onyven-reference-live .or-scene-hidden {display:none!important}
#onyven-reference-live .or-incident-leader {fill:none;stroke:#d9958d;stroke-width:1.4;stroke-dasharray:3 4;vector-effect:non-scaling-stroke;pointer-events:none}
#onyven-reference-live[data-scenario='factory-fire'] .or-port::after {display:none}
#onyven-reference-live[data-scenario='factory-fire'] .or-red-marker {z-index:4}
