html[data-ime-frontstage-pending="true"] body main {
  visibility: hidden !important;
}

section[data-ime-section-key="home_three_layer"] {
  --ime-section-bg: #f7efe9;
  --ime-section-text: #1f1b1a;
  --ime-section-accent: #b8953f;
  --ime-three-layer-font: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
  background: var(--ime-section-bg) !important;
  color: var(--ime-section-text) !important;
  font-family: var(--ime-three-layer-font) !important;
}

.ime-footer-legal-line {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.26);
  font-family: var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  overflow-wrap: anywhere;
  padding-top: 1rem;
  text-align: center;
}

section[data-ime-section-key="home_three_layer"] :where(div, h1, h2, h3, h4, p, span, button) {
  font-family: var(--ime-three-layer-font) !important;
}

section[data-ime-section-key="home_three_layer"][data-ime-gradient="soft-radial"] {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92), rgba(247, 239, 233, 0.66) 48%, rgba(247, 239, 233, 0.98) 100%),
    var(--ime-section-bg) !important;
}

section[data-ime-section-key="home_three_layer"][data-ime-gradient="gold-glow"] {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 248, 222, 0.92), rgba(248, 237, 222, 0.7) 48%, rgba(244, 226, 218, 0.98) 100%),
    var(--ime-section-bg) !important;
}

section[data-ime-section-key="home_three_layer"][data-ime-gradient="dark-violet"] {
  background:
    radial-gradient(circle at 50% 42%, rgba(84, 44, 108, 0.55), rgba(18, 8, 27, 0.96) 72%),
    #12081b !important;
}

section[data-ime-section-key="home_three_layer"] h1,
section[data-ime-section-key="home_three_layer"] h2,
section[data-ime-section-key="home_three_layer"] h3,
section[data-ime-section-key="home_three_layer"] p,
section[data-ime-section-key="home_three_layer"] span {
  color: inherit;
}

