
#asEngineeringStory {
  --as-bg: #F5F8FA;
  --as-card: #FFFFFF;
  --as-title: #17212B;
  --as-body: #596671;
  --as-muted: #77838E;
  --as-line: rgba(23,33,43,.11);
  --as-dark: #22313E;

  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--as-bg);
  color: var(--as-title);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;
  box-sizing: border-box;
}

#asEngineeringStory *,
#asEngineeringStory *::before,
#asEngineeringStory *::after {
  box-sizing: border-box;
}

/* =========================
   HEADER
========================= */

.as-story-header {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 88px 64px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .65fr);
  gap: 70px;
  align-items: end;
}

.as-story-header-left {
  max-width: 900px;
}

.as-story-overline {
  display: block;
  margin-bottom: 18px;
  color: #74818C;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.as-story-main-title {
  margin: 0;
  color: var(--as-title);
  font-size: clamp(42px, 4.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 620;
}

.as-story-header-desc {
  max-width: 430px;
  margin: 0 0 5px;
  color: #66737E;
  font-size: 15px;
  line-height: 1.75;
}

/* =========================
   SLIDER
========================= */

.as-story-viewport {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.as-story-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.as-story-track::-webkit-scrollbar {
  display: none;
}

.as-story-track.as-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

/* =========================
   SLIDE
========================= */

.as-story-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 64px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.as-story-card {
  width: 100%;
  max-width: 1500px;
  min-height: 630px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 58% 42%;
  overflow: hidden;
  background: var(--as-card);
  border: 1px solid var(--as-line);
  box-shadow:
    0 22px 65px rgba(27,42,55,.055),
    0 3px 10px rgba(27,42,55,.025);
}

/* =========================
   IMAGE
========================= */

.as-story-image {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background-color: #E7EBEE;
}

.as-story-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition:
    transform 1.05s cubic-bezier(.18,.7,.25,1),
    filter .55s ease;
}

.as-story-card:hover .as-story-image img {
  transform: scale(1.022);
}

.as-story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(10,20,28,0) 48%,
      rgba(10,20,28,.29) 100%
    );
}

.as-story-number {
  position: absolute;
  z-index: 3;
  left: 34px;
  bottom: 30px;
  color: rgba(255,255,255,.95);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .15em;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

/* =========================
   CONTENT
========================= */

.as-story-content {
  position: relative;
  min-height: 630px;
  padding: 64px 58px 58px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.as-story-content::before {
  content: "";
  position: absolute;
  top: 62px;
  bottom: 62px;
  left: 0;
  width: 1px;
  background: var(--as-line);
}

.as-story-kicker {
  margin: 0 0 18px;
  color: #76838E;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.as-story-title {
  max-width: 590px;
  margin: 0 0 27px;
  color: var(--as-title);
  font-size: clamp(31px, 3vw, 48px);
  line-height: 1.08;
  letter-spacing: -.032em;
  font-weight: 620;
}

.as-story-text {
  max-width: 600px;
  margin: 0;
  color: var(--as-body);
  font-size: 16px;
  line-height: 1.78;
  font-weight: 400;
}

.as-story-text + .as-story-text {
  margin-top: 16px;
}

/* =========================
   HIGHLIGHT
========================= */

.as-story-highlight {
  max-width: 600px;
  margin-top: 34px;
  padding: 18px 0 0 20px;
  border-top: 1px solid var(--as-line);
  border-left: 2px solid #586A78;
  color: #293945;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}

/* =========================
   PROCESS
========================= */

.as-story-process {
  margin-top: 29px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.as-story-process span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: #53616C;
  background: #F7F9FA;
  border: 1px solid rgba(23,33,43,.12);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* =========================
   CTA
========================= */

.as-story-cta {
  width: fit-content;
  margin-top: 31px;
  padding: 14px 19px 14px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #17212B !important;
  background: transparent;
  border: 1px solid rgba(23,33,43,.32);
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .02em;
  transition:
    color .25s ease,
    background .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.as-story-cta:hover {
  color: #FFFFFF !important;
  background: #17212B;
  border-color: #17212B;
  transform: translateY(-1px);
}

.as-story-cta-arrow {
  font-size: 19px;
  line-height: 1;
}

/* =========================
   NAVIGATION
========================= */

.as-story-nav {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 64px 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.as-story-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.as-story-dot {
  width: 27px;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: rgba(23,33,43,.16);
  cursor: pointer;
  transition:
    width .32s ease,
    background .32s ease;
}

.as-story-dot.as-active {
  width: 60px;
  background: #2B3B47;
}

.as-story-buttons {
  display: flex;
  gap: 9px;
}

.as-story-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #263744;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(23,33,43,.14);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.as-story-btn:hover {
  background: #FFFFFF;
  border-color: rgba(23,33,43,.32);
  transform: translateY(-1px);
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

  .as-story-header {
    padding-left: 40px;
    padding-right: 40px;
    gap: 45px;
  }

  .as-story-slide {
    padding-left: 40px;
    padding-right: 40px;
  }

  .as-story-nav {
    padding-left: 40px;
    padding-right: 40px;
  }

  .as-story-card {
    grid-template-columns: 55% 45%;
  }

  .as-story-content {
    padding-left: 42px;
    padding-right: 40px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 860px) {

  .as-story-header {
    padding: 58px 22px 30px;
    display: block;
  }

  .as-story-main-title {
    font-size: clamp(37px, 10vw, 52px);
  }

  .as-story-header-desc {
    max-width: 660px;
    margin-top: 22px;
    font-size: 14px;
  }

  .as-story-slide {
    padding: 0 18px;
  }

  .as-story-card {
    display: block;
    min-height: 0;
  }

  .as-story-image {
    width: 100%;
    min-height: 58vw;
    max-height: 450px;
    aspect-ratio: 16 / 10;
  }

  .as-story-content {
    min-height: 0;
    padding: 38px 28px 43px;
  }

  .as-story-content::before {
    display: none;
  }

  .as-story-title {
    margin-bottom: 21px;
    font-size: clamp(29px, 8vw, 40px);
  }

  .as-story-text {
    font-size: 14.5px;
    line-height: 1.72;
  }

  .as-story-highlight {
    margin-top: 28px;
    font-size: 13.5px;
  }

  .as-story-nav {
    padding: 25px 22px 52px;
  }

  .as-story-buttons {
    display: none;
  }

  .as-story-dot {
    width: 18px;
  }

  .as-story-dot.as-active {
    width: 42px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 520px) {

  .as-story-header {
    padding-top: 46px;
  }

  .as-story-overline {
    font-size: 10px;
  }

  .as-story-main-title {
    font-size: 37px;
    line-height: 1.04;
  }

  .as-story-slide {
    padding: 0 12px;
  }

  .as-story-image {
    min-height: 67vw;
  }

  .as-story-number {
    left: 20px;
    bottom: 18px;
  }

  .as-story-content {
    padding: 32px 21px 37px;
  }

  .as-story-kicker {
    font-size: 10px;
  }

  .as-story-title {
    font-size: 29px;
  }

  .as-story-process {
    gap: 6px;
  }

  .as-story-process span {
    font-size: 9px;
  }
}
