/* Approved service intro and animation window. Page CSS keeps the artwork,
   typography, responsive layout and service-specific content. */
.service-pilot .animation-window {
  min-width: 0;
  margin: 0;
  border: 1px solid #363c43;
  border-top: 2px solid #c94a3e;
  border-radius: var(--glass-card-radius, 26px);
  overflow: hidden;
  background: var(--gloss-surface, #10151b);
  box-shadow: var(--gloss-shadow, 0 24px 60px #0004);
}
/* The enlarged figure can scroll; decorations must stay inside its scrollbox. */
.animation-window > :is(.home-card-rim, .home-card-edge) { inset: 0; }

.animation-window .animation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 0;
  color: #bac2cc;
  font-size: .76rem;
}

.animation-window .animation-progress {
  height: 2px;
  background: #ffffff0a;
}

.animation-window .animation-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: #de5e50;
}

/* Process windows advance with scaleX; other controllers set the span's width. */
.animation-window .animation-progress--scaled > span {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
}

.animation-window .animation-controls {
  padding: 13px 16px 8px;
  background: var(--gloss-control, #11161c);
}

.animation-window .animation-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
}

.animation-window .animation-phases--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.animation-window .animation-controls .animation-phases > button {
  min-width: 0;
  min-height: 42px;
  padding: 9px 4px;
  border: 1px solid #303a44;
  border-radius: var(--glass-small-radius, 12px);
  background: var(--gloss-control, #ffffff02);
  box-shadow: var(--gloss-control-shadow, none);
  color: #a9b5c3;
  font: inherit;
  font-size: .74rem;
  line-height: 1.5;
  cursor: pointer;
}

.animation-window .animation-controls .animation-phases > button:hover {
  color: #fff;
  border-color: #8c5149;
}

.animation-window .animation-controls .animation-phases > button[aria-pressed="true"] {
  background: var(--gloss-red, #472521);
  box-shadow: var(--gloss-red-shadow, none);
  border-color: #ad4b3f;
  color: #ffc3b9;
}

.animation-window .animation-controls .animation-phases > button:focus-visible {
  outline: 2px solid #f69b8d;
  outline-offset: 3px;
}

/* Both desktop columns start together. Copy keeps its natural height;
   shared gaps continue through the guarantee/brand strip below the grid.
   These hero classes stay behind when the figure moves into its dialog. */
@media (min-width: 1101px) {
  .service-pilot .animation-hero {
    --animation-intro-padding: 26px;
    --animation-grid-padding: 42px;
    padding-top: var(--animation-intro-padding);
  }

  .service-pilot .animation-hero .breadcrumb {
    margin: 0;
    font-size: .8rem;
    line-height: 1.6;
  }

  .service-pilot .animation-hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: 36px;
    padding: var(--animation-grid-padding) 0 44px;
  }

  .animation-hero-grid > .animation-hero-copy,
  .animation-hero-grid > .animation-window {
    align-self: start;
  }

  .animation-hero-grid > .animation-window .animation-header {
    padding-block: 10px;
  }

  .animation-hero-copy {
    min-width: 0;
  }

  .service-pilot .animation-hero-copy > .animation-hero-eyebrow {
    min-height: 40px;
    margin: 0 0 18px;
    gap: 12px;
    font-size: .82rem;
    line-height: 1.5;
  }

  .service-pilot .animation-hero-copy > .animation-hero-title {
    margin: 0 0 26px;
  }

  .service-pilot .animation-hero-copy > .animation-hero-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
  }

  .service-pilot .animation-hero-copy > .animation-hero-actions {
    margin: 28px 0 0;
    gap: 10px;
  }

  .service-pilot .animation-hero-actions > .hero-btn {
    min-height: 50px;
    padding: 13px 20px;
    line-height: 1.6;
  }

  .service-pilot .animation-hero-copy > .animation-hero-note {
    margin: 26px 0 0;
  }

  .service-pilot .animation-hero-footer {
    margin: 0;
    padding-block: 25px;
    border-top: 1px solid var(--pilot-line);
  }
}

.animation-window button.animation-expand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-height: 0;
  padding: 5px 0 5px 10px;
  border: 0;
  background: transparent;
  color: #c1c9d3;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}

.animation-window .animation-expand span {
  font: inherit;
  color: inherit;
}

.animation-window .animation-expand svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.animation-window .animation-playback {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
}

.animation-window button.animation-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: #b4bfcc;
  font: inherit;
  font-size: .71rem;
  line-height: 1.5;
  cursor: pointer;
}

.animation-window .animation-play::before {
  content: '\2161';
  color: #e98a7f;
  font-size: .9rem;
}

.animation-window .animation-play[aria-pressed="true"]::before {
  content: '\25B6';
  font-size: .65rem;
}

.animation-window button:is(.animation-expand, .animation-play):hover {
  color: #fff;
}

.animation-window button:is(.animation-expand, .animation-play):focus-visible {
  outline: 2px solid #f69b8d;
  outline-offset: 3px;
}

.animation-window [hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .animation-window .animation-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
