/* ==========================================================================
   NAUTILUS — NEMO page · Section 5 + page close
   5a support timeline · 5b final CTA band · 5c full operational support
   Theme variables with fallbacks. Prefixes: nm- (NEMO), ntl- (reusable band).
   ========================================================================== */

.nm-sup, .nm-fullops, .ntl-cta{
  --nm-wine: var(--theme-color, #79182d);
  --nm-head: var(--heading-color, #000);
  --nm-text: var(--font-color, #5c5c5c);
  --nm-line: var(--border-color, #dcdcdc);
  --nm-hfont: var(--heading-font, 'Exo 2', sans-serif);
  --nm-bfont: var(--body-font, 'Exo 2', sans-serif);
  --nm-hw: var(--font-weight-heading, 600);
  --nm-ease: cubic-bezier(.16, 1, .3, 1);
}

.nm-sup-intro{ max-width: 680px; margin: 18px 0 0; color: var(--nm-text); }

/* ===================== 5a · timeline ===================== */
.nm-tl{ position: relative; }
.nm-tl-svg{ display: block; width: 100%; height: auto; overflow: visible; margin-bottom: 26px; }

.nm-tl-base{ fill: none; stroke: var(--nm-line); stroke-width: 2; stroke-dasharray: 5 8; }
.nm-tl-trail{ fill: none; stroke: var(--nm-wine); stroke-width: 3; stroke-linecap: round; }

/* station: white node, icon in grey; lit = wine node, white icon */
.nm-tl-node{ fill: #fff; stroke: var(--nm-line); stroke-width: 2;
  transition: fill .45s ease, stroke .45s ease; }
.nm-tl-ico{ fill: none; stroke: #9a9aa4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .45s ease; }
.nm-tl-ring{ fill: none; stroke: var(--nm-wine); stroke-width: 2; opacity: 0;
  transform-box: fill-box; transform-origin: center; }
.nm-tl-st.is-on .nm-tl-node{ fill: var(--nm-wine); stroke: var(--nm-wine); }
.nm-tl-st.is-on .nm-tl-ico{ stroke: #fff; }
.nm-tl-st.is-on .nm-tl-ring{ animation: nm-pop .9s var(--nm-ease) 1; }
/* the critical-operations station keeps a slow pulse once lit */
.nm-tl-st--crit.is-on .nm-tl-ring{ animation: nm-pop .9s var(--nm-ease) 1, nm-pulse 2.2s ease-out .9s infinite; }
@keyframes nm-pop  { 0%{ opacity: .9; transform: scale(1); } 100%{ opacity: 0; transform: scale(1.9); } }
@keyframes nm-pulse{ 0%{ opacity: .55; transform: scale(1); } 100%{ opacity: 0; transform: scale(2.1); } }

/* travelling satellite */
.nm-tl-sat{ opacity: 0; transition: opacity .4s ease; }
.nm-tl.is-playing .nm-tl-sat{ opacity: 1; }
.nm-tl-sat rect{ fill: #6F8AB8; }
.nm-tl-sat .nm-tl-sat-body{ fill: #1c1d22; }
.nm-tl-sat .nm-tl-sat-core{ fill: #FF5C8A; }

/* steps under the trajectory */
.nm-tl-steps{ list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 2.8%; }   /* % keeps columns aligned with the SVG stations */
.nm-tl-num{
  display: block; margin-bottom: 8px;
  font-family: var(--nm-hfont); font-weight: var(--nm-hw);
  font-size: 12px; letter-spacing: .18em; color: var(--nm-wine);
}
.nm-tl-step h3{
  margin: 0 0 10px; font-family: var(--nm-hfont); font-weight: var(--nm-hw);
  font-size: 19px; line-height: 1.25; color: var(--nm-head); text-transform: none;
}
.nm-tl-step p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--nm-text); }

/* critical events: a plain bullet list inside the step text */
.nm-tl-list{ margin: 10px 0 0; padding: 0 0 0 18px; list-style: disc outside; }   /* explicit: the theme restyles lists */
.nm-tl-list li{ margin: 0 0 4px; font-size: 15px; line-height: 1.5; color: var(--nm-text); }
.nm-tl-list li::marker{ color: var(--nm-wine); }

/* ---------- phones & tablets: vertical timeline, filled while scrolling ---------- */
@media (max-width: 991px){
  .nm-tl-svg{ display: none; }
  .nm-tl-steps{ grid-template-columns: 1fr; row-gap: 34px; position: relative; padding-left: 50px; }
  .nm-tl-steps::before,
  .nm-tl-steps::after{ content: ""; position: absolute; left: 15px; top: 6px; width: 2px; }
  .nm-tl-steps::before{ bottom: 6px; background: var(--nm-line); }
  .nm-tl-steps::after{ height: var(--fill, 0px); background: var(--nm-wine); transition: height .15s linear; }
  .nm-tl-step{ position: relative; }
  .nm-tl-step::before{
    content: ""; position: absolute; left: -43px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid var(--nm-line); z-index: 1; transition: background .3s, border-color .3s;
  }
  .nm-tl-step.is-on::before{ background: var(--nm-wine); border-color: var(--nm-wine); }
}

/* ===================== 5b · final CTA band (reusable) ===================== */
.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(--nm-hfont); font-weight: var(--nm-hw);
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; text-transform: uppercase; color: #fff;
}
.ntl-cta p{ margin: 0; max-width: 620px; 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(--nm-hfont); font-weight: var(--nm-hw); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ntl-cta-btn-label{ flex: 1; text-align: center; padding: 15px 28px; border-radius: 40px;
  background: #fff; color: #111216; }
.ntl-cta-btn-arrow{ width: 46px; height: 46px; border-radius: 50%; flex: none; margin-left: -8px;
  display: flex; align-items: center; justify-content: center; background: #fff; color: #111216;
  transition: transform .35s var(--nm-ease), background .3s, color .3s; }
.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); }   /* hover = movement only, colours never change */

/* secondary: solid bordeaux, same colour at rest and on hover */
.ntl-cta-btn--wine .ntl-cta-btn-label,
.ntl-cta-btn--wine .ntl-cta-btn-arrow{ background: var(--nm-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; }

@media (max-width: 991px){
  .ntl-cta{ padding: 72px 0; }
  .ntl-cta-inner{ grid-template-columns: 1fr; gap: 32px; }
  .ntl-cta-actions{ max-width: 360px; }
}

/* ===================== 5c · full operational support ===================== */
.nm-fullops{ padding: 56px 0 100px; }
.nm-fullops-card{
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 30px 34px; background: #fff;
  border: 1px solid var(--nm-line); border-left: 3px solid var(--nm-wine); border-radius: 6px;
}
.nm-fullops-ico{ width: 40px; height: 40px; display: block; }
.nm-fullops-ico svg{ width: 100%; height: 100%; fill: none; stroke: var(--nm-wine); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.nm-fullops-text h3{ margin: 0 0 6px; font-family: var(--nm-hfont); font-weight: var(--nm-hw);
  font-size: 20px; line-height: 1.25; color: var(--nm-head); text-transform: none; }
.nm-fullops-text p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--nm-text); }
.nm-fullops-link{
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none;
  font-family: var(--nm-hfont); font-weight: var(--nm-hw); font-size: 13px; letter-spacing: .06em;
  color: var(--nm-wine); border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
}
.nm-fullops-link svg{ width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--nm-ease); }
.nm-fullops-link:hover svg{ transform: translateX(4px); }

@media (max-width: 991px){
  .nm-fullops-card{ grid-template-columns: auto 1fr; padding: 26px 24px; }
  .nm-fullops-link{ grid-column: 1 / -1; white-space: normal; justify-self: start; }
}

/* ===================== reduced motion ===================== */
@media (prefers-reduced-motion: reduce){
  .nm-sup *, .ntl-cta *, .nm-fullops *{ transition: none !important; animation: none !important; }
}
