:root {
  --oem-blue: #9ab4c0;
  --oem-blue-strong: #91aebb;
  --oem-ink: #282828;
  --oem-warm: #fbf7f1;
}

#main-content {
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--color-primary) 0,
    var(--color-primary) var(--radius-large),
    var(--color-white) var(--radius-large),
    var(--color-white) 100%
  );
}

.oem-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1921 / 773;
  min-height: 540px;
  color: var(--oem-blue);
  background-color: var(--oem-warm);
  background-image: url("../images/oem/hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  overflow: hidden;
}

@media (min-width: 1181px) {
  .oem-hero {
    /* The source bitmap already contains a rounded edge. Hide that baked-in
       edge outside the container so only the clean CSS radius is visible. */
    background-image: none;
  }

  .oem-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -58px -78px;
    background: url("../images/oem/hero.png") 47% center / cover no-repeat;
    pointer-events: none;
  }
}

.oem-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.oem-hero__copy {
  width: min(780px, 64%);
  margin-left: 0;
  transform: translateY(-2%);
}

.oem-hero h1 {
  margin-bottom: clamp(32px, 3vw, 52px);
  font-size: clamp(2.8rem, 3.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.oem-hero p {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.42vw, 1.65rem);
  line-height: 1.38;
}

.oem-rail {
  position: absolute;
  z-index: 0;
  top: 0;
  right: clamp(70px, 9vw, 172px);
  width: clamp(130px, 12vw, 230px);
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}

.oem-section-title {
  margin-bottom: clamp(72px, 5.5vw, 105px);
  color: var(--oem-blue-strong);
  font-size: clamp(2.2rem, 2.85vw, 3.45rem);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-transform: none;
}

.oem-process {
  position: relative;
  min-height: 905px;
  padding: clamp(96px, 6.25vw, 120px) 0 clamp(118px, 7.8vw, 150px);
  background: var(--color-white);
  overflow: hidden;
}

.oem-process > .container {
  position: relative;
  z-index: 1;
}

.oem-process__flow {
  width: min(1338px, 100%);
  margin-inline: auto;
}

.oem-process__steps {
  width: min(1450px, 100%);
  margin: clamp(60px, 4.45vw, 85px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 58px);
  list-style: none;
  text-align: center;
}

.oem-process__steps span {
  display: block;
  margin-bottom: 24px;
  color: var(--oem-blue-strong);
  font-size: clamp(1.6rem, 1.9vw, 2.12rem);
  font-weight: 800;
}

.oem-process__steps h3 {
  min-height: 72px;
  margin-bottom: 18px;
  font-size: clamp(1rem, 1.12vw, 1.3rem);
  font-weight: 800;
  line-height: 1.42;
}

.oem-process__steps p {
  margin-bottom: 0;
  color: #4f4f4f;
  font-size: clamp(0.86rem, 0.94vw, 1.05rem);
  line-height: 1.72;
}

.oem-process__mobile {
  display: none;
}

@media (min-width: 1181px) {
  .oem-process {
    min-height: auto;
    padding-bottom: clamp(79px, 5.2vw, 100px);
  }

  .oem-process > .container {
    width: min(100%, 1536px);
    padding-inline: 60px;
  }

  .oem-process__flow,
  .oem-process__steps {
    width: min(1338px, 100%);
  }

  .oem-process__steps {
    position: relative;
    height: 285px;
    display: block;
  }

  .oem-process__steps li {
    position: absolute;
    top: 0;
    width: 220px;
    transform: translateX(-50%);
  }

  /* The icons in the supplied flow artwork are intentionally not set on
     equal grid columns. Anchor each text block to the icon's real center. */
  .oem-process__steps li:nth-child(1) { left: 4.33%; }
  .oem-process__steps li:nth-child(2) { left: 25.75%; }
  .oem-process__steps li:nth-child(3) { left: 48.88%; }
  .oem-process__steps li:nth-child(4) { left: 71.97%; }
  .oem-process__steps li:nth-child(5) { left: 95.37%; }
}

.oem-customize {
  position: relative;
  z-index: 2;
  min-height: 940px;
  padding: 96px 0 108px;
  color: var(--color-white);
  background: var(--oem-blue-strong);
  border-radius: clamp(54px, 4vw, 76px);
}

.oem-customize > .container {
  width: min(100%, 1536px);
  padding-inline: 60px;
}

.oem-customize h2 {
  margin-bottom: 82px;
  color: #fff;
  font-size: clamp(2.5rem, 3.1vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.oem-customize__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px;
}

.oem-customize article {
  text-align: center;
}

.oem-customize__media {
  position: relative;
  width: 100%;
  aspect-ratio: 244 / 255;
  margin-bottom: 42px;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
}

.oem-customize__media::after {
  position: absolute;
  inset: 0;
  border: 3px solid #fff;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.oem-customize__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.035);
}

.oem-customize h3 {
  width: calc(100% + 48px);
  min-height: 76px;
  margin: 0 -24px 24px;
  color: #fff;
  font-size: clamp(1.22rem, 1.52vw, 1.82rem);
  font-weight: 800;
  line-height: 1.35;
}

.oem-customize p {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(0.9rem, 1vw, 1.15rem);
  font-weight: 600;
  line-height: 1.6;
}

.oem-moq {
  position: relative;
  min-height: 970px;
  padding-block: clamp(165px, 11vw, 212px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
}

.oem-moq__media,
.oem-moq__copy {
  position: relative;
  z-index: 1;
}

.oem-moq__media img {
  width: 100%;
  border-radius: 0 24px 24px 0;
}

.oem-moq__copy {
  width: min(650px, calc(100% - 80px));
  margin-left: clamp(54px, 5vw, 98px);
}

.oem-moq h2 {
  margin-bottom: clamp(48px, 4vw, 72px);
  color: var(--oem-blue-strong);
  font-size: clamp(2.4rem, 3.1vw, 3.75rem);
  font-weight: 800;
  line-height: 1.27;
  letter-spacing: -0.02em;
}

.oem-moq__message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 2.5vw, 48px);
}

.oem-moq__message img {
  width: clamp(78px, 6vw, 104px);
}

.oem-moq__message p {
  margin-bottom: 0;
  color: var(--oem-blue-strong);
  font-size: clamp(0.98rem, 1.18vw, 1.28rem);
  line-height: 1.7;
}

.oem-cta {
  position: relative;
  width: 100%;
  aspect-ratio: 1925 / 654;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: var(--oem-blue-strong);
  background: var(--oem-warm) url("../images/oem/cta-background.png") center / cover no-repeat;
}

.oem-cta__inner {
  display: flex;
  align-items: center;
}

.oem-cta__copy {
  width: min(830px, 60%);
  margin-left: 0;
}

.oem-cta h2 {
  margin-bottom: clamp(30px, 2.5vw, 48px);
  font-size: clamp(2.5rem, 3.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.26;
}

.oem-cta p {
  margin-bottom: clamp(36px, 3vw, 54px);
  font-size: clamp(1.12rem, 1.45vw, 1.58rem);
}

.oem-cta__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 48px;
}

.oem-cta__button {
  width: min(370px, 100%);
  min-height: 76px;
  border-radius: 7px;
  font-size: clamp(1.05rem, 1.25vw, 1.36rem);
}

.oem-cta__button--primary {
  color: var(--color-white);
  background: var(--oem-blue-strong);
}

.oem-cta__button--secondary {
  color: var(--oem-blue-strong);
  background: rgb(255 255 255 / 28%);
  border: 3px solid var(--oem-blue-strong);
}

@media (max-width: 1180px) {
  .oem-hero {
    aspect-ratio: auto;
    min-height: 620px;
    background-position: 58% center;
  }

  .oem-hero__copy {
    width: min(470px, 52%);
    margin-left: 0;
  }

  .oem-process {
    min-height: 820px;
  }

  .oem-process__steps {
    gap: 18px;
  }

  .oem-process__steps h3 {
    min-height: 82px;
  }

  .oem-customize {
    min-height: auto;
  }

  .oem-customize__grid {
    gap: 24px;
  }

  .oem-customize h3 {
    min-height: 72px;
  }

  .oem-moq {
    min-height: 760px;
  }

  .oem-moq__copy {
    width: calc(100% - 44px);
    margin-left: 36px;
  }

  .oem-moq__message p br {
    display: none;
  }

  .oem-cta {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .oem-cta__copy {
    width: min(680px, 62%);
    margin-left: 0;
  }

  .oem-cta__actions {
    gap: 20px;
  }

  .oem-cta__button {
    width: min(280px, 100%);
    min-height: 60px;
  }
}

@media (max-width: 820px) {
  .oem-hero {
    min-height: 610px;
    background-position: 64% center;
  }

  .oem-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(249 245 239 / 28%);
    pointer-events: none;
  }

  .oem-hero__inner,
  .oem-hero__copy {
    position: relative;
    z-index: 1;
  }

  .oem-hero__copy {
    width: 62%;
  }

  .oem-hero h1 {
    font-size: clamp(2.15rem, 8vw, 3rem);
  }

  .oem-hero p {
    font-size: 1rem;
  }

  .oem-process {
    min-height: auto;
    padding-block: 82px 100px;
  }

  .oem-section-title {
    margin-bottom: 62px;
    font-size: 2.1rem;
  }

  .oem-process > .container {
    overflow: visible;
  }

  .oem-process__flow,
  .oem-process__steps {
    display: none;
  }

  .oem-process__mobile {
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-auto-rows: 146px;
    gap: 0;
    list-style: none;
  }

  .oem-process__mobile li {
    position: relative;
    min-width: 0;
    min-height: 146px;
    padding: 12px 4px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }

  .oem-process__mobile li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 41px;
    top: calc(50% + 46px);
    height: 54px;
    width: 1px;
    background: color-mix(in srgb, var(--oem-blue-strong) 55%, transparent);
  }

  .oem-process__mobile img {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    object-fit: contain;
  }

  .oem-process__mobile div {
    min-width: 0;
  }

  .oem-process__mobile span {
    display: block;
    margin-bottom: 3px;
    color: var(--oem-blue-strong);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
  }

  .oem-process__mobile h3 {
    margin: 0 0 6px;
    color: #242424;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.28;
  }

  .oem-process__mobile p {
    margin: 0;
    color: #5b5b5b;
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .oem-rail {
    right: 18px;
    width: 80px;
  }

  .oem-customize {
    padding-block: 82px 96px;
    border-radius: 42px;
  }

  .oem-customize h2 {
    margin-bottom: 64px;
    font-size: 2.25rem;
  }

  .oem-customize__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 22px;
  }

  .oem-customize article:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .oem-customize h3 {
    width: 100%;
    min-height: auto;
    margin: 0 0 18px;
    font-size: 1.18rem;
  }

  .oem-customize p {
    font-size: 0.86rem;
  }

  .oem-moq {
    min-height: auto;
    padding-block: 100px;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .oem-moq__media {
    width: 92%;
  }

  .oem-moq__copy {
    width: calc(100% - 48px);
    margin-inline: 24px;
  }

  .oem-moq h2 {
    font-size: 2.2rem;
  }

  .oem-cta {
    min-height: 590px;
    background-position: 68% center;
  }

  .oem-cta__copy {
    width: 60%;
  }

  .oem-cta h2 {
    font-size: 2.25rem;
  }

  .oem-cta p {
    font-size: 1rem;
  }

  .oem-cta__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .oem-cta__button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .oem-hero {
    min-height: 560px;
    align-items: flex-end;
    background-position: 70% center;
  }

  .oem-hero::after {
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(
      to top,
      rgb(249 245 239 / 96%) 0%,
      rgb(249 245 239 / 82%) 24%,
      rgb(249 245 239 / 42%) 46%,
      rgb(249 245 239 / 0%) 70%
    );
  }

  .oem-hero__inner {
    position: relative;
    min-height: 560px;
    align-items: flex-end;
    padding-bottom: 0;
  }

  .oem-hero__copy {
    position: absolute;
    z-index: 2;
    left: var(--container-padding);
    bottom: 24px;
    width: min(76%, 292px);
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
  }

  .oem-hero h1 {
    margin-bottom: 14px;
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .oem-hero p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .oem-hero p br {
    display: none;
  }

  .oem-section-title {
    margin: 0 auto 38px;
    font-size: 1.8rem;
  }

  .oem-process {
    padding-block: 68px 74px;
  }

  .oem-process__mobile {
    width: 100%;
  }

  .oem-process__mobile li {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 15px;
    padding: 12px 0;
  }

  .oem-process__mobile li:not(:last-child)::after {
    left: 33px;
    top: calc(50% + 42px);
    height: 62px;
  }

  .oem-process__mobile img {
    width: 68px;
    height: 68px;
  }

  .oem-process__mobile span {
    font-size: 1rem;
  }

  .oem-process__mobile h3 {
    font-size: 0.94rem;
  }

  .oem-process__mobile p {
    font-size: 0.8rem;
  }

  .oem-customize {
    padding-block: 66px 72px;
    border-radius: 34px;
  }

  .oem-customize > .container {
    width: 100%;
    padding-inline: 14px;
  }

  .oem-customize h2 {
    margin: 0 auto 42px;
    font-size: 1.82rem;
  }

  .oem-customize__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .oem-customize article,
  .oem-customize article:last-child {
    width: 100%;
    padding: 17px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    text-align: left;
    border-bottom: 1px solid rgb(255 255 255 / 24%);
  }

  .oem-customize article:first-child {
    padding-top: 0;
  }

  .oem-customize article:last-child {
    grid-column: auto;
    padding-bottom: 0;
    justify-self: stretch;
    border-bottom: 0;
  }

  .oem-customize__media {
    width: 122px;
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    border-radius: 16px;
  }

  .oem-customize__media::after {
    border-width: 2px;
  }

  .oem-customize h3 {
    width: 100%;
    min-height: 0;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.28;
    letter-spacing: -0.02em;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
  }

  .oem-customize h3 br {
    display: none;
  }

  .oem-customize p {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: left;
  }

  .oem-customize p br {
    display: none;
  }

  .oem-moq {
    padding-block: 82px;
    gap: 56px;
  }

  .oem-moq h2 {
    margin-bottom: 34px;
    font-size: 1.85rem;
  }

  .oem-moq__message {
    gap: 18px;
  }

  .oem-moq__message img {
    width: 62px;
  }

  .oem-moq__message p {
    font-size: 0.9rem;
  }

  .oem-cta {
    min-height: 570px;
    background-position: 70% center;
  }

  .oem-cta::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(
      to right,
      rgb(249 245 239 / 96%) 0%,
      rgb(249 245 239 / 84%) 38%,
      rgb(249 245 239 / 48%) 58%,
      rgb(249 245 239 / 0%) 82%
    );
    pointer-events: none;
  }

  .oem-cta__inner {
    position: relative;
    z-index: 1;
  }

  .oem-cta__copy {
    width: 68%;
  }

  .oem-cta h2 {
    font-size: 1.85rem;
  }

  .oem-cta__button {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
  }

  .oem-cta__actions {
    display: flex;
    width: min(230px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .oem-cta__button {
    width: 100%;
  }

  .oem-cta__button--secondary {
    background: transparent;
    border-width: 1px;
  }
}

/* Desktop typography and calls-to-action follow the homepage design system. */
@media (min-width: 981px) {
  .oem-hero h1 {
    margin-bottom: 48px;
    font-size: var(--title-size-display);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
  }

  .oem-hero p {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
  }

  .oem-section-title,
  .oem-customize h2,
  .oem-moq h2,
  .oem-cta h2 {
    font-size: var(--title-size-section);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .oem-section-title,
  .oem-customize h2 {
    margin-bottom: var(--section-title-gap);
  }

  .oem-process__steps span {
    margin-bottom: 20px;
    font-size: var(--title-size-card);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
  }

  .oem-process__steps h3 {
    min-height: 62px;
    margin-bottom: 18px;
    font-size: var(--title-size-item);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .oem-process__steps p {
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .oem-customize h3 {
    min-height: 64px;
    margin-bottom: 22px;
    font-size: var(--title-size-card);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
  }

  .oem-customize p {
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .oem-moq h2 {
    margin-bottom: 42px;
    line-height: 1.08;
  }

  .oem-moq__message p,
  .oem-cta p {
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .oem-cta h2 {
    margin-bottom: 28px;
    line-height: 1.08;
  }

  .oem-cta p {
    margin-bottom: 34px;
  }

  .oem-cta__actions {
    gap: 18px;
  }

  .oem-cta__button {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 10px 22px;
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
  }

  .oem-cta__button--secondary {
    border-width: 1px;
  }
}

/* Use the same standalone title rhythm as the About page. */
:root {
  --oem-title-band-height: clamp(220px, 12.5vw, 240px);
}

.oem-process {
  padding-top: 0;
}

.oem-process .oem-section-title {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--oem-title-band-height);
  min-height: var(--oem-title-band-height);
  margin: 0;
  padding: 0 clamp(16px, 3vw, 40px);
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --oem-title-band-height: clamp(144px, 40vw, 160px);
  }

  .oem-process {
    padding-top: 0;
  }
}

/* Desktop process rhythm: keep the five columns aligned without oversized gaps. */
@media (min-width: 1181px) {
  .oem-process {
    padding-bottom: clamp(44px, 2.9vw, 56px);
  }

  .oem-process__steps {
    height: 235px;
    margin-top: clamp(36px, 2.8vw, 54px);
  }

  .oem-process__steps h3 {
    min-height: 52px;
    margin-bottom: 10px;
  }

  /* Keep the desktop section rhythm content-led instead of letting the
     legacy fixed heights create oversized empty bands between sections. */
  .oem-customize {
    min-height: 0;
    padding-bottom: clamp(68px, 4.5vw, 86px);
  }

  .oem-moq {
    min-height: clamp(640px, 40vw, 780px);
    padding-block: clamp(88px, 6vw, 116px);
  }
}