section[data-ime-section-key="home_three_layer"] [class*="text-gold"],
section[data-ime-section-key="home_three_layer"] [class*="bg-gold"],
section[data-ime-section-key="home_three_layer"] [class*="border-gold"] {
  color: var(--ime-section-accent) !important;
  border-color: color-mix(in srgb, var(--ime-section-accent) 44%, transparent) !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.inset-0.flex.items-center.justify-center > div.relative {
  height: min(84vh, 760px) !important;
  margin-top: clamp(42px, 6.5vh, 64px) !important;
  max-width: calc(100vw - 32px) !important;
  width: min(72vw, 1180px) !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.inset-0.flex.items-center.justify-center > div.relative > div[style*="top: 200px"] {
  top: clamp(130px, 19vh, 170px) !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.inset-0.flex.items-center.justify-center > div.relative > div[style*="top: 100px"] {
  top: clamp(65px, 9.5vh, 85px) !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.top-12.left-1\/2 {
  top: clamp(82px, 12vh, 104px) !important;
  width: min(92vw, 760px) !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.top-12.left-1\/2 p:first-child {
  font-size: 0.875rem !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.45rem !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.top-12.left-1\/2 h3 {
  font-size: 2.625rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.left-6.z-20 [class*="text-[0.6rem]"] {
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
}

section[data-ime-section-key="home_three_layer"] > div.absolute.left-6.z-20 [class*="text-xs"] {
  font-size: 1.05rem !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
}

section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl {
  min-width: 300px !important;
  padding: 1.85rem 2.2rem !important;
}

section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl p {
  font-size: 1.25rem !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl h4 {
  font-size: 2.15rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
}

section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl [class*="font-number"] {
  font-size: 1.18rem !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl span[class*="text-[0.68rem]"] {
  font-size: 0.95rem !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  padding: 0.32rem 0.78rem !important;
}

section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl [class*="text-[0.55rem]"] {
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
}

section[data-ime-section-key="home_three_layer"] svg text {
  font-family: var(--ime-three-layer-font) !important;
  font-size: 18px !important;
  letter-spacing: 0.18em !important;
}

section[data-ime-section-key="home_three_layer"] > p[class*="bottom-16"][class*="right-14"] {
  font-size: 1.08rem !important;
  line-height: 1.65 !important;
  max-width: 22rem !important;
}

section[data-ime-section-key="home_three_layer"] > p[class*="bottom-8"][class*="left-1/2"] {
  font-size: 0.82rem !important;
  letter-spacing: 0.18em !important;
  line-height: 1.45 !important;
}

@media (min-width: 1280px) {
  section[data-ime-section-key="home_three_layer"] > div.absolute.top-12.left-1\/2 h3 {
    font-size: 3rem !important;
  }

  section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl h4 {
    font-size: 2.35rem !important;
  }
}

@media (max-width: 767px) {
  section[data-ime-section-key="home_three_layer"] {
    height: calc(var(--ime-mobile-vh, 1vh) * 100) !important;
    min-height: calc(var(--ime-mobile-vh, 1vh) * 100) !important;
    overflow: hidden !important;
  }

  section[data-ime-section-key="home_three_layer"] > div.absolute.inset-0.flex.items-center.justify-center > div.relative {
    height: min(calc(var(--ime-mobile-vh, 1vh) * 68), 560px) !important;
    margin-top: clamp(100px, calc(var(--ime-mobile-vh, 1vh) * 13), 124px) !important;
    max-width: none !important;
    width: min(122vw, 560px) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
  }

  section[data-ime-section-key="home_three_layer"] > div.absolute.inset-0.flex.items-center.justify-center > div.relative > div[style*="top: 200px"] {
    top: clamp(76px, calc(var(--ime-mobile-vh, 1vh) * 13), 116px) !important;
  }

  section[data-ime-section-key="home_three_layer"] > div.absolute.inset-0.flex.items-center.justify-center > div.relative > div[style*="top: 100px"] {
    top: clamp(38px, calc(var(--ime-mobile-vh, 1vh) * 6.5), 58px) !important;
  }

  section[data-ime-section-key="home_three_layer"] > div.absolute.top-12.left-1\/2 {
    top: clamp(112px, calc(var(--ime-mobile-vh, 1vh) * 14), 136px) !important;
    width: min(92vw, 420px) !important;
  }

  section[data-ime-section-key="home_three_layer"] > div.absolute.top-12.left-1\/2 p:first-child {
    font-size: 0.75rem !important;
  }

  section[data-ime-section-key="home_three_layer"] > div.absolute.top-12.left-1\/2 h3 {
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
  }

  section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl {
    min-width: min(76vw, 250px) !important;
    padding: 1.12rem 1.3rem !important;
  }

  section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl p {
    font-size: 1.05rem !important;
  }

  section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl h4 {
    font-size: 1.65rem !important;
  }

  section[data-ime-section-key="home_three_layer"] .text-center.rounded-2xl span[class*="text-[0.68rem]"] {
    font-size: 0.82rem !important;
    padding: 0.25rem 0.55rem !important;
  }

  section[data-ime-section-key="home_three_layer"] svg text {
    font-size: 14px !important;
  }

  section[data-ime-section-key="home_three_layer"] > p[class*="bottom-8"][class*="left-1/2"] {
    bottom: clamp(58px, calc(var(--ime-mobile-vh, 1vh) * 8), 76px) !important;
    z-index: 45 !important;
  }
}

section[data-ime-section-key^="home_story_"][data-ime-custom-media="true"] svg {
  display: none !important;
}

section[data-ime-section-key^="home_story_"] {
  --ime-story-bg: #f4e7df;
  --ime-story-text: #21191d;
  --ime-story-accent: #b8953f;
  background: var(--ime-story-bg) !important;
  color: var(--ime-story-text) !important;
  isolation: isolate;
  overflow: hidden !important;
  position: relative !important;
}

section[data-ime-section-key^="home_story_"][data-ime-gradient="v1-soft"] {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.48), transparent 56%),
    var(--ime-story-bg) !important;
}

section[data-ime-section-key^="home_story_"][data-ime-gradient="v1-grid"] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ime-story-bg) !important;
  background-size: 96px 96px, 96px 96px, auto !important;
}

section[data-ime-section-key^="home_story_"] > .noise-overlay {
  background: transparent !important;
}

.ime-frontstage-story-background {
  display: block;
  height: 100%;
  inset: 0;
  margin: 0;
  object-fit: var(--ime-story-bg-fit, contain);
  object-position: center center;
  opacity: 0.78;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}

section[data-ime-section-key="home_story_01"] .ime-frontstage-story-background {
  opacity: 0.64;
}

section[data-ime-section-key^="home_story_"][data-ime-custom-media="true"] .ime-home-v1-story-art {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.ime-frontstage-custom-media {
  display: block;
  width: min(520px, 100%);
  max-height: 58vh;
  margin: 0 auto;
  object-fit: contain;
}


.ime-form-feedback {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #2f6f5e;
}

.ime-form-feedback.is-error {
  color: #9d2f3d;
}

.ime-form-feedback.is-success {
  color: #2f6f5e;
}

.ime-action-disabled {
  cursor: not-allowed !important;
  opacity: 0.48 !important;
}

.ime-social-action {
  cursor: pointer;
}

section[data-ime-section-key="home_founders"] {
  --ime-founders-bg: #fbf7f2;
  --ime-founders-text: #1f1b1a;
  --ime-founders-accent: #b8953f;
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 149, 63, 0.12), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(123, 47, 190, 0.08), transparent 36%),
    var(--ime-founders-bg) !important;
  color: var(--ime-founders-text) !important;
  min-height: auto !important;
  padding: clamp(72px, 9vw, 136px) clamp(18px, 5vw, 80px) !important;
  position: relative !important;
}

section[data-ime-section-key="home_founders"][data-ime-founders-ready="true"] > :not(.ime-founders-carousel) {
  display: none !important;
}

.ime-founders-carousel {
  width: min(1180px, 100%);
  margin: 0 auto;
  font-family: var(--ime-founders-body-font, var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", "PingFang TC", sans-serif);
  color: var(--ime-founders-text);
}

.ime-founders-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.ime-founders-heading p {
  margin: 0 0 10px;
  color: var(--ime-founders-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ime-founders-heading h2 {
  margin: 0;
  font-family: var(--ime-founders-title-font, var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", "PingFang TC", sans-serif);
  font-size: var(--ime-founders-title-size, clamp(2rem, 4vw, 3.75rem));
  font-weight: var(--ime-founders-title-weight, 600);
  line-height: 1.18;
  letter-spacing: 0;
}

.ime-founders-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ime-founders-tab {
  appearance: none;
  border: 1px solid rgba(184, 149, 63, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ime-founders-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  min-height: 42px;
  padding: 0 18px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ime-founders-tab:hover,
.ime-founders-tab:focus-visible,
.ime-founders-tab.is-active {
  background: var(--ime-founders-accent);
  border-color: var(--ime-founders-accent);
  color: #fffaf4;
  outline: none;
  transform: translateY(-1px);
}

.ime-founder-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.ime-founder-media {
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(184, 149, 63, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(246, 239, 232, 0.58)),
    rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 58px rgba(31, 27, 26, 0.08);
  overflow: hidden;
}

.ime-founder-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: clamp(8px, 1.4vw, 18px);
}

.ime-founder-copy {
  max-width: 620px;
}

.ime-founder-role {
  margin: 0 0 12px;
  color: var(--ime-founders-accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ime-founder-copy h3 {
  margin: 0;
  font-family: var(--ime-founders-title-font, var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", "PingFang TC", sans-serif);
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: var(--ime-founders-title-weight, 600);
  line-height: 1.1;
  letter-spacing: 0;
}

.ime-founder-en {
  margin: 10px 0 0;
  color: rgba(31, 27, 26, 0.46);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.ime-founder-copy blockquote {
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--ime-founders-accent);
  color: rgba(31, 27, 26, 0.72);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.75;
}

.ime-founder-body {
  margin: clamp(18px, 2.6vw, 28px) 0 0;
  color: rgba(31, 27, 26, 0.68);
  font-family: var(--ime-founders-body-font, var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", "PingFang TC", sans-serif);
  font-size: var(--ime-founders-body-size, clamp(0.98rem, 1.15vw, 1.12rem));
  line-height: var(--ime-founders-body-line-height, 2);
  white-space: pre-line;
}

@media (max-width: 760px) {
  section[data-ime-section-key="home_founders"] {
    padding: clamp(54px, 12vw, 78px) 18px !important;
  }

  .ime-founders-heading {
    display: block;
    margin-bottom: 24px;
  }

  .ime-founders-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ime-founders-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .ime-founder-card {
    display: block;
  }

  .ime-founder-media {
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
  }

  .ime-founder-copy h3 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .ime-founder-copy blockquote {
    font-size: 1.08rem;
  }
}

section[data-ime-section-key="media_coverage"] {
  background:
    radial-gradient(ellipse 90% 60% at 50% 20%, #3a2a4e 0%, #2a1f3a 60%, #1f152a 100%) !important;
  color: #f7f0ea !important;
  isolation: isolate;
  min-height: 980px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
}

section[data-ime-section-key="media_coverage"][data-ime-media-ready="true"] > :not(.ime-media-coverage-visual) {
  display: none !important;
}

.ime-media-coverage-visual {
  color: #f7f0ea;
  font-family: var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", "PingFang TC", sans-serif;
  min-height: 980px;
  overflow: hidden;
  padding: clamp(84px, 9vw, 142px) 0 clamp(64px, 7vw, 104px);
  position: relative;
  z-index: 1;
}

.ime-media-bg {
  background:
    radial-gradient(circle 500px at 15% 30%, rgba(123, 47, 190, 0.18) 0%, transparent 60%),
    radial-gradient(circle 400px at 85% 70%, rgba(184, 149, 63, 0.15) 0%, transparent 60%);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.ime-media-top-line {
  background: linear-gradient(180deg, rgba(123, 47, 190, 0.3), transparent);
  height: 25vh;
  position: absolute;
  right: 18%;
  top: 0;
  width: 1px;
}

.ime-media-heading {
  margin: 0 auto 52px;
  max-width: 960px;
  padding: 0 24px;
  text-align: center;
}

.ime-media-heading p {
  color: #b996f0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1.4;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.ime-media-heading h2 {
  color: #f7f0ea;
  font-family: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
  font-size: clamp(2.35rem, 4.8vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

.ime-media-feature-shell {
  margin: 0 auto 50px;
  overflow: visible;
  padding: 40px 24px 0;
}

.ime-media-feature-stack {
  height: 300px;
  margin: 0 auto;
  perspective: 1200px;
  position: relative;
  width: 320px;
}

.ime-media-feature-card {
  border: 1px solid rgba(247, 240, 234, 0.1);
  border-radius: 12px;
  box-shadow: 0 26px 72px rgba(9, 4, 16, 0.36);
  color: #f7f0ea;
  display: block;
  height: 280px;
  inset: 0;
  overflow: hidden;
  position: absolute;
  text-decoration: none;
  transform: translate3d(0, var(--ime-card-y, 0), 0) rotate(var(--ime-card-rotate, 0deg)) scale(var(--ime-card-scale, 1));
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
  width: 320px;
  z-index: var(--ime-card-z, 5);
}

.ime-media-feature-card:nth-child(1) {
  --ime-card-rotate: -30deg;
  --ime-card-y: 50px;
  --ime-card-scale: 1;
  --ime-card-z: 5;
  transform: translate3d(-640px, var(--ime-card-y), 0) rotate(var(--ime-card-rotate)) scale(var(--ime-card-scale));
}

.ime-media-feature-card:nth-child(2) {
  --ime-card-rotate: -15deg;
  --ime-card-y: 25px;
  --ime-card-scale: 1;
  --ime-card-z: 4;
  transform: translate3d(-320px, var(--ime-card-y), 0) rotate(var(--ime-card-rotate)) scale(var(--ime-card-scale));
}

.ime-media-feature-card:nth-child(3) {
  --ime-card-rotate: 0deg;
  --ime-card-y: 0px;
  --ime-card-scale: 1;
  --ime-card-z: 3;
  transform: translate3d(0, var(--ime-card-y), 0) rotate(var(--ime-card-rotate)) scale(var(--ime-card-scale));
}

.ime-media-feature-card:nth-child(4) {
  --ime-card-rotate: 15deg;
  --ime-card-y: 25px;
  --ime-card-scale: 1;
  --ime-card-z: 2;
  transform: translate3d(320px, var(--ime-card-y), 0) rotate(var(--ime-card-rotate)) scale(var(--ime-card-scale));
}

.ime-media-feature-card:nth-child(5) {
  --ime-card-rotate: 30deg;
  --ime-card-y: 50px;
  --ime-card-scale: 1;
  --ime-card-z: 1;
  transform: translate3d(640px, var(--ime-card-y), 0) rotate(var(--ime-card-rotate)) scale(var(--ime-card-scale));
}

.ime-media-feature-stack:hover .ime-media-feature-card:nth-child(1),
.ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(1) {
  transform: translate3d(-640px, 42px, 0) rotate(-30deg) scale(1.02);
}

.ime-media-feature-stack:hover .ime-media-feature-card:nth-child(2),
.ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(2) {
  transform: translate3d(-320px, 17px, 0) rotate(-15deg) scale(1.02);
}

.ime-media-feature-stack:hover .ime-media-feature-card:nth-child(3),
.ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(3) {
  transform: translate3d(0, -8px, 0) rotate(0deg) scale(1.02);
}

.ime-media-feature-stack:hover .ime-media-feature-card:nth-child(4),
.ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(4) {
  transform: translate3d(320px, 17px, 0) rotate(15deg) scale(1.02);
}

.ime-media-feature-stack:hover .ime-media-feature-card:nth-child(5),
.ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(5) {
  transform: translate3d(640px, 42px, 0) rotate(30deg) scale(1.02);
}

.ime-media-feature-card:hover,
.ime-media-feature-card:focus-visible {
  border-color: rgba(123, 47, 190, 0.6);
  box-shadow: 0 30px 82px rgba(9, 4, 16, 0.52);
  outline: none;
}

.ime-media-card-image,
.ime-media-card-image img,
.ime-media-row-image,
.ime-media-row-image img {
  display: block;
  height: 100%;
  width: 100%;
}

.ime-media-card-image img,
.ime-media-row-image img {
  object-fit: cover;
  object-position: center center;
  transition: transform 700ms ease;
}

.ime-media-feature-card:hover img,
.ime-media-row-card:hover img {
  transform: scale(1.05);
}

.ime-media-card-wash {
  background:
    linear-gradient(135deg, rgba(123, 47, 190, 0.25), rgba(15, 8, 23, 0.3), rgba(184, 149, 63, 0.1)),
    linear-gradient(180deg, rgba(15, 8, 23, 0.12), rgba(15, 8, 23, 0.96));
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.ime-media-card-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
  inset: 0;
  justify-content: space-between;
  padding: 20px;
  position: absolute;
  z-index: 2;
}

.ime-media-card-source {
  align-items: center;
  display: flex;
  gap: 8px;
}

.ime-media-card-source span {
  align-items: center;
  background: rgba(184, 149, 63, 0.2);
  border: 1px solid rgba(184, 149, 63, 0.3);
  border-radius: 999px;
  color: #d4b96a;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.ime-media-card-source b {
  color: rgba(247, 240, 234, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
}

.ime-media-card-copy h3 {
  color: #f7f0ea;
  font-family: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0 0 8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
}

.ime-media-card-copy p {
  color: rgba(212, 185, 106, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.ime-media-hint {
  color: rgba(247, 240, 234, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0;
  margin: 26px 0 0;
  text-align: center;
}

.ime-media-marquee-wrap {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.ime-media-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.ime-media-marquee-left {
  animation: ime-media-marquee-left 35s linear infinite;
}

.ime-media-marquee-right {
  animation: ime-media-marquee-right 40s linear infinite;
}

.ime-media-marquee-wrap:hover .ime-media-marquee {
  animation-play-state: paused;
}

.ime-media-row-card {
  border: 1px solid rgba(247, 240, 234, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(9, 4, 16, 0.28);
  color: #f7f0ea;
  flex: 0 0 320px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 240ms ease, transform 240ms ease;
}

.ime-media-row-card:hover,
.ime-media-row-card:focus-visible {
  border-color: rgba(123, 47, 190, 0.62);
  outline: none;
  transform: translateY(-2px);
}

.ime-media-row-image {
  background: rgba(15, 8, 23, 0.5);
  height: 120px;
  overflow: hidden;
  position: relative;
}

.ime-media-row-overlay {
  background: linear-gradient(180deg, rgba(15, 8, 23, 0.08), rgba(15, 8, 23, 0.9));
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.ime-media-row-source,
.ime-media-row-date {
  background: rgba(15, 8, 23, 0.72);
  border-radius: 999px;
  color: #d4b96a;
  font-size: 0.62rem;
  font-weight: 700;
  left: 10px;
  line-height: 1;
  padding: 6px 9px;
  position: absolute;
  top: 10px;
}

.ime-media-row-date {
  border-radius: 4px;
  color: rgba(247, 240, 234, 0.78);
  left: auto;
  right: 10px;
}

.ime-media-row-copy {
  background: rgba(15, 8, 23, 0.72);
  min-height: 78px;
  padding: 14px;
}

.ime-media-row-copy p {
  color: rgba(247, 240, 234, 0.82);
  display: -webkit-box;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ime-media-stats {
  align-items: center;
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  justify-content: center;
  margin: 58px auto 0;
  padding: 0 24px;
}

.ime-media-stats div {
  text-align: center;
}

.ime-media-stats b {
  color: #d4b96a;
  display: block;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
}

.ime-media-stats span {
  color: rgba(247, 240, 234, 0.28);
  display: block;
  font-size: 0.78rem;
  margin-top: 8px;
}

.ime-media-stats i {
  background: rgba(247, 240, 234, 0.1);
  display: block;
  height: 42px;
  width: 1px;
}

.ime-media-fallback {
  align-items: center;
  background: var(--ime-media-card-bg, linear-gradient(135deg, #3a2a4e, #1f152a));
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  position: relative;
  text-align: center;
  width: 100%;
}

.ime-media-fallback::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.35), transparent 50%);
  content: "";
  inset: 0;
  opacity: 0.42;
  position: absolute;
}

.ime-media-fallback span,
.ime-media-fallback small,
.ime-media-fallback i {
  position: relative;
  z-index: 1;
}

.ime-media-fallback span {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-serif-tc), "Noto Serif TC", "Noto Sans TC", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.ime-media-fallback i {
  background: var(--ime-media-card-accent, #d4b96a);
  height: 1px;
  margin: 10px 0;
  width: 42px;
}

.ime-media-fallback small {
  color: var(--ime-media-card-accent, #d4b96a);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@keyframes ime-media-marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes ime-media-marquee-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 1180px) {
  .ime-media-feature-card:nth-child(1) {
    transform: translate3d(-430px, 44px, 0) rotate(-24deg) scale(0.96);
  }

  .ime-media-feature-card:nth-child(2) {
    transform: translate3d(-215px, 22px, 0) rotate(-12deg) scale(0.96);
  }

  .ime-media-feature-card:nth-child(3) {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.96);
  }

  .ime-media-feature-card:nth-child(4) {
    transform: translate3d(215px, 22px, 0) rotate(12deg) scale(0.96);
  }

  .ime-media-feature-card:nth-child(5) {
    transform: translate3d(430px, 44px, 0) rotate(24deg) scale(0.96);
  }

  .ime-media-feature-stack:hover .ime-media-feature-card:nth-child(1),
  .ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(1) {
    transform: translate3d(-430px, 44px, 0) rotate(-24deg) scale(0.96);
  }

  .ime-media-feature-stack:hover .ime-media-feature-card:nth-child(2),
  .ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(2) {
    transform: translate3d(-215px, 22px, 0) rotate(-12deg) scale(0.96);
  }

  .ime-media-feature-stack:hover .ime-media-feature-card:nth-child(4),
  .ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(4) {
    transform: translate3d(215px, 22px, 0) rotate(12deg) scale(0.96);
  }

  .ime-media-feature-stack:hover .ime-media-feature-card:nth-child(5),
  .ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(5) {
    transform: translate3d(430px, 44px, 0) rotate(24deg) scale(0.96);
  }
}

@media (max-width: 760px) {
  section[data-ime-section-key="media_coverage"] {
    min-height: auto !important;
  }

  .ime-media-coverage-visual {
    min-height: auto;
    padding: 76px 0 64px;
  }

  .ime-media-heading {
    margin-bottom: 30px;
  }

  .ime-media-heading h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .ime-media-feature-shell {
    margin-bottom: 34px;
    overflow-x: auto;
    padding: 18px 18px 8px;
  }

  .ime-media-feature-stack {
    display: flex;
    gap: 14px;
    height: auto;
    margin: 0;
    min-width: max-content;
    perspective: none;
    width: auto;
  }

  .ime-media-feature-card,
  .ime-media-feature-card:nth-child(n),
  .ime-media-feature-stack:hover .ime-media-feature-card:nth-child(n),
  .ime-media-feature-stack:focus-within .ime-media-feature-card:nth-child(n) {
    flex: 0 0 280px;
    height: 246px;
    inset: auto;
    position: relative;
    transform: none;
    width: 280px;
  }

  .ime-media-hint {
    display: none;
  }

  .ime-media-row-card {
    flex-basis: 286px;
  }

  .ime-media-stats {
    gap: 18px;
    margin-top: 44px;
  }

.ime-media-stats i {
  height: 32px;
}
}

.ime-official-certificate-frame {
  align-items: flex-start !important;
  aspect-ratio: auto !important;
  background: transparent !important;
  display: flex !important;
  height: auto !important;
  justify-content: center !important;
  min-height: 0 !important;
}

img[data-ime-certificate-image="true"],
.ime-official-certificate-frame img {
  aspect-ratio: var(--ime-certificate-natural-ratio, auto) !important;
  background: transparent !important;
  display: block !important;
  height: auto !important;
  inset: auto !important;
  max-height: none !important;
  max-width: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center top !important;
  position: relative !important;
  transform: none !important;
  width: min(100%, var(--ime-certificate-image-width, 100%)) !important;
}

.ime-official-certificate-frame:hover img,
.ime-official-certificate-frame:focus-within img,
img[data-ime-certificate-image="true"]:hover {
  object-fit: contain !important;
  transform: none !important;
}

@media (max-width: 760px) {
  body div.relative:has(> section[data-ime-section-key="home_by_numbers"]) {
    height: max(1500px, calc(var(--ime-mobile-vh, 1vh) * 210)) !important;
  }

  section[data-ime-section-key="home_by_numbers"] {
    height: calc(var(--ime-mobile-vh, 1vh) * 100) !important;
    min-height: min(820px, calc(var(--ime-mobile-vh, 1vh) * 100)) !important;
  }

  section[data-ime-section-key="home_by_numbers"] > .flex.h-full > .w-screen.h-full {
    align-items: flex-start !important;
    padding-bottom: clamp(3.75rem, calc(var(--ime-mobile-vh, 1vh) * 7), 5rem) !important;
    padding-top: clamp(5.25rem, calc(var(--ime-mobile-vh, 1vh) * 12), 6.7rem) !important;
  }

  section[data-ime-section-key="home_by_numbers"] > .flex.h-full > .w-screen.h-full:first-child .grid {
    gap: clamp(1rem, calc(var(--ime-mobile-vh, 1vh) * 2.4), 1.35rem) !important;
    max-width: min(20.75rem, 86vw) !important;
  }

  section[data-ime-section-key="home_by_numbers"] > .flex.h-full > .w-screen.h-full:first-child .relative.flex.items-center.justify-center {
    height: auto !important;
  }

  section[data-ime-section-key="home_by_numbers"] > .flex.h-full > .w-screen.h-full:first-child .relative.w-64 {
    height: min(58vw, 16.5rem) !important;
    width: min(46vw, 13.25rem) !important;
  }

  section[data-ime-section-key="home_by_numbers"] .space-y-6 {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
    text-align: center !important;
  }

  section[data-ime-section-key="home_by_numbers"] .space-y-6 > * {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    text-align: center !important;
  }

  section[data-ime-section-key="home_by_numbers"] .space-y-6 [class*="text-overline"] {
    font-size: 0.68rem !important;
  }

  section[data-ime-section-key="home_by_numbers"] .space-y-6 h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem) !important;
    line-height: 1.2 !important;
  }

  section[data-ime-section-key="home_by_numbers"] .space-y-6 .w-12 {
    margin-bottom: 0.1rem !important;
    margin-top: 0.25rem !important;
    width: 3rem !important;
  }

  section[data-ime-section-key="home_by_numbers"] .space-y-6 p {
    line-height: 1.7 !important;
  }

  section[data-ime-section-key="home_by_numbers"] > .flex.h-full > .w-screen.h-full + .w-screen.h-full {
    justify-content: flex-start !important;
    padding-bottom: clamp(4rem, calc(var(--ime-mobile-vh, 1vh) * 8), 5.5rem) !important;
    padding-top: clamp(5.8rem, calc(var(--ime-mobile-vh, 1vh) * 13), 7rem) !important;
  }

  section[data-ime-section-key="home_by_numbers"] .max-w-4xl > p {
    margin-bottom: 1.1rem !important;
  }

  section[data-ime-section-key="home_by_numbers"] .grid.grid-cols-1.md\:grid-cols-3 {
    gap: 0.85rem !important;
  }

  section[data-ime-section-key="home_by_numbers"] .text-center.p-8.border {
    padding: 1rem 1.15rem !important;
  }

  section[data-ime-section-key="home_by_numbers"] .text-center.p-8.border > div[class*="text-[clamp"] {
    margin-bottom: 0.45rem !important;
  }

  section[data-ime-section-key="home_by_numbers"] .text-center.p-8.border [data-ime-by-numbers-value="true"] {
    font-size: clamp(1.72rem, 8vw, 2.25rem) !important;
    line-height: 1.05 !important;
  }

  .bg-deep-purple.py-section-lg.px-6.noise-overlay {
    padding-bottom: max(7.5rem, calc(5.5rem + env(safe-area-inset-bottom))) !important;
  }

  .bg-deep-purple.py-section-lg.px-6.noise-overlay > .max-w-5xl {
    margin-left: auto !important;
    margin-right: auto !important;
    width: min(100%, 23rem) !important;
  }

  .bg-deep-purple.py-section-lg.px-6.noise-overlay .grid {
    justify-items: center !important;
    gap: 1.25rem !important;
  }

  .bg-deep-purple.py-section-lg.px-6.noise-overlay .grid > div {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 21.5rem !important;
    min-height: 12.5rem !important;
    padding: 1.65rem 1.35rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .bg-deep-purple.py-section-lg.px-6.noise-overlay .grid > div > span,
  .bg-deep-purple.py-section-lg.px-6.noise-overlay .grid > div > h4,
  .bg-deep-purple.py-section-lg.px-6.noise-overlay .grid > div > p {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 18.5rem !important;
    text-align: center !important;
  }

  body button.fixed.bottom-6.right-6[class*="bg-night/60"] {
    display: none !important;
  }
}

/* Official frontstage mobile density pass. */
@media (max-width: 760px) {
  body main > section[class*="pt-32"][class*="pb-section"],
  body main > section[class*="md:pt-44"][class*="pb-section"] {
    min-height: auto !important;
    padding-top: 5.6rem !important;
    padding-bottom: 2.65rem !important;
  }

  body main > section[class*="py-section"],
  body main > section[class*="py-section-lg"] {
    padding-top: 2.65rem !important;
    padding-bottom: 2.65rem !important;
  }

  body footer [class*="py-section"] {
    padding-top: 2.3rem !important;
    padding-bottom: 2.3rem !important;
  }

  body main :where(
    .max-w-3xl,
    .max-w-4xl,
    .max-w-5xl,
    .max-w-6xl,
    .max-w-7xl
  ) {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body main :where(
    [class*="text-[clamp(3rem"],
    [class*="text-[clamp(2.5rem"],
    .text-h1,
    .text-h2
  ) {
    font-size: clamp(2.2rem, 11vw, 3.35rem) !important;
    line-height: 1.08 !important;
  }

  body main :where(.text-h3, h3[class*="text-h3"]) {
    font-size: 1.35rem !important;
    line-height: 1.18 !important;
  }

  body main :where(.text-body-lg, .text-body) {
    font-size: 0.92rem !important;
    line-height: 1.62 !important;
  }

  body main :where(.text-overline, [class*="text-overline"]) {
    font-size: 0.68rem !important;
    letter-spacing: 0.16em !important;
  }

  body main :where(
    .mb-20,
    .mb-16,
    .mb-12,
    .mb-10,
    .mb-8,
    .mb-6
  ) {
    margin-bottom: 1rem !important;
  }

  body main :where(
    .mt-20,
    .mt-16,
    .mt-12,
    .mt-10,
    .mt-8,
    .mt-6
  ) {
    margin-top: 1rem !important;
  }

  body main :where(.gap-16, .gap-12, .gap-10, .gap-8) {
    gap: 1rem !important;
  }

  body main :where(.space-y-8, .space-y-6) > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.85rem !important;
  }

  body main :where(
    .p-12,
    .p-10,
    .p-8,
    .p-6
  ) {
    padding: 1rem !important;
  }

  body main :where(.rounded-brand, .rounded-2xl, .rounded-3xl) {
    border-radius: 8px !important;
  }

  body main :where(
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3,
    .grid.md\:grid-cols-12
  ) {
    gap: 1rem !important;
  }

  body main section[class*="bg-night"] :where(.text-body-lg, .text-body) {
    line-height: 1.68 !important;
  }

  body main .btn-gold,
  body main .btn-outline {
    min-height: 2.7rem !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 760px) {
  body main [style*="opacity:0"] {
    opacity: 1 !important;
    transform: none !important;
  }

  body main > section[class*="min-h-[80vh]"],
  body main > section[class*="min-h-screen"],
  body main > section[class*="h-screen"] {
    height: auto !important;
    min-height: auto !important;
  }

  body main > section[class*="min-h-[80vh]"][class*="flex"][class*="items-center"] {
    display: block !important;
    padding-top: 5.6rem !important;
    padding-bottom: 2.65rem !important;
  }

  body main :where(
    [class*="aspect-square"][class*="rounded-brand"],
    [class*="aspect-square"][class*="overflow-hidden"]
  ) {
    aspect-ratio: 16 / 10 !important;
    max-height: 240px !important;
  }

  body main :where([class*="grid-cols-2"]) {
    gap: 0.75rem !important;
  }

  body main :where(.font-number.text-3xl, .font-number.text-4xl) {
    font-size: 1.45rem !important;
    line-height: 1.08 !important;
  }

  body main [class*="border-l-2"][class*="border-gold"] {
    padding-top: 0.35rem !important;
    padding-right: 0.75rem !important;
    padding-bottom: 0.35rem !important;
    padding-left: 0.75rem !important;
  }
}

.ime-managed-official-content {
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 149, 63, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 244, 238, 0.92));
  color: #1f1b1a;
  font-family: var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", "PingFang TC", Arial, sans-serif;
  padding: clamp(56px, 7vw, 108px) clamp(18px, 5vw, 72px);
}

.ime-managed-official-content[hidden] {
  display: none !important;
}

.ime-managed-block {
  margin: 0 auto clamp(34px, 5vw, 68px);
  max-width: 1180px;
}

.ime-managed-block:last-child {
  margin-bottom: 0;
}

.ime-managed-heading {
  margin: 0 0 clamp(18px, 3vw, 32px);
  max-width: 820px;
}

.ime-managed-heading p {
  color: #a47e2d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.ime-managed-heading h2 {
  color: #1f1b1a;
  font-family: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
}

.ime-managed-body {
  color: rgba(31, 27, 26, 0.68);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.9;
  margin-top: 1rem;
  white-space: pre-line;
}

.ime-managed-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.ime-managed-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 149, 63, 0.18);
  border-radius: 8px;
  color: inherit;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.ime-managed-card-compact {
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.ime-managed-card-compact b {
  color: #a47e2d;
  font-size: 0.82rem;
  line-height: 1.6;
}

.ime-managed-card-compact p {
  margin: 0;
}

.ime-managed-card-image {
  background: rgba(248, 244, 238, 0.9);
  flex: 0 0 34%;
  min-height: 160px;
}

.ime-managed-card-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.ime-managed-card-copy {
  flex: 1 1 auto;
  padding: 18px;
}

.ime-managed-meta {
  color: #a47e2d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.ime-managed-card h3 {
  color: #1f1b1a;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.7rem;
}

.ime-managed-card p {
  color: rgba(31, 27, 26, 0.66);
  font-size: 0.92rem;
  line-height: 1.68;
  margin: 0.45rem 0 0;
}


.ime-managed-card-team {
  display: block;
  overflow: visible;
}

.ime-managed-card-team .ime-managed-card-image {
  background: linear-gradient(180deg, rgba(248, 244, 238, 0.92), rgba(255, 255, 255, 0.86));
  display: block;
  line-height: 0;
  min-height: 0;
  overflow: visible;
  width: 100%;
}

.ime-managed-card-team .ime-managed-card-image img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  width: 100%;
}

.ime-managed-card-team .ime-managed-card-copy {
  padding: 18px 20px 22px;
}

.ime-managed-card-team h3 {
  font-family: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
  font-size: clamp(1.15rem, 1.55vw, 1.42rem);
  font-weight: 800;
}

.ime-managed-card-team p {
  font-family: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
}

.ime-managed-image-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-top: 16px;
}

.ime-managed-image-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 149, 63, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.ime-managed-image-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  width: 100%;
}

.ime-managed-image-card p {
  color: rgba(31, 27, 26, 0.66);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  padding: 0 12px 12px;
}

@media (max-width: 760px) {
  .ime-managed-official-content {
    padding: 2.4rem 1rem;
  }

  .ime-managed-block {
    margin-bottom: 1.7rem;
  }

  .ime-managed-heading {
    margin-bottom: 1rem;
  }

  .ime-managed-heading h2 {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
  }

  .ime-managed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .ime-managed-card {
    display: block;
  }

  .ime-managed-card-image {
    min-height: 0;
  }

  .ime-managed-card-image img {
    aspect-ratio: 16 / 10;
  }

  .ime-managed-card-copy,
  .ime-managed-card-compact {
    padding: 0.85rem;
  }

  .ime-managed-card h3 {
    font-size: 0.98rem;
  }

  .ime-managed-card p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .ime-managed-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


[data-ime-managed-page="product"] {
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 149, 63, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 244, 238, 0.96));
}

[data-ime-managed-page="product"] .ime-managed-block {
  max-width: 1180px;
}

[data-ime-managed-page="product"] .ime-managed-grid {
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

[data-ime-managed-page="product"] .ime-managed-card {
  display: block;
  overflow: hidden;
}

[data-ime-managed-page="product"] .ime-managed-card-image {
  background: #f8f4ee;
  display: block;
  flex: none;
  min-height: 0;
  width: 100%;
}

[data-ime-managed-page="product"] .ime-managed-card-image img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  width: 100%;
}

[data-ime-managed-page="product"] .ime-managed-card-copy {
  padding: clamp(18px, 2.2vw, 26px);
}

.ime-managed-product-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-top: 18px;
}

.ime-managed-product-stat {
  background: rgba(255, 255, 255, 0.58);
  border-left: 2px solid rgba(184, 149, 63, 0.45);
  padding: 0.75rem 1rem;
}

.ime-managed-product-stat strong {
  color: #1f1b1a;
  display: block;
  font-family: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", Arial, sans-serif;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.ime-managed-product-stat span {
  color: rgba(31, 27, 26, 0.58);
  display: block;
  font-size: 0.86rem;
  line-height: 1.55;
  margin-top: 0.32rem;
}

.ime-managed-product-forms {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.ime-managed-product-form {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 149, 63, 0.18);
  border-radius: 8px;
  color: #1f1b1a;
  padding: clamp(22px, 3vw, 34px);
}

.ime-managed-product-form-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ime-managed-product-form-head span {
  color: #00736d;
  font-family: var(--font-sans-tc), "Microsoft JhengHei", "微軟正黑", "Noto Sans TC", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.ime-managed-product-form-head p {
  color: #a47e2d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
}

.ime-managed-product-form h3 {
  color: #1f1b1a;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.ime-managed-product-form-body {
  color: rgba(31, 27, 26, 0.68);
  font-size: 0.96rem;
  line-height: 1.85;
  margin: 1rem 0 0;
}

@media (max-width: 760px) {
  [data-ime-managed-page="product"] .ime-managed-grid,
  .ime-managed-product-stats,
  .ime-managed-product-forms {
    grid-template-columns: 1fr;
  }

  [data-ime-managed-page="product"] .ime-managed-card-image img {
    aspect-ratio: auto;
    padding: 8px;
  }
}



/* desktop-founders-gap-20260630
   Keep the injected founder carousel compact on desktop so the next section
   is visible instead of a large empty ivory band. */
@media (min-width: 761px) {
  section[data-ime-section-key="home_founders"] {
    padding-top: clamp(42px, 4.2vw, 64px) !important;
    padding-bottom: clamp(40px, 4vw, 60px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-heading {
    margin-bottom: clamp(18px, 2.2vw, 30px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-card {
    gap: clamp(24px, 3.4vw, 52px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-media {
    max-height: min(42vh, 360px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-copy blockquote {
    margin-top: clamp(14px, 1.8vw, 22px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-body {
    margin-top: clamp(12px, 1.6vw, 20px) !important;
  }
}
/* home-transition-gap-20260630
   Desktop handoff between founder carousel and the next R&D section: avoid a viewport where only whitespace is visible. */
@media (min-width: 761px) {
  section[data-ime-section-key="home_founders"] {
    padding-bottom: clamp(18px, 2vw, 28px) !important;
  }

  section[data-ime-section-key="home_rd_partner"] {
    padding-top: clamp(18px, 2.2vw, 32px) !important;
  }

  section[data-ime-section-key="home_rd_partner"] .text-center.mb-16 {
    margin-bottom: clamp(28px, 3vw, 44px) !important;
  }
}
/* home-transition-gap-tight-20260630
   Tighten the desktop founder -> R&D handoff so the following title is visible before the viewport reads as empty. */
@media (min-width: 761px) {
  section[data-ime-section-key="home_founders"] {
    padding-bottom: clamp(8px, 1.1vw, 16px) !important;
  }

  section[data-ime-section-key="home_rd_partner"] {
    padding-top: 0 !important;
  }

  section[data-ime-section-key="home_rd_partner"] > div[class*="max-w-6xl"] {
    margin-top: clamp(-56px, -4vw, -32px) !important;
  }
}
/* home-static-motion-visible-20260630
   The mirrored official homepage is served without the original Next runtime, so static
   sections that relied on Framer Motion need their initial hidden states revealed. */
body main section.py-section-lg.relative.overflow-hidden.noise-overlay[style*="#F2E9D5"] [style*="opacity:0"][style*="translate"],
body main section.py-section-lg.relative.overflow-hidden.noise-overlay[style*="#F2E9D5"] [style*="opacity: 0"][style*="translate"],
body main section.py-section-lg.bg-deep-forest.relative.overflow-hidden.noise-overlay [style*="opacity:0"][style*="translate"],
body main section.py-section-lg.bg-deep-forest.relative.overflow-hidden.noise-overlay [style*="opacity: 0"][style*="translate"],
body main section.py-section-lg.bg-ivory.relative.overflow-hidden.noise-overlay [style*="opacity:0"][style*="translate"],
body main section.py-section-lg.bg-ivory.relative.overflow-hidden.noise-overlay [style*="opacity: 0"][style*="translate"],
body main section.relative.overflow-hidden:not(.py-section-lg) [style*="opacity:0"][style*="translate"],
body main section.relative.overflow-hidden:not(.py-section-lg) [style*="opacity: 0"][style*="translate"] {
  opacity: 1 !important;
  transform: none !important;
}

body main section.py-section-lg.bg-deep-forest.relative.overflow-hidden.noise-overlay [style*="scale(0)"],
body main section.py-section-lg.bg-deep-forest.relative.overflow-hidden.noise-overlay [style*="scaleY(0)"],
body main section.relative.overflow-hidden:not(.py-section-lg) [style*="scale(0)"],
body main section.relative.overflow-hidden:not(.py-section-lg) [style*="scaleY(0)"] {
  transform: none !important;
}

/* original-marketing-static-motion-visible-20260701
   About/products/training use the original static Next markup without the original
   Framer runtime. Reveal those page-local motion wrappers too, otherwise desktop
   keeps section height but leaves the content transparent. */
html[data-ime-official-page="brand"] body main section [style*="opacity:0"][style*="translate"],
html[data-ime-official-page="brand"] body main section [style*="opacity: 0"][style*="translate"],
html[data-ime-official-page="product"] body main section [style*="opacity:0"][style*="translate"],
html[data-ime-official-page="product"] body main section [style*="opacity: 0"][style*="translate"],
html[data-ime-official-page="academy"] body main section [style*="opacity:0"][style*="translate"],
html[data-ime-official-page="academy"] body main section [style*="opacity: 0"][style*="translate"] {
  opacity: 1 !important;
  transform: none !important;
}

html[data-ime-official-page="brand"] body main section [style*="scale(0)"],
html[data-ime-official-page="brand"] body main section [style*="scaleY(0)"],
html[data-ime-official-page="product"] body main section [style*="scale(0)"],
html[data-ime-official-page="product"] body main section [style*="scaleY(0)"],
html[data-ime-official-page="academy"] body main section [style*="scale(0)"],
html[data-ime-official-page="academy"] body main section [style*="scaleY(0)"] {
  transform: none !important;
}

/* home-fullscreen-content-gap-fix-20260630
   Keep content-managed official homepage sections visible on desktop and mobile.
   The original static page uses sticky/fullscreen wrappers; content patches must
   tag and compact those wrappers so real content is not pushed behind empty scroll space. */
body main [data-ime-section-key="home_story_wrapper"],
body main [data-ime-section-key^="home_story_"][data-ime-section-key$="_wrapper"],
body main section[data-ime-section-key="home_rd_partner"],
body main section[data-ime-section-key="home_cdmo"],
body main section[data-ime-section-key="home_certificates"],
body main section[data-ime-section-key="media_coverage"],
body main section[data-ime-section-key="home_recruit"] {
  scroll-margin-top: clamp(92px, 10vw, 132px);
}
body main [data-ime-section-hidden="true"],
body main [data-ime-static-artifact-hidden],
body main [data-data-ime-static-artifact-hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}


@media (min-width: 761px) {
  body main [data-ime-section-key="home_story_wrapper"],
  body main [data-ime-section-key^="home_story_"][data-ime-section-key$="_wrapper"] {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body main [data-ime-section-key="home_story_wrapper"] > section.ime-home-v1-story-section,
  body main [data-ime-section-key^="home_story_"][data-ime-section-key$="_wrapper"] > section.ime-home-v1-story-section {
    height: auto !important;
    min-height: min(86vh, 820px) !important;
    position: relative !important;
    top: auto !important;
  }

  body main section[data-ime-section-key="home_rd_partner"],
  body main section[data-ime-section-key="home_cdmo"],
  body main section[data-ime-section-key="home_certificates"],
  body main section[data-ime-section-key="media_coverage"] {
    height: auto !important;
    min-height: auto !important;
    padding-top: clamp(34px, 3.6vw, 60px) !important;
    padding-bottom: clamp(36px, 4vw, 66px) !important;
  }

  body main section[data-ime-section-key="home_recruit"] {
    height: auto !important;
    min-height: auto !important;
  }

  body main section[data-ime-section-key="home_recruit"] > div {
    min-height: auto !important;
    padding-top: clamp(38px, 4vw, 68px) !important;
    padding-bottom: clamp(38px, 4vw, 68px) !important;
  }

  body main :where(
    section[data-ime-section-key="home_rd_partner"],
    section[data-ime-section-key="home_cdmo"],
    section[data-ime-section-key="home_certificates"],
    section[data-ime-section-key="media_coverage"],
    section[data-ime-section-key="home_recruit"]
  ) :where(.mb-20, .mb-16, .mb-14, .mb-12, .mb-10) {
    margin-bottom: clamp(12px, 1.5vw, 24px) !important;
  }

  body main :where(
    section[data-ime-section-key="home_rd_partner"],
    section[data-ime-section-key="home_cdmo"],
    section[data-ime-section-key="home_certificates"],
    section[data-ime-section-key="media_coverage"],
    section[data-ime-section-key="home_recruit"]
  ) :where(.mt-20, .mt-16, .mt-14, .mt-12, .mt-10) {
    margin-top: clamp(12px, 1.5vw, 24px) !important;
  }

  body main :where(
    section[data-ime-section-key="home_rd_partner"],
    section[data-ime-section-key="home_cdmo"],
    section[data-ime-section-key="home_certificates"],
    section[data-ime-section-key="media_coverage"],
    section[data-ime-section-key="home_recruit"]
  ) :where(.text-h1, .text-h2, h1, h2) {
    font-size: clamp(2.1rem, 3.9vw, 3.9rem) !important;
    line-height: 1.08 !important;
  }

  html[data-ime-official-page="contact"] body main > section:first-child {
    min-height: auto !important;
    padding-top: clamp(104px, 10vw, 140px) !important;
    padding-bottom: clamp(36px, 5vw, 64px) !important;
  }
}

@media (max-width: 760px) {
  body main [data-ime-section-key="home_story_wrapper"],
  body main [data-ime-section-key^="home_story_"][data-ime-section-key$="_wrapper"] {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  body main [data-ime-section-key="home_story_wrapper"] > section.ime-home-v1-story-section,
  body main [data-ime-section-key^="home_story_"][data-ime-section-key$="_wrapper"] > section.ime-home-v1-story-section {
    height: auto !important;
    min-height: min(calc(var(--ime-mobile-vh, 1vh) * 82), 760px) !important;
    position: relative !important;
    top: auto !important;
  }

  body main section[data-ime-section-key="home_rd_partner"],
  body main section[data-ime-section-key="home_cdmo"],
  body main section[data-ime-section-key="home_certificates"],
  body main section[data-ime-section-key="media_coverage"],
  body main section[data-ime-section-key="home_recruit"] {
    height: auto !important;
    min-height: auto !important;
    padding-top: 2.55rem !important;
    padding-bottom: 2.55rem !important;
  }

  body main section[data-ime-section-key="home_recruit"] > div {
    min-height: auto !important;
    padding-top: 2.55rem !important;
    padding-bottom: 2.55rem !important;
  }
}
/* home-story-sticky-scroll-lock-20260701
   Desktop story slides need a semi-locked scroll stage so 01/03, 02/03 and 03/03
   each receive readable viewport time. Keep the later fullscreen sections compact;
   only restore sticky behavior for the story wrapper. */
@media (min-width: 761px) {
  body main [data-ime-section-key="home_story_wrapper"],
  body main [data-ime-section-key^="home_story_"][data-ime-section-key$="_wrapper"] {
    --ime-story-desktop-scroll-height: 360vh;
    height: auto !important;
    max-height: none !important;
    min-height: var(--ime-story-desktop-scroll-height, 360vh) !important;
    overflow: visible !important;
  }

  body main [data-ime-section-key="home_story_wrapper"] > section.ime-home-v1-story-section,
  body main [data-ime-section-key^="home_story_"][data-ime-section-key$="_wrapper"] > section.ime-home-v1-story-section {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 0 !important;
  }
}
/* home-story-mobile-half-lock-20260701
   Mobile story slides also need a readable semi-locked stage. This block must
   live after home-fullscreen-content-gap-fix so the compact mobile rules do not
   collapse the 01/03, 02/03 and 03/03 scroll window. */
@media (max-width: 760px) {
  body main [data-ime-section-key=home_story_wrapper],
  body main [data-ime-section-key^=home_story_][data-ime-section-key$=_wrapper] {
    --ime-story-mobile-scroll-height: calc(var(--ime-mobile-vh, 1vh) * 340);
    height: var(--ime-story-mobile-scroll-height, 340vh) !important;
    max-height: none !important;
    min-height: var(--ime-story-mobile-scroll-height, 340vh) !important;
    overflow: visible !important;
  }

  body main [data-ime-section-key=home_story_wrapper] > section.ime-home-v1-story-section,
  body main [data-ime-section-key^=home_story_][data-ime-section-key$=_wrapper] > section.ime-home-v1-story-section {
    height: calc(var(--ime-mobile-vh, 1vh) * 100) !important;
    min-height: calc(var(--ime-mobile-vh, 1vh) * 100) !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 0 !important;
  }
}

/* home-story-mobile-content-balance-20260702
   Lower the generated 01/03-03/03 story copy on phones so it clears the header
   and sits closer to the visual center of the portrait viewport. */
@media (max-width: 760px) {
  body main [data-ime-section-key=home_story_wrapper] > section.ime-home-v1-story-section .ime-home-v1-generated-copy,
  body main [data-ime-section-key^=home_story_][data-ime-section-key$=_wrapper] > section.ime-home-v1-story-section .ime-home-v1-generated-copy,
  section.ime-home-v1-story-section .ime-home-v1-generated-copy {
    padding-top: clamp(104px, calc(var(--ime-mobile-vh, 1vh) * 15), 132px) !important;
    transform: translateY(clamp(18px, calc(var(--ime-mobile-vh, 1vh) * 3.2), 28px)) !important;
  }

  section.ime-home-v1-story-section .ime-home-v1-generated-copy .ime-home-v1-body {
    margin-top: clamp(18px, calc(var(--ime-mobile-vh, 1vh) * 3.2), 28px) !important;
  }
}

/* home-founders-safe-gutters-20260702
   Keep the founder carousel away from both viewport edges on desktop and mobile. */
section[data-ime-section-key="home_founders"] {
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

section[data-ime-section-key="home_founders"] .ime-founders-carousel,
section[data-ime-section-key="home_founders"] .ime-founder-card,
section[data-ime-section-key="home_founders"] .ime-founder-copy,
section[data-ime-section-key="home_founders"] .ime-founder-media {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

@media (min-width: 761px) {
  section[data-ime-section-key="home_founders"] {
    padding-left: clamp(28px, 5.5vw, 64px) !important;
    padding-right: clamp(28px, 5.5vw, 64px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-carousel {
    width: min(1080px, calc(100% - clamp(56px, 8vw, 128px))) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-heading {
    gap: clamp(18px, 3vw, 36px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-card {
    grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-copy {
    max-width: 560px !important;
  }
}

@media (max-width: 760px) {
  section[data-ime-section-key="home_founders"] {
    padding-left: max(26px, env(safe-area-inset-left)) !important;
    padding-right: max(26px, env(safe-area-inset-right)) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-carousel {
    max-width: 100% !important;
    width: 100% !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-tabs {
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-padding-left: 0 !important;
  }
}

/* home-founders-recentered-flow-20260702
   Re-center the actual injected founder section against the viewport, then keep
   the carousel inside clear gutters. The heading elements are siblings, so the
   desktop grid must not auto-place the title into the right edge column. */
section[data-ime-section-key="home_founders"] {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

@media (min-width: 761px) {
  section[data-ime-section-key="home_founders"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-carousel {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - clamp(96px, 12vw, 168px)) !important;
    width: min(1040px, calc(100vw - clamp(96px, 12vw, 168px))) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-heading p,
  section[data-ime-section-key="home_founders"] .ime-founders-heading h2,
  section[data-ime-section-key="home_founders"] .ime-founders-tabs {
    grid-column: 1 !important;
    max-width: 100% !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-tabs {
    justify-content: flex-start !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-card {
    gap: clamp(30px, 4vw, 56px) !important;
    grid-template-columns: minmax(260px, 0.78fr) minmax(300px, 0.96fr) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founder-copy {
    max-width: 520px !important;
  }
}

@media (max-width: 760px) {
  section[data-ime-section-key="home_founders"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-carousel {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - 56px) !important;
    width: calc(100vw - 56px) !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-heading,
  section[data-ime-section-key="home_founders"] .ime-founder-card,
  section[data-ime-section-key="home_founders"] .ime-founder-media,
  section[data-ime-section-key="home_founders"] .ime-founder-copy {
    max-width: 100% !important;
    width: 100% !important;
  }

  section[data-ime-section-key="home_founders"] .ime-founders-heading h2 {
    overflow-wrap: anywhere !important;
  }
}

/* home-founders-visible-section-gutters-20260702
   The live official homepage can inject the founder carousel into the visible
   recruit section. Apply the same gutters to the actual ready section instead
   of relying only on data-ime-section-key="home_founders". */
section[data-ime-founders-ready="true"] .ime-founders-carousel,
section[data-ime-founders-ready="true"] .ime-founder-card,
section[data-ime-founders-ready="true"] .ime-founder-copy,
section[data-ime-founders-ready="true"] .ime-founder-media {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

@media (min-width: 761px) {
  section[data-ime-founders-ready="true"] .ime-founders-carousel {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - clamp(96px, 12vw, 168px)) !important;
    width: min(1040px, calc(100vw - clamp(96px, 12vw, 168px))) !important;
  }

  section[data-ime-founders-ready="true"] .ime-founders-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
  }

  section[data-ime-founders-ready="true"] .ime-founders-heading p,
  section[data-ime-founders-ready="true"] .ime-founders-heading h2,
  section[data-ime-founders-ready="true"] .ime-founders-tabs {
    grid-column: 1 !important;
    max-width: 100% !important;
  }

  section[data-ime-founders-ready="true"] .ime-founders-tabs {
    justify-content: flex-start !important;
  }

  section[data-ime-founders-ready="true"] .ime-founder-card {
    gap: clamp(30px, 4vw, 56px) !important;
    grid-template-columns: minmax(260px, 0.78fr) minmax(300px, 0.96fr) !important;
  }

  section[data-ime-founders-ready="true"] .ime-founder-copy {
    max-width: 520px !important;
  }
}

@media (max-width: 760px) {
  section[data-ime-founders-ready="true"] .ime-founders-carousel {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - 56px) !important;
    width: calc(100vw - 56px) !important;
  }

  section[data-ime-founders-ready="true"] .ime-founders-heading,
  section[data-ime-founders-ready="true"] .ime-founder-card,
  section[data-ime-founders-ready="true"] .ime-founder-media,
  section[data-ime-founders-ready="true"] .ime-founder-copy {
    max-width: 100% !important;
    width: 100% !important;
  }

  section[data-ime-founders-ready="true"] .ime-founders-heading h2 {
    overflow-wrap: anywhere !important;
  }
}

body main [data-ime-legacy-page-hidden] { display: none !important; height: 0 !important; min-height: 0 !important; max-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; }

/* official-mobile-menu-fallback-20260701
   Static mobile side panel must open above injected header controls. */
@media (max-width: 760px) {
  [data-ime-mobile-menu-fallback] {
    z-index: 2147483400 !important;
  }

  [data-ime-mobile-menu-fallback="open"] {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  [data-ime-mobile-menu-fallback="open"] a {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  [data-ime-mobile-menu-fallback="closed"] {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html[data-ime-mobile-menu-open="true"] .ime-official-header-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* contact-official-managed-layout-20260701
   Contact page injected sections keep the original official rhythm: centered
   content, no left-edge pressure, and images shown without cropping. */
html[data-ime-official-page="contact"] body main section[data-ime-managed-page="contact"] {
  display: none !important;
}

html[data-ime-official-page="contact"] body main .ime-contact-official-section,
html[data-ime-official-page="contact"] body main section[data-ime-contact-nearby="true"] {
  background: #fbf7f2 !important;
  box-sizing: border-box !important;
  color: #1f1b1a !important;
  font-family: var(--font-sans-tc), "Noto Sans TC", "Microsoft JhengHei", "微軟正黑", "PingFang TC", Arial, sans-serif !important;
  margin: 0 !important;
  overflow: hidden !important;
  padding: clamp(54px, 7vw, 104px) 0 !important;
  width: 100% !important;
}

html[data-ime-official-page="contact"] body main .ime-contact-official-inner,
html[data-ime-official-page="contact"] body main section[data-ime-contact-nearby="true"] > div {
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 80rem !important;
  padding-left: clamp(24px, 4vw, 48px) !important;
  padding-right: clamp(24px, 4vw, 48px) !important;
  width: 100% !important;
}

html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-heading,
html[data-ime-official-page="contact"] body main section[data-ime-contact-nearby="true"] header {
  margin-bottom: clamp(22px, 3vw, 36px) !important;
  max-width: 820px !important;
}

html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-grid,
html[data-ime-official-page="contact"] body main section[data-ime-contact-nearby="true"] [data-ime-contact-nearby-list] {
  display: grid !important;
  gap: clamp(16px, 2vw, 24px) !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}

html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-card {
  border-radius: 8px !important;
  min-width: 0 !important;
}

html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-card-image {
  flex-basis: 44% !important;
  min-height: 220px !important;
}

html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-card-image img {
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  width: 100% !important;
}

@media (max-width: 760px) {
  html[data-ime-official-page="contact"] body main .ime-contact-official-section,
  html[data-ime-official-page="contact"] body main section[data-ime-contact-nearby="true"] {
    padding-bottom: 48px !important;
    padding-top: 48px !important;
  }

  html[data-ime-official-page="contact"] body main .ime-contact-official-inner,
  html[data-ime-official-page="contact"] body main section[data-ime-contact-nearby="true"] > div {
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
  }

  html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-grid,
  html[data-ime-official-page="contact"] body main section[data-ime-contact-nearby="true"] [data-ime-contact-nearby-list] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-card {
    display: block !important;
  }

  html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-card-image {
    min-height: 0 !important;
    width: 100% !important;
  }

  html[data-ime-official-page="contact"] body main .ime-contact-official-section .ime-managed-card-image img {
    height: auto !important;
    max-height: none !important;
  }
}

/* official-mobile-contact-spacing-unified-20260701
   Contact/content mobile sections use one spacing system: safe side gutters,
   single-column cards, and no edge-hugging managed content. */
@media (max-width: 760px) {
  body main [data-ime-contact-managed-section],
  body main [data-ime-managed-page="contact"] .ime-managed-block {
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
    width: 100% !important;
  }

  body main [data-ime-contact-managed-section] .ime-managed-heading,
  body main [data-ime-contact-managed-section] .ime-managed-body,
  body main [data-ime-contact-managed-section] .ime-managed-grid,
  body main [data-ime-contact-managed-section] .ime-managed-image-grid {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body main [data-ime-contact-managed-section] .ime-managed-grid,
  body main [data-ime-contact-managed-section] .ime-managed-image-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body main [data-ime-contact-managed-section] .ime-managed-card,
  body main [data-ime-contact-managed-section] .ime-managed-card-team,
  body main [data-ime-contact-managed-section] .ime-managed-image-card {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body main [data-ime-contact-managed-section] .ime-managed-card-copy,
  body main [data-ime-contact-managed-section] .ime-managed-card-compact {
    padding: 16px !important;
  }

  body main [data-ime-contact-managed-section] .ime-managed-card h3 {
    font-size: clamp(1.08rem, 5.6vw, 1.36rem) !important;
    line-height: 1.34 !important;
  }

  body main [data-ime-contact-managed-section] .ime-managed-card p {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
  }

  body main [data-ime-contact-managed-section] .ime-managed-card-image img,
  body main [data-ime-contact-managed-section] .ime-managed-card-team .ime-managed-card-image img {
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    width: 100% !important;
  }

  body main section[data-ime-contact-nearby="true"] > div {
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
    width: 100% !important;
  }

  body main section[data-ime-contact-nearby="true"] [data-ime-contact-nearby-list] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body main section[data-ime-contact-nearby="true"] [data-ime-contact-nearby-card] {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 18px !important;
    width: 100% !important;
  }

  body main section[data-ime-contact-nearby="true"] h2,
  body main [data-ime-contact-managed-section] .ime-managed-heading h2 {
    overflow-wrap: anywhere !important;
  }
}


/* contact-visible-flow-20260702
   Keep the official contact page readable on desktop and mobile: no stretched portraits, no large blank gap after the hero. */
body[data-ime-official-page="contact"] main > section:first-of-type,
html[data-ime-official-page="contact"] body main > section:first-of-type {
  min-height: clamp(340px, 45vh, 430px) !important;
  height: auto !important;
  padding-top: clamp(92px, 10vw, 132px) !important;
  padding-bottom: clamp(44px, 6vw, 72px) !important;
}

html[data-ime-official-page="contact"] body main > section:nth-of-type(2),
body[data-ime-official-page="contact"] main > section:nth-of-type(2) {
  padding-top: clamp(40px, 5vw, 64px) !important;
  margin-top: 0 !important;
}

html[data-ime-official-page="contact"] body main > section:nth-of-type(2) h2,
body[data-ime-official-page="contact"] main > section:nth-of-type(2) h2 {
  margin-bottom: clamp(20px, 3vw, 34px) !important;
}

html[data-ime-official-page="contact"] body main > section:nth-of-type(2) img,
body[data-ime-official-page="contact"] main > section:nth-of-type(2) img {
  object-fit: contain !important;
  object-position: center center !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

html[data-ime-official-page="contact"] body main > section:nth-of-type(2) :where([class*="aspect"]) {
  aspect-ratio: 16 / 10 !important;
  max-height: clamp(220px, 30vw, 380px) !important;
}

@media (max-width: 760px) {
  html[data-ime-official-page="contact"] body main > section:first-of-type,
  body[data-ime-official-page="contact"] main > section:first-of-type {
    min-height: clamp(300px, 42vh, 380px) !important;
    padding-top: clamp(88px, 18vw, 120px) !important;
    padding-bottom: clamp(34px, 9vw, 54px) !important;
  }

  html[data-ime-official-page="contact"] body main > section:nth-of-type(2),
  body[data-ime-official-page="contact"] main > section:nth-of-type(2) {
    padding-top: clamp(30px, 8vw, 48px) !important;
  }

  html[data-ime-official-page="contact"] body main > section:nth-of-type(2) :where([class*="aspect"]) {
    max-height: none !important;
  }
}

/* contact-team-content-append-20260702
   Keep original contact cards and content-appended cards visible without changing the original card design. */
html[data-ime-official-page="contact"] body main section[data-ime-section-key="contact_team"] [style*="opacity:0"],
html[data-ime-official-page="contact"] body main section[data-ime-section-key="contact_team"] [style*="opacity: 0"],
html[data-ime-official-page="contact"] body main section[data-ime-section-key="contact_team"] [data-ime-contact-added-card] {
  opacity: 1 !important;
  transform: none !important;
}

html[data-ime-official-page="contact"] body main section[data-ime-section-key="contact_offices"] [style*="opacity:0"],
html[data-ime-official-page="contact"] body main section[data-ime-section-key="contact_offices"] [style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}
