/* Compact interactive capability showcase and operating principles */
.capability-ribbon {
  background: #ff5c35;
}

.ribbon-track a:hover {
  background: rgba(6,17,31,.14);
}

.icon-arrow {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.12em;
}

.quote-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.quote-link .icon-arrow {
  color: var(--blue);
}

.text-link .icon-arrow,
.contact-links .icon-arrow {
  color: var(--orange);
}

.to-top .icon-arrow {
  width: 1.05rem;
  height: 1.05rem;
  pointer-events: none;
}

.to-top {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.work {
  padding-top: clamp(5rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.work-showcase {
  display: grid;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1.66fr);
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.18);
}

.work-tabs {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  background: #0b1d30;
}

.work-tabs button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .55rem;
  padding: 1.7rem;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.work-tabs button:last-child { border-bottom: 0; }
.work-tabs button:hover { background: rgba(255,255,255,.045); }
.work-tabs button[aria-selected="true"] { background: #ff5c35; }
.work-tabs button span { position: absolute; top: 1.5rem; right: 1.5rem; font-size: .72rem; opacity: .76; }
.work-tabs button strong { font: 600 clamp(1.1rem,1.5vw,1.45rem)/1.2 "Manrope",sans-serif; letter-spacing: -.025em; }
.work-tabs button small { color: #91a3b6; font-size: .78rem; }
.work-tabs button[aria-selected="true"] small { color: rgba(255,255,255,.78); }

.work-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #07111d;
}

.work-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .45s ease, transform .7s cubic-bezier(.2,.75,.2,1);
}

.work-slide.is-active {
  opacity: 1;
  transform: none;
}

.work-slide[hidden] { display: block; visibility: hidden; }
.work-slide.is-active[hidden] { visibility: visible; }
.work-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(2,9,17,.92),rgba(2,9,17,.06) 68%); }
.work-slide img { width: 100%; height: 100%; object-fit: cover; }
.work-slide > div { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(1.5rem,3.5vw,3rem); }
.work-slide > div > span { color: #ff886b; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.work-slide h3 { font-size: clamp(2.2rem,4.4vw,4.8rem); margin: .6rem 0 .8rem; }
.work-slide p { max-width: 630px; color: #d4dde6; margin: 0; }

.proof {
  display: block;
}

.proof-copy {
  display: grid;
  grid-template-columns: .7fr 1.35fr .85fr;
  gap: 4vw;
  align-items: end;
}

.proof-copy .section-tag { margin-bottom: 0; align-self: start; }
.proof-copy h2 { margin-bottom: 0; }
.proof-copy > p { margin: 0; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.proof-grid article {
  position: relative;
  min-height: 230px;
  padding: 1.5rem;
  border: 1px solid var(--line) !important;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.proof-grid article::after {
  content: "";
  width: 64px;
  height: 64px;
  position: absolute;
  right: -26px;
  top: -26px;
  border: 18px solid rgba(255,92,53,.12);
  border-radius: 50%;
  transition: transform .3s ease;
}

.proof-grid article:hover { background: var(--ink); color: #fff; }
.proof-grid article:hover::after { transform: scale(1.35); }
.proof-grid article:hover p { color: #aebdcb; }
.proof-grid article > span { color: #ff5c35; }
.proof-grid h3 { margin: auto 0 .65rem; }

/* A compact editorial desktop canvas with generous, consistent gutters. */
@media (min-width: 981px) {
  :root {
    --page-gutter: max(clamp(2.5rem, 5vw, 6rem), calc((100vw - 1200px) / 2));
  }

  .header,
  .section,
  footer {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .hero {
    align-items: center;
  }

  .hero-proof {
    right: var(--page-gutter);
  }

  /* Keep the image close to its natural ratio and give the copy its own panel. */
  .work-showcase {
    min-height: clamp(430px, 32vw, 470px);
  }

  .work-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .62fr);
  }

  .work-slide::after {
    display: none;
  }

  .work-slide img {
    min-width: 0;
    height: 100%;
    object-fit: cover;
  }

  #work-procurement img {
    object-position: 56% center;
  }

  .work-slide > div {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(2rem, 3vw, 3rem);
    background: #0b1d30;
  }

  .work-slide h3 {
    font-size: clamp(2.15rem, 3vw, 3.35rem);
  }
}

@media (max-width: 980px) {
  .work-showcase { grid-template-columns: 1fr; min-height: 0; }
  .work-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
  .work-tabs button { min-height: 150px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.14); }
  .work-stage { height: clamp(380px,64vw,560px); }
  .proof-copy { grid-template-columns: 1fr; gap: 1.3rem; }
  .proof-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 2.5rem; }
}

@media (min-width: 621px) and (max-width: 980px) {
  .hero {
    align-items: center;
  }

  .hero-copy {
    width: 100%;
    padding-top: clamp(4rem, 8vh, 6rem);
    padding-bottom: clamp(9rem, 16vh, 11rem);
  }
}

@media (max-width: 620px) {
  .to-top {
    width: 54px;
    height: 54px;
    right: 1rem;
    bottom: 1rem;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-copy {
    min-height: min(760px, calc(100svh - 74px));
    justify-content: center;
    padding-top: clamp(3.25rem, 9svh, 5rem);
    padding-bottom: clamp(2.75rem, 8svh, 4rem);
  }

  .hero-copy > p:not(.kicker) {
    margin: 1.35rem 0 1.65rem;
    max-width: 32rem;
  }

  .hero-actions {
    gap: 1rem;
  }

  .button .icon-arrow {
    width: 1.1rem;
    height: 1.1rem;
  }

  .text-link .icon-arrow,
  .contact-links .icon-arrow {
    width: .95rem;
    height: .95rem;
  }

  .contact-links .icon-arrow {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    justify-self: end;
  }

  .work-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .work-tabs button { min-width: 82%; min-height: 126px; scroll-snap-align: start; padding: 1.3rem; }
  .work-tabs button span { top: 1.2rem; right: 1.2rem; }
  .work-stage { height: 430px; }
  .work-slide > div { padding: 1.35rem; }
  .work-slide h3 { font-size: clamp(2rem,11vw,3.15rem); }
  .work-slide p { font-size: .92rem; }
  .proof-grid { grid-template-columns: 1fr; gap: .75rem; }
  .proof-grid article { min-height: 180px; }
}

@media (max-width: 620px) and (max-height: 640px) {
  .hero-copy {
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-slide { transition: none; }
}
