:root {
  --aia-red: #bc1f46;
  --rose-100: #f4c5cf;
  --rose-200: #e8a8b8;
  --rose-500: #bf2055;
  --ink-900: #2a2730;
  --ink-700: #4a4652;
  --panel-gray: #d7d7d9;
  --paper: #ffffff;
  --canvas: rgb(255, 255, 255);
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--ink-900);
  background: var(--canvas);
  line-height: 1.65;
}

.shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  background: var(--aia-red);
  height: 82px;
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0;
}

.brand-mark {
  display: block;
  width: auto;
  height: 45px;
  object-fit: contain;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.lang-switch a,
.lang-switch .active {
  color: inherit;
  text-decoration: none;
}

.lang-switch a{
  opacity: .4;
}

.lang-switch .active {
  opacity: 1;
}

.lang-switch a:hover {
  opacity: 0.82;
}

.hero {
  padding-top: 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-content {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-title-wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: 20px;
  color: var(--ink-700);
  letter-spacing: 0.1em;
}

.hero h1 {
  margin: -2px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 8vw, 70px);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--aia-red);
}

.hero h1 span {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 0.9em;
  font-weight: 900;
  margin-right: 0.12em;
}

.hero-sub {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--ink-700);
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1110 / 344;
  background-image: url("assets/img/KV.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-title {
  width: 43%;
  height: 50%;
  left:50%;
  transform: translate(-50%,10%);
  background-image: url("assets/img/AIA_video_headline.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-badge {
  width: 72px;
  height: 72px;
  background-image: url("assets/img/scroll-down3.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
}

.hero-badge2 {
  width: 60px;
  height: 60px;
  background-image: url("assets/img/scroll-down3.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: -30px auto 0;
  position: relative;
  z-index: 2;
}

.intro {
  max-width: 880px;
  text-align: center;
  padding: 25px 0 24px;
  line-height: 1.65rem;
}

.intro p {
  margin: 0 0 10px;
  font-size: 19px;
  color: #2e2e32;
}

.feature {
  --tab-active-color: #f0b2c2;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(45, 39, 58, 0.08);
  position: relative;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f4b7bc;
  z-index: 0;
}

.feature-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4b7bc;
  position: relative;
  z-index: 2;
}

.tab {
  border: 0;
  background: transparent;
  color: #f4b7bc;
  font-size: 20px;
  line-height: 1.2;
  cursor: pointer;
  font-weight: 700;
  padding:0;
  /* border-right: 1px solid #bc1f46; */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.left-tab.active > .tab-inner::after {
  content: "";
  position: absolute;
  width: 1px;
  right: 0px;
  height: 70%;
  background: #bc1f46;
  top: 50%;
  transform: translate(-50%, -50%);
}
.right-tab.active > .tab-inner::before {
  content: "";
  position: absolute;
  width: 1px;
  left: 0px;
  height: 70%;
  background: #bc1f46;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tab:focus-visible {
  /* outline: 2px solid rgba(191, 32, 85, 0.5); */
  outline-offset: -2px;
}

.tab:last-child {
  border-right: 0;
}

.tab span {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
}

.tab-inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tab-icon {
  margin: 48px auto;
  display: inline-block;
  width: auto;
  height: 80px;
  object-fit: contain;
}

.tab.active {
  /* color: var(--rose-500); */
  position: relative;
  /* background: var(--tab-active-color); */
}

/* .tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-0%);
  bottom: -18px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--tab-active-color);
  z-index: 3;
} */
.tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
  transform: translateX(-50%);
    bottom: -18px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #f4b7bc;
    z-index: 3;
}

.feature-body {
  background: var(--panel-gray);
  padding: 10px 44px 54px;
  border-radius: 30px 30px 0 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  color: #5d5a64;
  font-size: 26px;
  letter-spacing: 0.06em;
  font-weight: bold;
}

.slider {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 72px;
}

.arrow {
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  position: absolute;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  width: auto;
  height: 32px;
  padding: 0;
  margin-top:25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 20;
}

.slider.hide-arrows .arrow {
  display: none !important;
}

#prevBtn {
  left: -24px;
}

#nextBtn {
  right: -24px;
}

