/* ==========================================================================
   NAUTILUS — Mission Analysis & Operational Navigation · 03 Operational Navigation
   Prefix on- for this section; .ntl-cta is the shared closing band (same as NEMO).
   Built to mirror the Mission Analysis section: separator, large opening title,
   wine lead line, numbered blocks, hairline cells.
   ========================================================================== */
.on-sec, .ntl-cta{
  --on-wine: var(--theme-color, #79182d);
  --on-head: var(--heading-color, #000);
  --on-text: var(--font-color, #5c5c5c);
  --on-line: var(--border-color, #dcdcdc);
  --on-hfont: var(--heading-font, 'Exo 2', sans-serif);
  --on-hw: var(--font-weight-heading, 600);
  --on-ease: cubic-bezier(.16, 1, .3, 1);
}
.on-sec{ padding: 64px 0 120px; scroll-margin-top: 100px; }

/* separators: hairline as wide as the content, short wine lead segment; draws in on view */
.on-sep{ position: relative; height: 1px; background: var(--on-line); margin-bottom: 56px;
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--on-ease); }
.on-sep::before{ content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--on-wine); }
.on-sep.is-in{ transform: none; }

/* ---------- opening: same scale as the page title ---------- */
.on-title{ margin: 0; font-family: var(--on-hfont); font-weight: var(--on-hw); text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.01em; color: var(--on-head); }
.on-lead{ margin: 22px 0 0; font-family: var(--on-hfont); font-weight: var(--on-hw);
  font-size: clamp(20px, 2vw, 26px); line-height: 1.25; color: var(--on-wine); }
.on-intro{ max-width: 700px; margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--on-text); }

/* ---------- Navigation Room photo + capabilities ---------- */
.on-media{ display: grid; grid-template-columns: 7fr 5fr; gap: 0; margin-top: 48px;
  border: 1px solid var(--on-line); background: var(--bg-color, #F3F3F3); }
.on-photo{ position: relative; margin: 0; min-height: 420px; overflow: hidden; background: #111216; }
.on-photo img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06); transition: transform 1.6s var(--on-ease); }
.on-media.is-in .on-photo img{ transform: none; }
.on-photo figcaption{ position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 18px;
  background: linear-gradient(0deg, rgba(10,11,15,.75), rgba(10,11,15,0)); }
.on-photo figcaption span{ display: inline-flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.on-photo figcaption span::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF5C8A;
  box-shadow: 0 0 0 0 rgba(255,92,138,.6); animation: on-live 2s ease-out infinite; }
@keyframes on-live{ 0%{ box-shadow: 0 0 0 0 rgba(255,92,138,.6); } 100%{ box-shadow: 0 0 0 9px rgba(255,92,138,0); } }

.on-caps{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.on-cap{ position: relative; flex: 1; display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-items: start;
  padding: 30px 30px; border-left: 1px solid var(--on-line); transition: background .35s ease; }
.on-cap + .on-cap{ border-top: 1px solid var(--on-line); }
.on-cap::before{ content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--on-wine);
  transform: scaleY(0); transform-origin: top; transition: transform .5s var(--on-ease); }
.on-cap:hover{ background: #fff; } .on-cap:hover::before{ transform: scaleY(1); }
.on-cap-ico svg{ width: 34px; height: 34px; display: block; fill: none; stroke: var(--on-wine); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.on-cap-ico .on-dot{ fill: var(--on-wine); }
.on-cap h3{ margin: 2px 0 8px; font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: 19px; line-height: 1.3;
  color: var(--on-head); text-transform: none; }
.on-cap p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-text); }

/* ---------- numbered blocks (same look as Mission Analysis) ---------- */
.on-block{ margin-top: 100px; }
.on-block-title{ display: flex; align-items: baseline; gap: 16px; margin: 0 0 16px;
  font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15;
  text-transform: uppercase; color: var(--on-head); }
.on-block-title span{ color: var(--on-wine); }
.on-block-intro{ margin: 0 0 30px; max-width: 760px; font-size: 17px; line-height: 1.65; color: var(--on-text); }
.on-block-title + .on-models{ margin-top: 28px; }

/* ---------- 01 · Prime / Shadow ---------- */
.on-models{ display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--on-line); border: 1px solid var(--on-line); }
.on-model{ position: relative; padding: 30px 32px 36px; background: var(--bg-color, #F3F3F3); transition: background .35s ease; }
.on-model::before{ content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--on-wine);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--on-ease); }
.on-model:hover{ background: #fff; } .on-model:hover::before{ transform: scaleX(1); }
.on-model h4{ margin: 22px 0 10px; font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: 21px; color: var(--on-head); text-transform: none; }
.on-model p{ margin: 0; max-width: 460px; font-size: 15.5px; line-height: 1.62; color: var(--on-text); }

.on-dia{ display: block; width: 100%; max-width: 360px; height: auto; overflow: visible; }
.on-dia text{ font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: 11px; letter-spacing: .14em; text-anchor: middle; }
.on-node rect{ fill: #fff; stroke: #BDBDC4; stroke-width: 1.2; }
.on-node text{ fill: #6E6E78; }
.on-node--nau rect{ fill: var(--on-wine); stroke: var(--on-wine); }
.on-node--nau text{ fill: #fff; }
.on-cap-t{ fill: #8A8A94; font-size: 10px !important; }
.on-sc rect{ fill: #fff; stroke: var(--on-wine); stroke-width: 1.4; }
.on-link{ fill: none; stroke: #CFCFD5; stroke-width: 2; }
.on-link--shadow{ stroke: rgba(121,24,45,.35); }
.on-flow{ fill: none; stroke: var(--on-wine); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 18; opacity: 0; }
.on-flow:not(.on-flow--shadow){ stroke: #8A8A94; }
.on-model:first-child .on-flow{ stroke: var(--on-wine); }
.on-models.is-in .on-flow{ opacity: 1; animation: on-flow 1.1s linear infinite; }
@keyframes on-flow{ to{ stroke-dashoffset: -24; } }
.on-check{ stroke: var(--on-wine); stroke-width: 1.4; stroke-dasharray: 3 3; }
.on-check-tag circle{ fill: #fff; stroke: var(--on-wine); stroke-width: 1.4; }
.on-check-tag path{ fill: none; stroke: var(--on-wine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 02 · scenarios ---------- */
.on-scns{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--on-line); border: 1px solid var(--on-line); }
.on-scn{ position: relative; padding: 26px 26px 30px; background: var(--bg-color, #F3F3F3); transition: background .35s ease; }
.on-scn::before{ content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--on-wine);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--on-ease); }
.on-scn:hover{ background: #fff; } .on-scn:hover::before{ transform: scaleX(1); }
.on-scn-art{ display: block; width: 100%; max-width: 150px; height: auto; margin-bottom: 14px; overflow: visible; }
.on-scn h4{ margin: 0 0 8px; font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: 18px; color: var(--on-head); text-transform: none; }
.on-scn p{ margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--on-text); }
.on-body{ fill: #E2E2E7; stroke: #BDBDC4; stroke-width: 1; }
.on-body--small{ fill: #D4D4DA; }
.on-body--rock{ fill: #D6D3D0; stroke: #A9A5A1; }
.on-sun{ fill: #F2D8A7; stroke: #E0B66B; stroke-width: 1; }
.on-orb{ fill: none; stroke: var(--on-wine); stroke-width: 1.4; opacity: .7; }
.on-orb--far{ stroke: rgba(121,24,45,.32); stroke-dasharray: 3 4; opacity: 1; }
.on-sat{ fill: var(--on-wine); }

/* Powered by NEMO: a full-width row under the scenarios */
.on-nemo{ display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 24px;
  padding: 26px 30px; background: #fff; border: 1px solid var(--on-line); border-left: 3px solid var(--on-wine); border-radius: 6px; }
.on-nemo-stack{ width: 52px; height: 57px; display: block; }
.on-nemo-stack .t{ fill: var(--on-wine); } .on-nemo-stack .s{ fill: #5E1424; } .on-nemo-stack .s2{ fill: #4A0F1C; }
.on-nemo-kick{ display: block; margin-bottom: 6px; font-family: var(--on-hfont); font-weight: var(--on-hw);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-wine); }
.on-nemo-text p{ margin: 0; max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--on-text); }
.on-nemo-link{ display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none;
  font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-wine); border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.on-nemo-link svg{ width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--on-ease); }
.on-nemo-link:hover svg{ transform: translateX(4px); }

/* ---------- entrance ---------- */
.on-cap, .on-model, .on-scn{ opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s var(--on-ease), background .35s ease; }
.on-caps.is-in .on-cap, .on-models.is-in .on-model, .on-scns.is-in .on-scn{ opacity: 1; transform: none; }

/* ---------- closing CTA band (same component as the NEMO page) ---------- */
.ntl-cta{ background: #111216; color: #fff; padding: 96px 0; }
.ntl-cta-inner{ display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.ntl-cta h2{ margin: 0 0 14px; font-family: var(--on-hfont); font-weight: var(--on-hw);
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; text-transform: uppercase; color: #fff; max-width: 820px; }
.ntl-cta p{ margin: 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.66); }
.ntl-cta-actions{ display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.ntl-cta-btn{ display: inline-flex; align-items: center; justify-content: space-between; text-decoration: none;
  font-family: var(--on-hfont); font-weight: var(--on-hw); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ntl-cta-btn-label{ flex: 1; text-align: center; padding: 16px 32px; border-radius: 40px; background: #fff; color: #111216;
  transition: background .3s ease, color .3s ease; }
.ntl-cta-btn-arrow{ width: 50px; height: 50px; border-radius: 50%; flex: none; margin-left: -8px;
  display: flex; align-items: center; justify-content: center; background: #fff; color: #111216;
  transition: transform .35s var(--on-ease), background .3s ease, color .3s ease; }
.ntl-cta-btn-arrow svg{ width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ntl-cta-btn:hover .ntl-cta-btn-arrow{ transform: translateX(4px) rotate(45deg); }
/* on hover the button turns bordeaux */
.ntl-cta-btn:hover .ntl-cta-btn-label, .ntl-cta-btn:hover .ntl-cta-btn-arrow{ background: var(--on-wine); color: #fff; }
.ntl-cta-btn:focus-visible{ outline: none; } .ntl-cta-btn:focus-visible .ntl-cta-btn-label{ outline: 2px solid #FF9DB6; outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 991px){
  .on-media{ grid-template-columns: 1fr; }
  .on-photo{ min-height: 300px; }
  .on-cap{ border-left: 0; } .on-cap:first-child{ border-top: 1px solid var(--on-line); }
  .on-cap::before{ left: 0; }
  .on-scns{ grid-template-columns: repeat(2, 1fr); }
  .ntl-cta{ padding: 72px 0; }
  .ntl-cta-inner{ grid-template-columns: 1fr; gap: 32px; }
  .ntl-cta-actions{ max-width: 360px; }
}
@media (max-width: 767px){
  .on-models{ grid-template-columns: 1fr; }
  .on-nemo{ grid-template-columns: auto 1fr; }
  .on-nemo-link{ grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 575px){
  .on-sec{ padding: 48px 0 80px; }
  .on-sep{ margin-bottom: 40px; }
  .on-block{ margin-top: 70px; }
  .on-photo{ min-height: 230px; }
  .on-cap{ padding: 24px 20px; }
  .on-model{ padding: 24px 22px 28px; }
  .on-scns{ grid-template-columns: 1fr; }
  .on-nemo{ padding: 22px; gap: 18px; }
}
@media (prefers-reduced-motion: reduce){
  .on-sec *, .on-sep{ transition: none !important; animation: none !important; }
  .on-sep{ transform: none; } .on-cap, .on-model, .on-scn{ opacity: 1; transform: none; }
  .on-flow{ opacity: 0 !important; } .on-photo img{ transform: none; }
}
