/* =============================================================
   ConnectedOps Advisory — Services, Case Study, Insights, 404
   ============================================================= */

/* =============================================================
   SERVICES
   ============================================================= */
.svc-list {
  display: grid;
  gap: 40px;
  padding-top: 60px;
}
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 773fr) minmax(0, 544fr);
  gap: clamp(20px, 2.99vw, 43px);
  align-items: stretch;
}
.svc-row--flip { grid-template-columns: minmax(0, 544fr) minmax(0, 773fr); }
.svc-row--flip .svc-card { order: 2; }

.svc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.78vw, 40px);
  border-radius: clamp(24px, 2.78vw, 40px);
}
.svc-card__num {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: var(--fs-18);
  line-height: 1.333;
  font-weight: 400;
}
.svc-card__title {
  margin-top: 20px;
  font-size: var(--fs-48);
  line-height: 1.333;
  font-weight: 400;
}
.svc-card .chips {
  margin-right: calc(-1 * clamp(24px, 2.78vw, 40px) + 6px);  /* design lets the row run into the padding */
  gap: 0;
  margin-top: clamp(16px, 2vw, 29px);
}
.svc-card__lede {
  margin-top: 20px;
  font-size: var(--fs-24);
  line-height: 1.333;
  font-weight: 600;
}
.svc-card__text {
  max-width: 700px;
  margin-top: clamp(24px, 2.78vw, 40px);
  font-size: var(--fs-24);
  line-height: 1.333;
}
.svc-card .btn { margin-top: 30px; }
@media (hover: hover) { .svc-card:hover { transform: translateY(-4px); } }

.svc-photo {
  position: relative;
  min-height: 320px;
  border-radius: clamp(24px, 2.78vw, 40px);
  overflow: hidden;
  background: var(--panel);
}
.svc-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
@media (hover: hover) { .svc-photo:hover img { transform: scale(1.04); } }

@media (max-width: 1023px) {
  .svc-row, .svc-row--flip { grid-template-columns: 1fr; }
  .svc-row--flip .svc-card { order: 0; }
  .svc-photo { order: -1; aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 767px) {
  .svc-list { padding-top: 40px; gap: 32px; }
  .svc-photo { aspect-ratio: 4 / 3; }
}

/* How I Support You */
.support { padding-top: clamp(80px, 8.26vw, 119px); }
.support .btn { margin: clamp(20px, 2vw, 29px) 0 0 var(--indent); }
.support__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 59px;
  padding-left: var(--indent);
}
.support__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding-left: 30px;
  padding-right: 16px;
}
.support__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--orange);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out) calc(var(--d, 0s) + 0.2s);
}
.support__item.is-in::before { transform: scaleY(1); }
.support__icon {
  width: 64px;
  height: 64px;
  color: var(--orange);
  transition: transform var(--t-med) var(--ease-out);
}
.support__label {
  margin-top: 40px;
  font-size: var(--fs-24);
  line-height: 1.333;
  font-weight: 400;
}
@media (hover: hover) { .support__item:hover .support__icon { transform: translateY(-4px); } }
@media (max-width: 1023px) {
  .support__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; padding-left: 0; }
  .support__item { min-height: 160px; }
}
@media (max-width: 767px) {
  .support__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .support__item { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; padding-block: 6px; }
  .support__icon { width: 48px; height: 48px; flex: 0 0 auto; }
  .support__label { margin-top: 0; }
}

/* =============================================================
   CASE STUDY
   ============================================================= */