.arrow-icon {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.arrow-label {
  color: #be273e;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.arrow-icon-prev {
  transform: none;
}

.arrow-icon-next {
  transform: rotate(180deg);
}

.slide-card {
  width: 100%;
  /* border-radius: 16px; */
  overflow: visible;
  text-align: center;
}

.slide-content {
  width: 100%;
  max-width: 465px;
  margin: 0 auto;
}

.carousel-container {
  --center-w: 300px;
  --center-h: 400px;
  --side-scale: 0.5;
  --side-w: calc(var(--center-w) * var(--side-scale));
  --side-h: calc(var(--center-h) * var(--side-scale));
  --slot-x: calc(var(--center-w) * 0.75 + 18px);
  --far-slot-x: calc(var(--slot-x) * 2);
  --drag-x: 0px;
  --drag-progress: 0;
  --drag-abs: 0;
  --drag-left-progress: 0;
  --drag-right-progress: 0;
  position: relative;
  width: 100%;
  height: calc(var(--center-h) + 8px);
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  padding: 0;
  touch-action: pan-y;
  overflow: hidden;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-container.carousel-animating .carousel-thumb {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.carousel-container.is-dragging .carousel-thumb {
  transition: none;
}

.carousel-container.is-settling .carousel-thumb {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, filter 0.2s ease;
}

.carousel-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--center-w);
  height: var(--center-h);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, filter 0.26s ease;
  border-radius: 16px;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

.carousel-thumb.prev-thumb {
  transform:
    translate(-50%, -50%)
    translateX(calc(
      var(--drag-x) * 0.46
      - var(--slot-x)
      + var(--drag-right-progress) * var(--slot-x)
      - var(--drag-left-progress) * 28px
    ))
    scale(calc(var(--side-scale) + var(--drag-right-progress) * (1 - var(--side-scale)) - var(--drag-left-progress) * 0.14));
  opacity: clamp(0.14, calc(0.54 + var(--drag-right-progress) * 0.4 - var(--drag-left-progress) * 0.24), 1);
  filter:
    blur(calc(1.4px - var(--drag-right-progress) * 1.4px + var(--drag-left-progress) * 0.7px))
    saturate(calc(0.85 + var(--drag-right-progress) * 0.22));
  z-index: 3;
}

.carousel-thumb.next-thumb {
  transform:
    translate(-50%, -50%)
    translateX(calc(
      var(--drag-x) * 0.46
      + var(--slot-x)
      - var(--drag-left-progress) * var(--slot-x)
      + var(--drag-right-progress) * 28px
    ))
    scale(calc(var(--side-scale) + var(--drag-left-progress) * (1 - var(--side-scale)) - var(--drag-right-progress) * 0.14));
  opacity: clamp(0.14, calc(0.54 + var(--drag-left-progress) * 0.4 - var(--drag-right-progress) * 0.24), 1);
  filter:
    blur(calc(1.4px - var(--drag-left-progress) * 1.4px + var(--drag-right-progress) * 0.7px))
    saturate(calc(0.85 + var(--drag-left-progress) * 0.22));
  z-index: 3;
}

.carousel-thumb.current-thumb {
  opacity: calc(1 - var(--drag-abs) * 0.48);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--drag-x) * 0.9))
    scale(calc(1 - var(--drag-abs) * 0.5));
  filter: blur(calc(var(--drag-abs) * 0.8px));
  z-index: 4;
}

