.rd-redesign {
  --rd-bg: #f5f7f5;
  --rd-panel: #ffffff;
  --rd-ink: #101713;
  --rd-muted: #65716b;
  --rd-soft: #e8ede8;
  --rd-line: rgba(9, 25, 65, 0.16);
  --rd-rail: rgba(16, 23, 19, 0.22);
  --rd-navy: #091941;
  --rd-heading-size: clamp(41px, 5vw, 69px);
  background: var(--rd-bg);
  color: var(--rd-ink);
  font-family: var(--wp--preset--font-family--sans);
  isolation: isolate;
  overflow: clip;
  position: relative;
}

.rd-redesign::before,
.rd-redesign::after {
  background: var(--rd-rail);
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  width: var(--okd-line-width, 1px);
  z-index: 20;
}

.rd-redesign::before {
  left: var(--okd-line-gutter, 24px);
}

.rd-redesign::after {
  right: var(--okd-line-gutter, 24px);
}

.rd-redesign :is(h1, h2, h3, p, figure) {
  margin: 0;
}

.rd-container {
  margin-inline: auto;
  width: min(100% - clamp(40px, 6vw, 80px), 1824px);
}

.rd-eyebrow {
  color: var(--rd-navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.rd-hero {
  background:
    linear-gradient(90deg, rgba(245, 247, 245, 0.98) 0%, rgba(245, 247, 245, 0.94) 42%, rgba(245, 247, 245, 0.44) 72%, rgba(245, 247, 245, 0.12)),
    url("/assets/images/defence-solutions/auv-ocean-cutaway-warship.optimized.webp") center right / cover no-repeat;
  border-bottom: 1px solid var(--rd-line);
  min-height: min(780px, calc(100svh - var(--okd-header-inline-height, 90px)));
  padding-top: var(--okd-header-inline-height, 90px);
}

.rd-hero__inner {
  align-items: start;
  display: grid;
  gap: clamp(72px, 10vw, 190px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: inherit;
  padding-block: clamp(60px, 6vw, 92px) clamp(68px, 7vw, 106px);
}

.rd-hero__copy {
  align-self: start;
  max-width: 980px;
}

.rd-hero h1 {
  font-size: var(--rd-heading-size);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: 24px;
  max-width: 920px;
}

.rd-hero__lead {
  color: var(--rd-muted);
  font-size: clamp(18px, 1.35vw, 24px);
  letter-spacing: 0;
  line-height: 1.58;
  margin-top: 26px;
  max-width: 820px;
}

.rd-hero__metric {
  align-self: end;
  border-left: 1px solid var(--rd-line);
  display: grid;
  gap: 26px;
  padding-left: clamp(26px, 4vw, 58px);
}

.rd-hero__metric span {
  color: var(--rd-muted);
  display: block;
  font-size: 14px;
  line-height: 1.45;
  max-width: 280px;
}

.rd-hero__metric strong {
  color: var(--rd-ink);
  display: block;
  font-size: clamp(42px, 4vw, 76px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 8px;
}

.rd-programs {
  padding-block: clamp(62px, 6vw, 92px);
}

.rd-programs__head {
  border-bottom: 1px solid var(--rd-line);
  padding-bottom: 26px;
}

.rd-programs__head h2 {
  font-size: var(--rd-heading-size);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}

.rd-programs__nav {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: clamp(38px, 4vw, 58px);
}

.rd-program-tabs {
  align-items: flex-end;
  display: flex;
  gap: clamp(34px, 5vw, 86px);
}

.rd-program-tabs button {
  color: var(--rd-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 14px;
}

.rd-program-tabs button[aria-selected="true"] {
  border-bottom: 1px solid var(--rd-navy);
  color: var(--rd-navy);
}

.rd-program-controls {
  align-items: center;
  display: flex;
  gap: 10px;
}

.rd-program-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--rd-line);
  color: var(--rd-navy);
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: 46px;
}

.rd-program-control:hover {
  background: #fff;
  border-color: rgba(9, 25, 65, 0.34);
  transform: translateY(-1px);
}

.rd-program-control svg {
  height: 22px;
  width: 22px;
}

.rd-program-grid {
  display: grid;
  gap: 32px;
  grid-auto-columns: calc((100% - 64px) / 3);
  grid-auto-flow: column;
  grid-template-columns: none;
  margin-top: 34px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rd-program-grid::-webkit-scrollbar {
  display: none;
}

.rd-program-grid[data-active="completed"] .rd-program-card:not([data-program="completed"]),
.rd-program-grid[data-active="active"] .rd-program-card:not([data-program="active"]),
.rd-program-grid[data-active="future"] .rd-program-card:not([data-program="future"]) {
  display: none;
}

.rd-program-card {
  aspect-ratio: 4 / 5;
  background: var(--rd-panel);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  box-shadow: 0 28px 72px rgba(9, 25, 65, 0.12);
  color: #fff;
  min-height: 520px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

.rd-program-card:focus-visible { outline: 3px solid #0d5bea; outline-offset: 4px; }

.rd-program-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  width: 100%;
}

.rd-program-card::after {
  background:
    linear-gradient(180deg, rgba(9, 25, 65, 0.04) 32%, rgba(9, 25, 65, 0.78) 76%, rgba(9, 25, 65, 0.94)),
    linear-gradient(90deg, rgba(9, 25, 65, 0.34), transparent 52%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.rd-program-card:hover img {
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.04);
}

.rd-program-card__body {
  bottom: 0;
  left: 0;
  padding: clamp(22px, 2vw, 30px);
  position: absolute;
  right: 0;
  z-index: 2;
}

.rd-program-card__body h3 {
  font-size: clamp(24px, 1.75vw, 32px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.14;
  max-width: 18ch;
}

.rd-program-card__body p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 42ch;
}

.rd-lanes {
  border-top: 1px solid var(--rd-line);
  padding-block: clamp(62px, 6vw, 94px);
}

.rd-lanes__grid {
  display: grid;
  gap: clamp(38px, 5vw, 66px);
  grid-template-columns: 1fr;
}

.rd-lanes__grid > div:first-child {
  margin-inline: auto;
  max-width: 900px;
  text-align: center;
}

.rd-section-title {
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  margin-top: 18px;
}

.rd-section-lead {
  color: var(--rd-muted);
  font-size: clamp(18px, 1.35vw, 23px);
  letter-spacing: 0;
  line-height: 1.58;
  margin-top: 24px;
  max-width: 760px;
}

.rd-lane-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rd-lane {
  background: #fff;
  border: 1px solid var(--rd-line);
  display: grid;
  gap: 22px;
  grid-template-rows: auto 1fr;
  min-height: 280px;
  padding: clamp(24px, 3vw, 38px);
}

.rd-lane span {
  color: var(--rd-navy);
  font-size: clamp(46px, 4vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.rd-lane h3 {
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.rd-lane p {
  color: var(--rd-muted);
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.5;
  margin-top: 14px;
}

.rd-expertise {
  background: #091941;
  color: #fff;
  padding-block: clamp(62px, 7vw, 106px);
}

.rd-expertise .rd-eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.rd-expertise__intro {
  align-items: end;
  display: grid;
  gap: clamp(36px, 7vw, 120px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
}

.rd-expertise__intro > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.58;
  max-width: 650px;
}

.rd-expertise__grid {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(44px, 6vw, 78px);
}

.rd-expertise__grid article {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: clamp(20px, 3vw, 46px);
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 240px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
  position: relative;
}

.rd-expertise__grid article:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -4px;
}

.rd-expertise__image {
  height: 100%;
  inset: 0;
  max-block-size: none;
  max-inline-size: none;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transform: scale(1.035);
  transition: opacity 0.35s ease, transform 0.55s ease;
  width: 100%;
  z-index: 2;
}

.rd-expertise__grid article > span,
.rd-expertise__grid article > div {
  transition: opacity 0.22s ease;
  z-index: 1;
}

.rd-expertise__grid article:hover .rd-expertise__image,
.rd-expertise__grid article:focus .rd-expertise__image {
  opacity: 1;
  transform: scale(1);
}

.rd-expertise__grid article:hover > span,
.rd-expertise__grid article:hover > div,
.rd-expertise__grid article:focus > span,
.rd-expertise__grid article:focus > div {
  opacity: 0;
}

.rd-expertise__grid article:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0;
}

.rd-expertise__grid article span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
}

.rd-expertise__grid h3 {
  color: #fff;
  font-size: clamp(27px, 2.4vw, 40px);
  font-weight: 400;
  line-height: 1.12;
}

.rd-expertise__grid p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.58;
  margin-top: 16px;
  max-width: 580px;
}

.rd-showcase {
  background: #eef2ee;
  color: #121412;
  padding-block: clamp(62px, 6vw, 92px);
}

.rd-showcase .rd-eyebrow {
  color: var(--rd-navy);
}

.rd-showcase__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 0.82fr 1.18fr;
  margin-top: 32px;
}

.rd-project-modal[hidden] { display: none; }
.rd-project-modal {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: var(--okd-header-inline-height, 90px);
  z-index: 10000;
}
.rd-project-modal__backdrop { background: rgba(3, 12, 31, 0.72); inset: 0; position: absolute; }
.rd-project-modal__dialog {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  inset: clamp(20px, 3vw, 48px) clamp(24px, 5vw, 76px);
  margin: auto;
  max-height: calc(100% - clamp(40px, 6vw, 96px));
  overflow: auto;
  position: absolute;
}
.rd-project-modal__dialog figure { min-height: 520px; }
.rd-project-modal__dialog figure img { height: 100%; object-fit: cover; width: 100%; }
.rd-project-modal__content { align-content: center; display: grid; padding: clamp(40px, 6vw, 96px); }
.rd-project-modal__content h2 { color: var(--rd-ink); font-size: clamp(34px, 4vw, 62px); font-weight: 400; line-height: 1.08; margin-top: 22px; }
.rd-project-modal__content > p:last-child { color: var(--rd-muted); font-size: clamp(17px, 1.25vw, 21px); line-height: 1.7; margin-top: 28px; }
.rd-project-modal__close { align-items: center; background: #fff; border: 1px solid var(--rd-line); color: var(--rd-navy); cursor: pointer; display: flex; height: 48px; justify-content: center; position: absolute; right: 20px; top: 20px; width: 48px; z-index: 2; }
.rd-project-modal__close svg { height: 24px; width: 24px; }
body.rd-modal-open { overflow: hidden; }

.rd-showcase__image {
  min-height: 520px;
  overflow: hidden;
}

.rd-showcase__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rd-showcase__panel {
  align-content: end;
  background: #fff;
  display: grid;
  padding: clamp(28px, 3vw, 46px);
}

.rd-showcase__panel h3 {
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.rd-showcase__panel p {
  color: #5a625d;
  font-size: clamp(18px, 1.35vw, 23px);
  letter-spacing: 0;
  line-height: 1.55;
  margin-top: 20px;
  max-width: 760px;
}

.rd-showcase__facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.rd-showcase__facts span {
  border: 1px solid rgba(18, 20, 18, 0.16);
  color: #5a625d;
  display: grid;
  font-size: 14px;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: 150px 60px;
  line-height: 1.4;
  overflow: hidden;
}

.rd-showcase__facts img {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 150px;
  max-inline-size: none;
  object-fit: cover;
  width: 100%;
}

.rd-showcase__facts b {
  align-items: center;
  border-right: 1px solid rgba(18, 20, 18, 0.12);
  color: var(--rd-navy);
  display: flex;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 400;
  grid-column: 1;
  grid-row: 2;
  justify-content: center;
  line-height: 1;
}

.rd-showcase__facts .rd-showcase__fact-copy {
  align-items: center;
  border: 0;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  padding: 6px 12px;
  text-align: center;
}

.rd-showcase__facts em {
  color: #5a625d;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.rd-showcase__facts strong {
  color: #121412;
  display: block;
  font-size: clamp(21px, 1.7vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 2px;
}

.rd-cta {
  background: #fff;
  border-top: 1px solid var(--rd-line);
  padding-block: clamp(68px, 7vw, 106px);
  text-align: center;
}

.rd-cta__inner {
  display: block;
}

.rd-cta h2 {
  font-size: var(--rd-heading-size);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  margin-inline: auto;
  max-width: 820px;
}

.rd-cta p {
  color: #5f6b65;
  font-size: clamp(17px, 1.35vw, 23px);
  letter-spacing: 0;
  line-height: 1.72;
  margin: 30px auto 38px;
  max-width: 740px;
}

.rd-cta .u-btn--1 {
  --btn-background-color: #091941;
  --btn-background-color-hover: rgba(9, 25, 65, 0.78);
  --btn-text-color: #ffffff;
  --btn-text-color-hover: #ffffff;
  color: #fff;
  display: inline-flex;
}

@media (max-width: 1120px) {
  .rd-hero__inner,
  .rd-lanes__grid,
  .rd-showcase__grid,
  .rd-cta__inner {
    grid-template-columns: 1fr;
  }

  .rd-hero__metric {
    border-left: 0;
    border-top: 1px solid var(--rd-line);
    grid-template-columns: repeat(3, 1fr);
    padding-left: 0;
    padding-top: 28px;
  }

  .rd-program-grid {
    grid-auto-columns: calc((100% - 32px) / 2);
  }

  .rd-lane-list {
    grid-template-columns: 1fr;
  }

  .rd-lane {
    min-height: 0;
  }

  .rd-expertise__intro {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .rd-hero {
    background:
      linear-gradient(
        180deg,
        rgba(245, 247, 245, 0.99) 0%,
        rgba(245, 247, 245, 0.94) 42%,
        rgba(245, 247, 245, 0.56) 72%,
        rgba(245, 247, 245, 0.16) 100%
      ),
      url("/assets/images/defence-solutions/auv-ocean-cutaway-warship.optimized.webp")
        center / cover no-repeat;
  }
}

@media (max-width: 760px) {
  .rd-container {
    margin-inline: calc(var(--okd-line-gutter, 24px) + 24px);
    width: auto;
  }

  .rd-hero {
    background:
      linear-gradient(
        180deg,
        rgba(245, 247, 245, 0.99) 0%,
        rgba(245, 247, 245, 0.94) 42%,
        rgba(245, 247, 245, 0.56) 72%,
        rgba(245, 247, 245, 0.16) 100%
      ),
      url("/assets/images/defence-solutions/auv-ocean-cutaway-warship.optimized.webp") center / cover no-repeat;
  }

  .rd-hero h1,
  .rd-programs__head h2,
  .rd-cta h2 {
    font-size: clamp(41px, 12vw, 56px);
  }

  .rd-hero__metric,
  .rd-showcase__facts {
    grid-template-columns: 1fr;
  }

  .rd-programs__nav {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .rd-program-tabs {
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .rd-program-tabs button {
    flex: 0 0 auto;
  }

  .rd-program-controls {
    justify-content: flex-end;
  }

  .rd-program-grid {
    gap: 18px;
    grid-auto-columns: 100%;
    margin-left: -24px;
    width: calc(100% + 48px);
  }

  .rd-program-card {
    aspect-ratio: 0.78;
    min-height: 440px;
    min-width: 0;
  }

  .rd-program-card__body {
    padding: 24px;
    text-align: left;
  }

  .rd-program-card__body h3,
  .rd-program-card__body p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .rd-program-card__body h3 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .rd-program-card__body p {
    font-size: 15px;
    line-height: 1.48;
  }

  .rd-project-modal__dialog { grid-template-columns: 1fr; inset: 12px; }
  .rd-project-modal__dialog figure { min-height: 320px; }
  .rd-project-modal__content { padding: 30px 24px 42px; }

  .rd-lane {
    grid-template-columns: 1fr;
  }

  .rd-expertise__grid {
    grid-template-columns: 1fr;
  }

  .rd-expertise__grid article,
  .rd-expertise__grid article:nth-child(odd) {
    border-right: 0;
    min-height: 0;
    padding: 28px 0;
  }

  .rd-showcase__image {
    min-height: 430px;
  }
}