.case-list {
  display: grid;
  gap: 40px;
  padding-top: 60px;
}
.case-block {
  padding: 40px;
  border-radius: 24px;
  background: var(--panel);
}
.case-block__logo { height: auto; }
.case-block__logo--inmarsat { width: 213px; margin-top: 2px; }
.case-block__logo--shell { width: 80px; margin-left: -5px; }
.case-block__title {
  margin-top: clamp(32px, 4vw, 58px);
  font-size: var(--fs-32);
  line-height: 1.22;
  font-weight: 500;
}
.case-block__intro {
  margin-top: clamp(20px, 2.3vw, 33px);
  max-width: 1200px;
  font-size: var(--fs-24);
  line-height: 1.333;
  font-weight: 400;
}
.case-block__cards {
  display: grid;
  grid-template-columns: minmax(0, 679fr) minmax(0, 585fr);
  gap: 18px;
  margin-top: clamp(32px, 4.1vw, 59px);
}
.case-card {
  padding: 30px 30px 34px;
  border-radius: 24px;
  transition: box-shadow var(--t-med) ease, transform var(--t-med) var(--ease-out);
}
.case-card__label {
  font-size: var(--fs-20);
  line-height: 1.25;
  font-weight: 400;
  color: var(--orange);
}
.case-card__text {
  max-width: 620px;
  margin-top: 21px;
  font-size: var(--fs-18);
  line-height: 1.333;
}
.case-card__bullets {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}
.case-card__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: var(--orange);
}
.case-card__bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.case-card__bullets.reveal { opacity: 1; transform: none; }
.case-card__bullets.reveal li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.case-card__bullets.reveal li:nth-child(2) { transition-delay: 0.1s; }
.case-card__bullets.reveal li:nth-child(3) { transition-delay: 0.2s; }
.case-card__bullets.reveal.is-in li { opacity: 1; transform: none; }
.is-static .case-card__bullets.reveal li { opacity: 1; transform: none; }

.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(28px, 2.9vw, 41px);
  margin-top: 30px;
}
.case-stat__num {
  display: block;
  font-size: var(--fs-24);
  line-height: 1.25;
  font-weight: 500;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.case-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 15px;
}
@media (hover: hover) {
  .case-card:hover { transform: translateY(-3px); }
}
@media (max-width: 1023px) {
  .case-block__cards { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .case-list { padding-top: 40px; gap: 24px; }
  .case-block { padding: 24px 20px; }
  .case-card { padding: 22px 20px 26px; }
  .case-block__logo--inmarsat { width: 160px; }
  .case-block__logo--shell { width: 64px; }
  .case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

/* =============================================================
   INSIGHTS (article)
   ============================================================= */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--orange-soft), var(--orange));
  box-shadow: 0 0 10px rgba(253, 161, 0, 0.45);
  pointer-events: none;
}

.article-head {
  margin-top: 60px;
  padding: 40px 40px 42px;
  border-radius: 24px;
  background: var(--panel);
}
.article-head__title {
  font-size: var(--fs-32);
  line-height: 1.344;
  font-weight: 500;
}
.article-head__meta {
  margin-top: 19px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}
.article-head__meta span { margin: 0 8px; }

.article {
  max-width: 1290px;
  padding-top: clamp(40px, 4.17vw, 60px);
}
.article p,
.article li {
  font-size: var(--fs-24);
  line-height: 1.333;
  font-weight: 400;
}
.article p + p { margin-top: 20px; }
.article h2 {
  margin-top: 40px;
  margin-bottom: 24px;
  font-size: var(--fs-24);
  line-height: 1.333;
  font-weight: 500;
  color: var(--orange);
}
.article ul { margin: 0 0 0 clamp(18px, 1.94vw, 28px); max-width: 1250px; }
.article li {
  position: relative;
  padding-left: 18px;
  line-height: 1.667;
}
.article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}
.article li + li { margin-top: 0; }
.article li strong { font-weight: 400; }
.article ul + h2 { margin-top: 52px; }
.article .btn { margin-top: 60px; }
@media (max-width: 767px) {
  .article-head { margin-top: 40px; padding: 26px 22px 28px; }
  .article li { line-height: 1.5; }
  .article li + li { margin-top: 10px; }
  .article .btn { white-space: normal; height: auto; min-height: 41px; padding-block: 10px; line-height: 1.25; text-align: left; }
}

/* =============================================================
   404
   ============================================================= */
.notfound {
  min-height: 52vh;
  padding-top: 80px;
  text-align: center;
}
.notfound__code {
  font-size: clamp(88px, 13vw, 180px);
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(90deg, #6b4a10, var(--orange), #6b4a10);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound__title { margin-top: 24px; font-size: var(--fs-32); line-height: 1.3; font-weight: 500; }
.notfound__text { margin: 16px auto 0; max-width: 560px; font-size: var(--fs-20); line-height: 1.4; color: var(--muted); }
.notfound .btn { margin-top: 36px; }