.carousel-thumb.far-next-thumb {
  transform:
    translate(-50%, -50%)
    translateX(calc(
      var(--drag-x) * 0.18
      + var(--far-slot-x)
      - var(--drag-left-progress) * var(--slot-x)
      + var(--drag-right-progress) * 18px
    ))
    scale(calc(var(--drag-left-progress) * var(--side-scale)));
  opacity: calc(var(--drag-left-progress) * 0.66);
  filter: blur(calc(1.8px - var(--drag-left-progress) * 1px));
  pointer-events: none;
  z-index: 2;
}

.carousel-thumb.far-prev-thumb {
  transform:
    translate(-50%, -50%)
    translateX(calc(
      var(--drag-x) * 0.18
      - var(--far-slot-x)
      + var(--drag-right-progress) * var(--slot-x)
      - var(--drag-left-progress) * 18px
    ))
    scale(calc(var(--drag-right-progress) * var(--side-scale)));
  opacity: calc(var(--drag-right-progress) * 0.66);
  filter: blur(calc(1.8px - var(--drag-right-progress) * 1px));
  pointer-events: none;
  z-index: 2;
}

.carousel-thumb[data-step="-1"],
.carousel-thumb[data-step="1"] {
  cursor: pointer;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 0;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d5b6c1;
}

.dot-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.dot-btn.dot {
  background: #d5b6c1;
}

.dot-btn:focus-visible {
  outline: 2px solid rgba(191, 32, 85, 0.45);
  outline-offset: 3px;
}

.dot.active {
  background: var(--rose-500);
}

/* .pager-nav {
  font-size: 16px;
  line-height: 1;
  color: var(--rose-500);
  padding: 0 6px;
  min-width: 20px;
}

.pager-nav:disabled {
  opacity: 0.35;
  cursor: default;
} */

.pager-range {
  display:none;
  font-size: 14px;
  line-height: 1;
  color: #8b6670;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(191, 32, 85, 0.25);
}

.pager-range.active {
  color: #fff;
  background: var(--rose-500);
  border-color: var(--rose-500);
}

.pager-dot {
  width: 12px;
  height: 12px;
  /* margin-top: 6px; */
}

.slide-meta {
  width: min(66%, 380px);
  margin: 36px auto 0;
  padding: 16px 16px 18px;
  background: transparent;
  border-radius: 12px;
  border: 1px solid #bf2055;
  text-align: center;
  position: relative;
  padding-top: 12px;
}

.slide-meta h3 {
  position: absolute;
  text-align: center;
  left: 50%;
  top: 0;
  white-space: nowrap;
  /* min-width: 65%; */
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 14px;
  background: var(--panel-gray);
  line-height: 1.2;
  font-size: 22px;
  color: var(--rose-500);
}

.slide-meta p {
  margin: 0;
  margin-right: 0px;
  text-align: center;
  padding: 8px 4px 4px;
  font-size: 13pt;
  color: #4a4952;
  max-height: 160px;
  overflow-y: auto;
}

.divider-pin {
  margin: 20px auto -36px;
  position: relative;
  z-index: 3;
  transform: translateY(10px);
}

.story {
  background: var(--paper);
  border-radius: 75px;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(33, 30, 43, 0.14);
  border: 1px solid rgba(140, 120, 130, 0.25);
  position: relative;
}

.story-text-scroll {
  margin-top: 50px;
  margin-left: 15px;
  margin-right: 25px;
  max-height: 420px;
  overflow-y: auto;
}

.story-text-scroll.is-video {
  max-height: none !important;
  overflow: visible !important;
}

.slide-meta p,
.story-text-scroll {
  --scrollbar-bar-width: 4px;
  --scrollbar-thumb-diameter: 12px;
  --scrollbar-top-gap: 18px;
  --scrollbar-bottom-gap: 10px;
  --scrollbar-axis-inset: 0px;
  scrollbar-width: thin;
  scrollbar-color: #bf2055 rgba(191, 32, 85, 0.26);
}

.slide-meta p::-webkit-scrollbar,
.story-text-scroll::-webkit-scrollbar {
  width: var(--scrollbar-thumb-diameter);
}

