/* ==========================================================================
   NAUTILUS — ADCS & Ground Testing · Section 2 — CubeDynA (#cubedyna)
   Same composition as the Navigation Room block of Operational Navigation:
   large photo left, intro and capabilities right. Prefix ad-.
   ========================================================================== */
/* ---- shared ADCS page base (identical in every ADCS section file: loading several is harmless) ---- */
.ad-strip, .ad-sec, .ntl-cta{
  --ad-wine: var(--theme-color, #79182d);
  --ad-pink: #FF9DB6;
  --ad-head: var(--heading-color, #000);
  --ad-text: var(--font-color, #5c5c5c);
  --ad-line: var(--border-color, #dcdcdc);
  --ad-bg: var(--bg-color, #F3F3F3);
  --ad-hfont: var(--heading-font, 'Exo 2', sans-serif);
  --ad-hw: var(--font-weight-heading, 600);
  --ad-ease: cubic-bezier(.16, 1, .3, 1);
}
.ad-sec{ padding: 64px 0 0; scroll-margin-top: 100px; }
.ad-sec--last{ padding-bottom: 120px; }
.ad-sep{ position: relative; height: 1px; background: var(--ad-line); margin-bottom: 56px;
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ad-ease); }
.ad-sep::before{ content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--ad-wine); }
.ad-sep.is-in{ transform: none; }
.ad-title{ margin: 0; font-family: var(--ad-hfont); font-weight: var(--ad-hw); text-transform: uppercase;
  font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.01em; color: var(--ad-head); max-width: 900px; }
/* eyebrow with the dot, as above the section titles on the other pages */
.ad-eyebrow{ display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--ad-hfont); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ad-head); }
.ad-eyebrow::before{ content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ad-head); box-shadow: 0 0 0 6px #E4E4E6; margin-left: 6px; }
.ad-intro{ max-width: 620px; margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: var(--ad-text); }

/* title, then its intro at the same reading width as on the other pages (NEMO, services): ~700 px */
.ad-headline{ display: block; }
.ad-headline .ad-intro{ margin: 18px 0 0; max-width: 700px; text-wrap: pretty; }   /* left-aligned, no lone last word */
@media (max-width: 575px){ .ad-sec{ padding-top: 48px; } .ad-sep{ margin-bottom: 40px; } .ad-sec--last{ padding-bottom: 80px; } }
@media (prefers-reduced-motion: reduce){ .ad-sep{ transform: none; transition: none; } }

.ad-media{ display: grid; grid-template-columns: 7fr 5fr; margin-top: 52px; border: 1px solid var(--ad-line); background: var(--ad-bg); }
.ad-photo{ position: relative; margin: 0; min-height: 460px; overflow: hidden; background: #111216; }
.ad-photo img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.6s var(--ad-ease); }
.ad-media.is-in .ad-photo img{ transform: none; }
.ad-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)); }
.ad-photo figcaption span{ display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--ad-hfont); font-weight: var(--ad-hw);
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.ad-photo figcaption span::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF5C8A; animation: ad-live 2s ease-out infinite; }
@keyframes ad-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); } }
.ad-media-side{ display: flex; flex-direction: column; border-left: 1px solid var(--ad-line); }
.ad-caps{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }
.ad-cap{ position: relative; flex: 1; display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-content: center; padding: 28px 30px; transition: background .35s; }
.ad-cap + .ad-cap{ border-top: 1px solid var(--ad-line); }
.ad-cap::before{ content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ad-wine); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ad-ease); }
.ad-cap:hover{ background: #fff; } .ad-cap:hover::before{ transform: scaleY(1); }
.ad-cap-ico svg{ display: block; width: 34px; height: 34px; fill: none; stroke: var(--ad-wine); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ad-cap h3{ margin: 2px 0 8px; font-family: var(--ad-hfont); font-weight: var(--ad-hw); font-size: 18px; line-height: 1.3; color: var(--ad-head); text-transform: none; }
.ad-cap p{ margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ad-text); }
.ad-cap{ opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s var(--ad-ease), background .35s; }
.ad-media.is-in .ad-cap{ opacity: 1; transform: none; }
@media (max-width: 991px){
  .ad-media{ grid-template-columns: 1fr; } .ad-photo{ min-height: 320px; } .ad-media-side{ border-left: 0; border-top: 1px solid var(--ad-line); }
  .ad-cap::before{ left: 0; }
}
@media (max-width: 575px){ .ad-photo{ min-height: 240px; } .ad-cap{ padding: 22px 20px; } }
@media (prefers-reduced-motion: reduce){ .ad-photo img{ transform: none; transition: none; } .ad-cap{ opacity: 1; transform: none; transition: none; } .ad-photo figcaption span::before{ animation: none; } }