.slide-meta p::-webkit-scrollbar-track,
.story-text-scroll::-webkit-scrollbar-track {
  margin-top: var(--scrollbar-top-gap);
  margin-bottom: var(--scrollbar-bottom-gap);
  background: linear-gradient(rgba(191, 32, 85, 0.26), rgba(191, 32, 85, 0.26));
  background-repeat: no-repeat;
  background-size: var(--scrollbar-bar-width) 100%;
  background-position: center;
  border-radius: 999px;
}

.slide-meta p::-webkit-scrollbar-thumb,
.story-text-scroll::-webkit-scrollbar-thumb {
  min-height: var(--scrollbar-thumb-diameter);
  background: #bf2055;
  border-radius: 999px;
  border: 0;
}

.slide-meta p::-webkit-scrollbar-thumb:hover,
.story-text-scroll::-webkit-scrollbar-thumb:hover {
  background: #d22a61;
}

.story h2 {
  margin: 24px 28px 12px;
  font-size: 15pt;
  color: #2f2a36;
}

.story p {
  margin: 0 28px 14px;
  font-size: 15pt;
  color: #3a3842;
}

.story-video-wrap {
  margin: 0 28px 14px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.story-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-direct {
  max-width: 880px;
  margin: 22px auto 0;
}

.video-direct-wrap {
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 30px rgba(33, 30, 43, 0.14);
}

.video-direct-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-coming-soon {
  width: 100%;
  height: 100%;
  /* min-height: 220px; */
  display: grid;
  place-items: center;
  background: #939598;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.feature[data-active-tab="video"] .divider-pin,
.feature[data-active-tab="video"] .story {
  display: none !important;
}

.feature[data-active-tab="video"] .slide-card {
  display: none !important;
}

.story img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  margin-top: 16px;
}

.story.no-image .story-text-scroll {
  margin-bottom: 0;
}

.page-note {
  max-width: 880px;
  margin: 50px auto 0px;
  /* padding: 0 0 24px; */
  font-size: 9pt;
  line-height: 1;
  color: #777;
}

.page-note p {
  margin: 0 0 8px;
}

.comparison-overlay {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  background-image: url("assets/img/Website-version_3_OL.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: 0.45;
}

body {
  position: relative;
}

@media (max-width: 900px) {
  .shell {
    width: 100%;
  }

  .hero-image {
    aspect-ratio: 1080 / 747;
    background-image: url("assets/img/KV-responsive.jpg");
  }

  .hero-title {
    width: 80%;
    left:50%;
    transform: translate(-50%,15%);
    background-image: url("assets/img/AIA_video_headline.png");
  }

  .feature-body {
    padding: 38px 16px 30px;
  }

  .slider {
    padding: 0 48px;
  }

  .arrow {
    width: 34px;
    height: 34px;
  }

  .slide-meta {
    width: min(72%, 360px);
    margin-top: 32px;
  }

  .slide-meta h3 {
    font-size: 22px;
  }

  .story h2 {
    margin: 20px 18px 10px;
    font-size: 15pt;
  }

  .story p {
    margin: 0 18px 12px;
    font-size: 17px;
  }

  .story-video-wrap {
    margin: 0 18px 12px;
  }

  .story img {
    height: auto;
  }

  .story-text-scroll {
    max-height: 320px;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  .topbar,
  main {
    width: 100%;
    margin: 0 auto;
  }

  .topbar-inner {
    width: 100%;
    /* padding: 0 24px 0 20px; */
    padding: 1px 5px 0 15px;
  }

  .lang-switch {
    font-size: 16px;
  }

  .brand-mark {
    height: 40px;
  }

  .hero-badge {
    margin-top: -50px;
  }

  .hero-badge2 {
    margin-top: -50px;
  }

  .hero-image {
    height: auto;
  }

  .intro {
    max-width: 100%;
    text-align: left;
    padding: 28px 20px 20px;
  }

  .intro p {
    font-size: 14px;
  }

  .feature {
    border-radius: 24px 24px 0 0;
  }

  .tab {
    font-size: 18px;
  }

  .tab-icon {
    height: 60px;
    margin: 22px 14px;
  }

  .tab span {
    font-size: 12px;
  }

  .feature-body {
    padding: 34px 22px 28px;
    border-radius: 24px 24px 0 0;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .slider {
    padding: 0 56px;
  }

  .arrow {
    width: 34px;
    height: 34px;
    margin-top: 0;
  }

  .slide-card {
    max-width: none;
  }

  .slide-meta {
    width: min(66%, 380px);
  }

  .slide-content {
    max-width: 600px;
  }

  .carousel-container {
    --center-w: 250px;
    --center-h: 333px;
    --slot-x: calc(var(--center-w) * 0.75 + 14px);
  }

  .slide-meta h3 {
    font-size: 21px;
  }

  .slide-meta p {
    font-size: 11pt;
    line-height: 1.5;
    padding: 8px 6px 4px;
  }

  .story {
    max-width: 100%;
  }

  .page-note {
    max-width: 100%;
  }

  .story h2 {
    margin: 20px 22px 10px;
    font-size: 12pt;
  }

  .story p {
    margin: 0 22px 12px;
    font-size: 12pt;
  }

  .story-video-wrap {
    margin: 0 22px 12px;
  }

  .story img {
    height: auto;
  }

  .story-text-scroll {
    max-height: 300px;
  }

  .divider-pin {
    margin: 26px auto -36px;
    position: relative;
    z-index: 3;
    transform: translateY(10px);
  }
}

@media (max-width: 480px) {
  .topbar,
  main {
    width: 100%;
    margin: 0 auto;
  }

  .topbar {
    height: 66px;
    background: #fff;
  }

  .topbar-inner {
    width: 100%;
    height: 100%;
    background: var(--aia-red);
    padding: 2px 10px 0 30px;
  }

  .lang-switch {
    font-size: 14px;
  }

  .brand-mark {
    height: 32px;
  }

  main {
    background: #fff;
  }

  .shell {
    width: 100%;
  }

  .eyebrow {
    font-size: 17px;
  }

  .hero h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .hero-sub {
    margin-top: 4px;
    font-size: 9px;
  }

  .hero-image {
    height: auto;
  }

  .hero-badge {
    width: 45px;
    height: 45px;
    margin-top: -25px;
  }

  .hero-badge2 {
    width: 45px;
    height: 45px;
    margin-top: -25px;
  }

  .intro {
    text-align: left;
    padding: 0px 25px 10px 25px;
    max-width: 100%;
  }

  .intro p {
    margin: 0 0 6px;
    font-size: 10pt;
    line-height: 1.5;
  }

  .feature {
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }

  .feature-tabs {
    border-radius: 0;
  }

  .tab {
    font-size: 18px;
    line-height: 1.05;
  }

  .tab-icon {
    height: 90px;
    margin: 20px 0px;
  }

  .tab span {
    font-size: 9px;
    margin-top: 3px;
  }

  /* .tab.active::after {
    border-left-width: 12px;
    border-right-width: 12px;
    border-top-width: 12px;
    border-top-color: var(--tab-active-color);
    bottom: -10px;
  } */

  .feature-body {
    padding: 20px 20px 14px;
    border-radius: 16px 16px 0 0;
  }

  .section-title {
    font-size: 13pt;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
  }

  .slider {
    padding: 0 20px;
    max-width: 100%;
  }

  .arrow {
    width: 18px;
    height: 18px;
    margin-top: 0;
  }

  .slide-card {
    max-width: 100%;
    margin: 0;
    transform: none;
    border-radius: 0;
    box-shadow: none;
  }

  .slide-content {
    width: 100%;
  }

  .carousel-container {
    --center-w: 180px;
    --center-h: 240px;
    --slot-x: calc(var(--center-w) * 0.75 + 10px);
  }

  .dot-row {
    gap: 10px;
    padding-top: 8px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }

  .pager-dot {
    width: 10px;
    height: 10px;
    margin-top: 3px;
  }

  .pager-range {
    font-size: 11px;
    padding: 3px 6px;
    white-space:pre;
    /* margin-top:5px; */
  }

  .slide-meta {
    /* width: min(80%, 240px); */
    width:90%;
    margin-top: 16px;
    border-radius: 8px;
    padding: 8px;
  }

  .slide-meta h3 {
    font-size: 16px;
    line-height: 1.2;
    padding: 0 6px;
  }

  .slide-meta p {
    font-size: 10pt;
    line-height: 1.5;
    padding: 4px 0 2px;
  }

  /* .divider-pin {
    width: 18px;
    height: 18px;
    margin: 12px auto 10px;
  } */
  .divider-pin {
    margin: 20px auto -36px;
    position: relative;
    z-index: 3;
    transform: translateY(0px);
  }

  .divider-pin::after {
    top: 4px;
    height: 9px;
  }
  

  .story {
    max-width: 95%;
    border-radius: 30px;
    box-shadow: none;
    border: 1px solid rgba(147, 127, 137, 0.4);
  }

  .story h2 {
    margin: 12px 10px 8px;
    font-size: 10pt;
    line-height: 1.45;
  }

  .story p {
    margin: 0 10px 7px;
    font-size: 10pt;
    line-height: 1.55;
  }

  .story-video-wrap {
    margin: 0 10px 10px;
    border-radius: 10px;
  }

  .story img {
    height: auto;
    margin-top: 10px;
  }

  .story-text-scroll {
    margin-top: 30px;
    margin-left: 12px;
    margin-right: 12px;
    max-height: 240px;
    overflow-y: auto;
  }

  .story.no-image .story-text-scroll {
    margin-bottom: 0;
  }

  .page-note {
    padding: 0 12px 16px;
    font-size: 10px;
    line-height: 1.45;
  }
  .comparison-overlay {
    position: absolute;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("assets/img/mobile.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    opacity: 0.45;
  }
}

@media (min-width: 481px) and (max-width: 700px) {
  .hero-badge {
    width: 60px;
    height: 60px;
    margin-top: -34px;
  }
  .hero-badge2 {
    width: 60px;
    height: 60px;
    margin-top: -34px;
  }
  .divider-pin {
    margin: 26px auto -36px;
    position: relative;
    z-index: 3;
    transform: translateY(10px);
  }
}

/* Non-overlap wide carousel mode */
.slider {
  padding: 0 !important;
  max-width: 100% !important;
}

.arrow,
.dot-row {
  /* display: none !important; */
}

.slide-content {
  max-width: 100% !important;
}

.carousel-container {
  --center-w: min(373px, 37vw);
  --center-h: calc(var(--center-w) * 4 / 3);
  --side-w: calc(var(--center-w) * 0.5);
  --side-h: calc(var(--center-h) * 0.5);
  --far-w: calc(var(--center-w) * 0.24);
  --far-h: calc(var(--center-h) * 0.24);
  --edge-scale: calc(1 - var(--drag-abs, 0) * 0.22);
  --promote-left: clamp(0, calc((var(--drag-left-progress, 0) - 0.5) * 2), 1);
  --promote-right: clamp(0, calc((var(--drag-right-progress, 0) - 0.5) * 2), 1);
  --shift-step: clamp(14px, 2.3vw, 30px);
  width: 100% !important;
  height: auto !important;
  min-height: var(--center-h);
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  overflow: hidden;
  transform: translateX(calc(var(--drag-x, 0px) * 0.36));
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-container.is-dragging {
  transition: none;
}

.carousel-container.is-dragging .carousel-thumb {
  transition: none;
}

.carousel-thumb {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  flex: 0 0 auto;
  transform: translateX(var(--thumb-shift, 0px)) !important;
  filter: none !important;
  border-radius: 16px;
  overflow: hidden;
  opacity: 1;
  transition: width 0.18s ease, height 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.carousel-thumb.current-thumb {
  --thumb-shift: calc((var(--drag-right-progress, 0) - var(--drag-left-progress, 0)) * var(--shift-step));
  width: calc(var(--center-w) - var(--drag-abs, 0) * 0.42 * (var(--center-w) - var(--side-w)));
  height: calc(var(--center-h) - var(--drag-abs, 0) * 0.42 * (var(--center-h) - var(--side-h)));
  flex-basis: calc(var(--center-w) - var(--drag-abs, 0) * 0.42 * (var(--center-w) - var(--side-w)));
}

.carousel-thumb.prev-thumb {
  --thumb-shift: calc(var(--drag-right-progress, 0) * var(--shift-step) - var(--drag-left-progress, 0) * (var(--shift-step) * 0.45));
  width: calc((var(--side-w) + var(--promote-right) * (var(--center-w) - var(--side-w))) * var(--edge-scale));
  height: calc((var(--side-h) + var(--promote-right) * (var(--center-h) - var(--side-h))) * var(--edge-scale));
  opacity: calc(0.7 + var(--promote-right) * 0.3);
  transform-origin: right center;
  flex-basis: calc((var(--side-w) + var(--promote-right) * (var(--center-w) - var(--side-w))) * var(--edge-scale));
}

.carousel-thumb.next-thumb {
  --thumb-shift: calc(var(--drag-right-progress, 0) * (var(--shift-step) * 0.45) - var(--drag-left-progress, 0) * var(--shift-step));
  width: calc((var(--side-w) + var(--promote-left) * (var(--center-w) - var(--side-w))) * var(--edge-scale));
  height: calc((var(--side-h) + var(--promote-left) * (var(--center-h) - var(--side-h))) * var(--edge-scale));
  opacity: calc(0.7 + var(--promote-left) * 0.3);
  transform-origin: left center;
  flex-basis: calc((var(--side-w) + var(--promote-left) * (var(--center-w) - var(--side-w))) * var(--edge-scale));
}

.carousel-thumb.far-prev-thumb {
  --thumb-shift: calc(var(--drag-right-progress, 0) * (var(--shift-step) * 0.6));
  width: calc(var(--far-w) + var(--promote-right) * (var(--side-w) - var(--far-w)));
  height: calc(var(--far-h) + var(--promote-right) * (var(--side-h) - var(--far-h)));
  opacity: calc(0.22 + var(--promote-right) * 0.58);
  transform-origin: right center;
  flex-basis: calc(var(--far-w) + var(--promote-right) * (var(--side-w) - var(--far-w)));
}

.carousel-thumb.far-next-thumb {
  --thumb-shift: calc(var(--drag-left-progress, 0) * (var(--shift-step) * -0.6));
  width: calc(var(--far-w) + var(--promote-left) * (var(--side-w) - var(--far-w)));
  height: calc(var(--far-h) + var(--promote-left) * (var(--side-h) - var(--far-h)));
  opacity: calc(0.22 + var(--promote-left) * 0.58);
  transform-origin: left center;
  flex-basis: calc(var(--far-w) + var(--promote-left) * (var(--side-w) - var(--far-w)));
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

@media (max-width: 900px) {
  .carousel-container {
    --center-w: min(280px, 42vw);
  }
}

@media (max-width: 480px) {
  .carousel-container {
    --center-w: min(180px, 47vw);
  }
}

/* GSAP carousel */
.slider {
  padding: 0 !important;
  max-width: 100% !important;
}

.arrow,
.dot-row {
  /* display: none !important; */
}

.slide-content {
  width: 100%;
  max-width: 100% !important;
}

.slide-card {
  overflow: hidden;
}

.gallery {
  position: relative;
  width: 100%;
  height: clamp(325px, 52.5vw, 550px);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  margin-top: -5%;
  margin-bottom: -20%;
}

.cards {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-card {
  position: absolute;
  top: 75%;
  left: 50%;
  width: clamp(213px, 41.25vw, 425px);
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate(-50%, -40%);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.carousel-card.is-empty {
  visibility: hidden;
}

.drag-proxy {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-widthz: 1100px) {
  .gallery {
    height: clamp(330px, 66vw, 540px);
    margin-top: calc(-40px + -0%);
    margin-bottom: -200px;
  }
}
@media (max-width: 1099px) {
  .gallery {
    /* height: clamp(100px, 66vw, 100vw); */
    height: 90vw;
    margin-top: calc(-40vw);
    /* margin-top: calc(-40px + -0%); */
    /* margin-bottom: -200px; */
    margin-bottom: calc(-25vw);
  }
}
/* @media (max-width: 1009px) {
  .gallery {
    height: clamp(100px, 66vw, 500px);
    margin-top: calc(-30px + -5%);
    margin-bottom: -200px;
  }
}
@media (max-width: 1000px) {
  .gallery {
    height: clamp(330px, 66vw, 540px);
    margin-top: calc(-20px + -5%);
    margin-bottom: -180px;
  }
} */

@media (max-width: 900px) {
  .gallery {
    width: calc(100% - 76px);
    margin-left: auto;
    margin-right: auto;
    /* height: clamp(330px, 66vw, 540px);
    margin-top: calc(-80px + -5%);
    margin-bottom: -170px; */
    margin-bottom: calc(-28vw);
  }

  .carousel-card {
    width: clamp(222px, 48vw, 420px);
  }

  .arrow {
    margin-top:15px;
  }

  #prevBtn {
    left: 12px;
  }

  #nextBtn {
    right: 12px;
  }
}
@media (max-width: 800px) {
  .gallery {
    /* margin-top: calc(-10px + -5%); */
    /* margin-bottom: -160px; */
    margin-top: calc(-40vw);
    margin-bottom: calc(-28vw);
  }
}
@media (max-width: 700px) {
  .gallery {
    /* margin-top: calc(-10px + -5%); */
    margin-top: calc(-42vw);
    /* margin-bottom: -140px; */
  }
  .carousel-card {
    /* margin-top: 5%; */
  }
}

@media (max-width: 620px) {
  .gallery {
    /* margin-top: calc(-60px + -5%); */
    /* margin-top: calc(-120px + -5%);
    margin-bottom: -120px; */
  }
  .carousel-card {
    /* margin-top: 5%; */
  }
}

@media (max-width: 600px) {
  .gallery {
    /* margin-top: min(-120px, calc(-1*(200px - 20vw)));
    margin-bottom: -15vw; */
  }
  .carousel-card {
    /* margin-top: 5%; */
  }

  .arrow {
    margin-top:5px;
  }
}

@media (max-width: 530px) {
  .gallery {
    /* margin-top: calc(-60px + -5%);
    margin-bottom: -100px; */
  }
  .carousel-card {
    /* margin-top: 5%; */
  }
}

@media (max-width: 480px) {
  .gallery {
    height: 100vw;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    /* margin-top: calc(-40vw);
    margin-bottom: calc(-25vw); */
  }

  .gallery ul{
    margin-block: 0;
    padding-inline: 0;
  }

  .arrow {
    margin-top: 0;
    height: auto;
    gap: 2px;
    flex-direction: column;
  }

  #prevBtn {
    left: -12px;
  }

  #nextBtn {
    right: -12px;
  }

  .arrow-icon {
    width: 11px;
    height: 11px;
    order: 1;
  }

  .arrow-label {
    font-size: 11px;
    order: 2;
  }

  .carousel-card {
    /* width: clamp(177px, 51vw, 270px);
    border-radius: 0; */
  }
}
