/* Page transition */
body{
  opacity: 0;
  animation: fadeIn .3s ease forwards;
}
body.fade-out{
  animation: fadeOut .3s ease forwards;
}
@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes fadeOut{
  from{ opacity: 1; }
  to{ opacity: 0; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; color: #f5f5f5; background: #0f1014; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root{
  --bg: #111217;
  --bg-2: #181a20;
  --bg-3: #f3f3f3;
  --text-dark: #181818;
  --text-muted: #C8C8C8;
  --muted-line : #C8C8C8;
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.12);
  --accent: #d72d36;
  --card: rgba(255,255,255,.04);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0,0,0,.25);
  --header-h: 72px;
}

body.menu-open { overflow: hidden; }

.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 0 0 min(80px, 5vw);
  /* padding: 0 0 0 24px; */
  /*background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.32));*/
  background-color: #29292E;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo, .footer-logo{
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
}
.footer-logo {
    width: 260px;
    height: auto;
    margin: auto;
}
.nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  min-width: 0;
  white-space: nowrap;
}
.nav a{
  font-size: 16px;
  font-weight: bold;
  color: rgba(255,255,255,.82);
  position: relative;

}
.nav a:hover,
.nav-dropdown:hover > a,
.nav a.active {
  color: var(--accent);
}
/*.nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: .25s ease;
}
.nav a:hover::after,
.nav a.active::after{ transform: scaleX(1); }*/

/* Company name in header */
.company-badge{
    height: 100%;
    min-width: 334px;
    text-align: center;
    padding-left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #D02E34D9;
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: .16em;
    clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%);
}

/* Dropdown menu */
.nav-dropdown-trigger{
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-trigger .arrow{
  font-size: 10px;
  transition: transform .25s ease;
}
.nav-dropdown:hover .arrow{
  transform: rotate(180deg);
}
.nav-dropdown{
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.dropdown-menu{
  position: absolute;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(18,19,24,.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}
.dropdown-menu::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav-dropdown:hover .dropdown-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown:hover .dropdown-menu::before{
  width: 100%;
}
.dropdown-menu a{
  display: block;
  text-align: center;
  line-height: 3em;
  font-size: 16px;
  color: rgba(255,255,255,.78);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.dropdown-menu a::after{ display: none; }
/*.dropdown-menu a:hover{
  background: rgba(215,45,54,.15);
  color: #fff;
}*/

.menu-btn{
  display: none;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

.page-wrapper{
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  scroll-snap-type: y mandatory;
}
.page-wrapper.free-scroll{
  scroll-snap-type: none;
}

/* 預設不強制 snap，避免 News / Contact 被吸附干擾 */
.snap-section{
  scroll-snap-align: none;
}

/* About 到 Process 這四區永遠保有吸附 */
#about,
#ai,
#wireless,
#process{
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Hero 保留切版感，但不強制卡住最後往下 */
#hero{
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.news-section,
.contact-section{
  scroll-snap-align: none;
}

.section{
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 28px) 0 28px;
}
.container{
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section{
  padding-top: var(--header-h);
}
.hero-grid{
  display: flex;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.hero-card{
  position: relative;
  flex: 1 1 33.333%;
  min-height: calc(100vh - var(--header-h));
  background: #0a0a0a;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5vw) 100%, 0 100%);
  margin-right: -5vw;
}
.hero-card:nth-child(1) {
  flex: 1 1 30%; /* 視覺修正 */
}
.hero-card:nth-child(2){
  clip-path: polygon(5vw 0, 100% 0, calc(100% - 5vw) 100%, 0 100%);

}
.hero-card:last-child{
  clip-path: polygon(5vw 0, 100% 0, 100% 100%, 0 100%);
  margin-right: 0;
  flex: 1 1 30%; /* 視覺修正 */
}
.hero-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,10,12,.35), rgba(9,10,12,.80));
  transition: .35s ease;
}
/*.hero-card:hover::before{ background: linear-gradient(180deg, rgba(9,10,12,.25), rgba(9,10,12,.70)); }*/
.hero-card:hover::before{ background: linear-gradient(180deg, rgba(9,10,12,.1), rgba(9,10,12,.20)); }
.hero-card:hover .hero-content{ transform: translateY(-8px);     text-shadow: 1px 1px 1px #000;}
.hero-cta {text-shadow: none;}
.overlay{
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition: filter .5s ease;
  z-index: -1;
}
.hero-card:hover .overlay{
  filter: grayscale(0);
}
.hero-content{
/*  position: absolute;
  left: 5vw; bottom: 70px;
  transition: .35s ease;*/
  position: absolute;
    left: 9vw;
    top: calc(50% - 100px);
    text-align: center;
    transition: .35s ease;
}
.hero-content small{
  color: rgba(255,255,255,.7);
  letter-spacing: .24em;
}
.hero-content h2{
/*  margin: 14px 0 12px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.06;*/
    margin: 14px 0 12px;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.06;
    height: 2.5em;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-content p{
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  letter-spacing: .2em;
}

.expand-label{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
}
/* .hero-cta{
  position: absolute;
  left: 42px;
  bottom: 28px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px 4px 0 0;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
} */
.hero-cta{
    /* position: absolute; */
    left: 42px;
    bottom: 28px;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;

    display: flex;
    align-items: center;
    width: 180px;
    margin: auto;
    margin-top: 20px;
}
.hero-cta img{
    width: 30px;
    margin-left: auto;
    transition: transform .3s ease;
}

.hero-card:hover .hero-cta{
  opacity: 1;
  transform: translateY(8px);
}
.hero-card .hero-cta:hover img{
    transform: translateX(4px);
}

.about-section{
  background: radial-gradient(circle at 50% 14%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(90deg, #1f2027 0%, #3a3b44 50%, #1d1e24 100%);
  /* background: radial-gradient(circle at 50% 14%, rgba(255,255,255,.10), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(215,45,54,.08), transparent 20%),
    linear-gradient(90deg, #1f2027 0%, #3a3b44 50%, #1d1e24 100%); */
  display: flex;
  align-items: center;
}
.about-shell{
  width: min(1460px, calc(100% - 72px));
}
.about-card{
  display: grid;
  /* grid-template-columns: minmax(360px, .88fr) minmax(560px, 1.12fr); */
  grid-template-columns: minmax(360px, 1fr) minmax(560px, 1.6fr);
  gap: 64px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px;
  padding: 56px 64px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
  min-height: calc(100vh - var(--header-h) - 110px);
  position: relative;
  overflow: hidden;
}
.about-card::before{
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(90deg, rgba(255,255,255,.03), transparent 28%, transparent 72%, rgba(255,255,255,.03)); */
  pointer-events: none;
}
.about-left,
.about-right{
  position: relative;
  z-index: 1;
}
.about-left{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding-top: 12px;
}
.about-heading .eyebrow{
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 18px;
    padding-left: 0.2em;
}
.about-heading h2{
  margin: 0;
  /* font-size: clamp(52px, 6vw, 88px); */
  font-size: clamp(52px, 6vw, 64px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: .02em;
}
.card-media{
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}
.about-media{
  position: absolute;margin-left: max(-35px, -1.4vw);bottom: 20%;
  width: min(100%, 620px);
  aspect-ratio: 1.82 / 1;
  min-height: 340px;
  background: url("/assets/images/about_media.jpg") center/cover;
}
.about-right{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 4px 8px 0;
}
.about-logo-block{
  text-align: center;
  margin-bottom: 22px;
}
.about-logo-icon{
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}
.about-logo-icon svg{
  width: 100%;
  height: 100%;
}
.about-company-name{
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
}
.about-company-en{
  margin: 0px;
  font-size: clamp(18px, 1.4vw, 30px);
  color: rgba(255, 255, 255, .9);
  letter-spacing: .02em;
}
.about-established{
  text-align: center;
  margin: 0 0 34px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  letter-spacing: .06em;
}
.about-desc{
  /* max-width: 760px; */
  padding: 0 20px;
  margin: 0 auto;
}
.about-desc p{
  color: rgba(255,255,255,.88);
  line-height: 2.08;
  margin: 0 0 24px;
  font-size: 16px;
  text-align: justify;
}
.about-desc p:last-child{
  margin-bottom: 0;
}
.accent-text{
  color: var(--accent);
  font-weight: 800;
}
.news-section h2, .contact-section h2{
  margin: 8px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}
.feature-copy h3{
  margin: 0 0 18px;
  font-size: clamp(22px, 2vw, 30px);
  color: #fff;
}
.eyebrow{
  margin: 0;
  color: var(--accent);
  letter-spacing: .08em;
  font-weight: 700;
}

.feature-section{
  display: grid;
  align-items: center;
}
.feature-light{
  background: #f2f2f2;
  color: var(--text-dark);
}
.feature-light .feature-copy h2,
.feature-light .feature-copy h3,
.feature-light .feature-copy p,
.feature-light .value-box h4,
.feature-light .value-box li{
  color: var(--text-dark);
}


/* AI section */
.ai-section{
  background: #f3f3f3;
  color: #303039;
  display: flex;
  align-items: center;
}
.ai-shell{
  width: min(1400px, calc(100% - 72px));
}
.ai-top{
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: 64px;
  align-items: end;
}
.ai-title-wrap{
  position: relative;
  padding-top: 18px;
  min-height: 210px;
}
.ai-title-frame{
  position: absolute;
  left: 108px;
  top: 10px;
  width: 280px;
  height: 150px;
  border-top: 4px solid #df343b;
  border-right: 4px solid #df343b;
  border-bottom: 4px solid #df343b;
  border-radius: 0 8px 8px 0;
}
.ai-kicker{
  position: relative;
  margin: 0 0 12px;
  color: #df343b;
  font-size: clamp(56px, 5vw, 88px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
.ai-title-wrap h2{
  position: relative;
  margin: 0;
  color: #2f3038;
  font-size: clamp(52px, 5.4vw, 92px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: .02em;
}
.ai-headline-wrap{
  text-align: right;
  padding-bottom: 12px;
}
.ai-headline-en{
  margin: 0 0 10px;
  color: #df343b;
  font-size: clamp(28px, 2.7vw, 44px);
  letter-spacing: .02em;
  font-weight: 500;
}
.ai-headline-wrap h3{
  margin: 0;
  color: #303039;
  font-size: clamp(34px, 3.8vw, 68px);
  line-height: 1.2;
  font-weight: 800;
}
.ai-divider{
  height: 1px;
  background: rgba(0,0,0,.16);
  margin: 34px 0 38px;
}
.ai-grid{
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(440px, 1.12fr);
  gap: 54px;
  align-items: start;
}
.ai-description{
  margin: 0;
  color: #4c4f58;
  font-size: 18px;
  line-height: 1.95;
  text-align: justify;
}
.ai-value-box{
  margin-top: 48px;
  padding: 34px 40px;
  min-height: 290px;
  border: 2px solid rgba(223,52,59,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.36);
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
}
.ai-value-box h4{
  margin: 0 0 16px;
  color: #df343b;
  font-size: clamp(24px, 2vw, 40px);
  font-weight: 800;
}
.ai-value-box ul{
  margin: 0;
  padding-left: 22px;
  color: #42454d;
  line-height: 1.9;
  font-size: 18px;
}
.ai-cards-column{
  display: grid;
  gap: 18px;
}
.ai-product-card,
.ai-soon-card{
  border-radius: 14px;
  overflow: hidden;
  min-height: 150px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.ai-product-card{
  display: grid;
  grid-template-columns: 1fr 110px;
  background: #1f232c;
}
.ai-product-main{
  position: relative;
  display: flex;
  align-items: center;
  padding: 28px 34px;
  background:
    linear-gradient(115deg, rgba(8,12,20,.20), rgba(10,15,24,.32)),
    radial-gradient(circle at 22% 38%, rgba(78,191,255,.32), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(255,152,79,.18), transparent 16%),
    linear-gradient(90deg, rgba(6,9,15,.92), rgba(20,30,42,.78)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=80") center/cover;
}
.ai-product-main::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.35));
}
.ai-product-title{
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .03em;
}
.ai-product-side{
  background: linear-gradient(180deg, #df343b, #cc2e36);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.ai-product-side span{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.ai-product-side strong{
  font-size: 48px;
  line-height: 1;
  font-weight: 300;
}
.ai-soon-card{
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 22px 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.18), transparent 18%),
    linear-gradient(100deg, #484a52 0%, #2d3038 45%, #4b4e56 100%);
}
.ai-soon-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 42%, transparent 65%);
  opacity: .55;
}
.ai-soon-card span{
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.94);
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: .03em;
}
.feature-dark{
  background: linear-gradient(180deg, #23242c, #17181d);
}
.feature-grid{
  min-height: calc(100vh - var(--header-h) - 76px);
  display: grid;
  gap: 52px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.feature-grid.reverse{
  grid-template-columns: 1fr 1fr;
}
.feature-copy h2{
  margin: 2px 0 14px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
}
.feature-copy p{
  line-height: 1.9;
  color: rgba(17,17,17,.76);
}
.feature-dark .feature-copy p{
  color: rgba(255,255,255,.76);
}
.value-box{
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(215,45,54,.35);
  background: rgba(255,255,255,.42);
}
.value-box.dark{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.18);
}
.value-box h4{
  margin: 0 0 12px;
  color: var(--accent);
}
.value-box ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.feature-cards{
  display: grid;
  gap: 16px;
}
.mini-card{
  min-height: 132px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  padding: 24px 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.mini-card span{
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: .02em;
}
.mini-card em{
  font-style: normal;
  font-size: 14px;
}
.mini-card.active{
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14,16,22,.2), rgba(215,45,54,.55)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.mini-card.active.alt{
  background:
    linear-gradient(90deg, rgba(14,16,22,.2), rgba(215,45,54,.55)),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.mini-card.active.process{
  background:
    linear-gradient(90deg, rgba(14,16,22,.2), rgba(215,45,54,.55)),
    url("https://images.unsplash.com/photo-1581092160607-ee22731f3c85?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.mini-card.ghost{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  justify-content: center;
  align-items: center;
  color: rgba(255,255,255,.65);
}
.feature-light .mini-card.ghost{
  color: rgba(0,0,0,.55);
  border-color: rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.025));
}

.news-section{
  min-height: auto;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.14), rgba(255,255,255,0) 34%),
    linear-gradient(90deg, #33343c 0%, #42434b 48%, #32333b 100%);
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 110px;
}
.news-shell{
  width: min(1440px, calc(100% - 120px));
}
.news-header{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 56px;
}
.news-title-block{
  min-width: 288px;
}
.news-kicker{
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.news-section h2{
  margin: 0;
  /* font-size: clamp(58px, 5vw, 82px); */
  line-height: 1.02;
  letter-spacing: -.04em;
  color: #fff;
}
.news-header-line{
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.22);
  transform: translateY(-16px);
}
.news-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin-top: 72px;
}
.news-card{
  min-width: 0;
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 8px;
  transition: border-color .3s ease;
}
.news-card:hover{
  border-color: var(--accent);
}
.news-media{
  position: relative;
  display: block;
  aspect-ratio: 1.64 / 1;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  transition: transform .28s ease;
}
.news-media::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,12,0) 35%, rgba(8,9,12,.10) 100%);
}
.news-arrow{
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.96);
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  transition: transform .3s ease;
}
.news-card:hover .news-arrow{
  transform: translateX(4px);
}
.news-meta-row{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0px 10px;
}
.news-category{
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}
.news-date{
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.news-card h3{
  margin: 10px 0 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.62;
  font-weight: 500;
  padding: 0px 10px;
  text-align: justify;
}

.img-bg {
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}


.contact-section{
  min-height: auto;
  background: #efefef;
  color: var(--text-dark);
}
/* .contact-section h2,
.contact-section h3,
.contact-section li,
.contact-section strong,
.contact-section span{
  color: var(--text-dark);
} */
.contact-grid{
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 28px;
  margin-top: 28px;
}
.contact-info,
.contact-form{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.contact-info ul{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.contact-info li{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.map-box{
  margin-top: 20px;
  height: 220px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(215,45,54,.15), rgba(0,0,0,.03)),
    repeating-linear-gradient(45deg, #dcdcdc 0 10px, #f4f4f4 10px 20px);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #666;
}
.contact-form{
  display: grid;
  gap: 14px;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
input, select, textarea, button{
  width: 100%;
  font: inherit;
}
input, select, textarea{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(215,45,54,.12);
}
button{
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.site-footer{
  padding: 36px 20px 48px;
  text-align: center;
  /* background: linear-gradient(180deg, #14151a, #0f1014); */
  background: radial-gradient(circle at 50% 14%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(90deg, #1f2027 0%, #3a3b44 50%, #1d1e24 100%);
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer p{
  margin: 14px 0 8px;
}
.site-footer small{
    margin-top: 40px;
    display: block;
    font-size: 0.9em;
}

.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

.pd-detail-h1 {
  padding: 0px;
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 800;
    color: #302d35;
}
.pd-func-list {
  line-height: 2em;
}

@media screen and (min-width:1100px) and (max-width: 1440px) {


    .title-frame {
        height: 5em!important;
        top: 5px!important;
    }
    .title-frame.title-frame-01 {
    left: 60px;
    }

    .title-frame.title-frame-02 {
        left: 100px;
        width: 160px;
    }

    .title-frame.title-frame-03 {
        left: 60px;
        width: 130px;
    }


}


@media (max-width: 1200px){
  .ai-shell{
    width: min(100%, calc(100% - 40px));
  }
  .ai-top,
  .ai-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ai-headline-wrap{
    text-align: left;
    padding-bottom: 0;
  }
  .ai-title-wrap{
    min-height: auto;
    padding-top: 0;
    padding-right: 24px;
  }
  .ai-title-frame{
    left: 96px;
    top: 0;
    width: min(250px, calc(100% - 110px));
    height: 136px;
  }
  .ai-divider{
    margin: 26px 0 28px;
  }
  .title-frame.title-frame-01 {
    top: 13px;
    height: 5.7em;
    left: 70px;
  }
  .title-frame.title-frame-02 {
    top: 13px;
    height: 5.7em;
    left: 100px;
    width: 160px;
  }
  .title-frame.title-frame-03 {
    top: 13px;
    height: 5.2em;
    left: 60px;
    width: 120px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 65% 100%, 65% calc(100% - 4px), 0 calc(100% - 5vw));
  }
}


@media (max-width: 1024px){
  .hero-grid{
    flex-direction: column;
    min-height: calc(100svh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
  }
  .hero-card::before{
    background: linear-gradient(180deg, rgba(9, 10, 12, .1), rgba(9, 10, 12, .20));
  }
  .overlay {
    filter: unset;
  }
  .hero-card {
    flex: 1 1 0%!important;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
  }
  .hero-card:nth-child(2){
    flex: 1.3 1 0%!important;
  }
  .hero-content h2 {
    font-size: 24px;
    margin: 0px;
  }

  .hero-card{
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vh), 0 100%);
    margin-right: 0;
    margin-bottom: -4vh;
    min-height: 0;
  }
  .hero-card:nth-child(2){
    clip-path: polygon(0 4vh, 100% 0, 100% calc(100% - 4vh), 0 100%);
    margin-right: 0;
    min-height: 0;
  }
  .hero-card:last-child{
    clip-path: polygon(0 4vh, 100% 0, 100% 100%, 0 100%);
    margin-right: 0;
    margin-bottom: 0;
    min-height: 0;
  }
  .hero-expand{ display: none; }
  .hero-cta{ display: none; }
  .company-badge{ display: none; }
  .hero-content {
    left: unset;
    right: unset;
    top: unset;
    bottom: unset;
    position: relative;
  }
  .feature-grid, .about-card, .contact-grid, .news-grid{
    grid-template-columns: 1fr;
  }
  .feature-grid, .about-card{
    min-height: auto;
  }
  .about-card{
    padding: 28px;
  }
  .section{
    min-height: auto;
    padding-bottom: 72px;
  }
  .hero-section.section {
    padding-bottom: 0px;
  }
  .snap-section{
    scroll-snap-align: none;
  }
  .page-wrapper{
    scroll-snap-type: y proximity;
  }
  .feature-grid.reverse{
    display: flex;
    flex-direction: column-reverse;
  }
  .solution-section{
    display: block;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 60px;
  }
}

@media (max-width: 768px){
  .menu-btn{ display: block; text-align:right; }
  .nav{
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(300px, 65vw);
    height: calc(100svh - var(--header-h));
    background: rgba(12,13,17,.97);
    border-left: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateX(100%);
    transition: .3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
    justify-content: start;padding: 24px 0px;
  }
  .nav.open{ transform: translateX(0); }
  .nav > a,
  .nav-dropdown > a{
    display: block;
    padding: 14px 0;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-dropdown{
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-dropdown > a{
    border-bottom: none;
    width: 100%;
  }
  .dropdown-menu{
    position: static;
    transform: none;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(255,255,255,.04);
    border: none;
    border-radius: 8px;
    padding: 4px 0;
    margin: 0 0 10px;
    box-shadow: none;
    display: none;
    width: 100%;
  }
  .dropdown-menu a{
    text-align: center;
    padding: 0 16px;
    line-height: 2.6em;
    font-size: 14px;
  }
  .nav-dropdown.open .dropdown-menu{
    display: block;
  }
  .nav-dropdown:hover .dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0px;
    background-color: #333;
    border-radius: 0px;

  }
  .form-row{ grid-template-columns: 1fr; }
  .site-header{ padding: 0 16px; }
  .container{ width: min(1180px, calc(100% - 24px)); }
}


@media (max-width: 1200px){
  .about-shell{
    width: min(1280px, calc(100% - 40px));
  }
  .about-card{
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 42px;
    min-height: auto;
  }
  .about-left{
    gap: 28px;
  }
  .about-media{
    width: 100%;
    min-height: 300px;
  }
  .about-right{
    padding-right: 0;
  }
  .about-desc{
    max-width: none;
  }
}

@media (max-width: 768px){
  .about-shell{
    width: min(100%, calc(100% - 24px));
  }
  .about-card{
    padding: 28px 20px;
    gap: 30px;
    border-radius: 16px;
  }
  .about-heading .eyebrow{
    font-size: 16px;
    margin-bottom: 12px;
  }
  .about-heading h2{
    font-size: clamp(40px, 14vw, 64px);
  }
  .about-logo-icon{
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
  }
  .about-company-name{
    font-size: 28px;
    line-height: 1.35;
  }
  .about-company-en{
    font-size: 16px;
  }
  .about-established{
    margin-bottom: 22px;
    font-size: 15px;
  }
  .about-media{
    min-height: 220px;
  }
  .about-desc p{
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
  }
}

@media (max-width: 768px){
  .ai-shell{
    width: min(100%, calc(100% - 24px));
  }
  .ai-title-wrap{
    padding-right: 0;
  }
  .ai-title-frame{
    left: 72px;
    width: calc(100% - 88px);
    height: 102px;
    border-width: 3px;
  }
  .ai-kicker{
    font-size: clamp(44px, 14vw, 66px);
    margin-bottom: 10px;
  }
  .ai-title-wrap h2{
    font-size: clamp(42px, 13vw, 62px);
  }
  .ai-headline-en{
    font-size: 22px;
  }
  .ai-headline-wrap h3{
    font-size: 32px;
    line-height: 1.35;
  }
  .ai-description{
    font-size: 16px;
    line-height: 1.9;
    text-align: left;
  }
  .ai-value-box{
    margin-top: 28px;
    padding: 24px 20px;
    min-height: auto;
  }
  .ai-value-box h4{
    font-size: 24px;
  }
  .ai-value-box ul{
    font-size: 16px;
    padding-left: 18px;
  }
  .ai-product-card{
    grid-template-columns: 1fr 90px;
  }
  .ai-product-main,
  .ai-soon-card{
    min-height: 120px;
  }
  .ai-product-main{
    padding: 24px 20px;
  }
  .ai-product-side span{
    font-size: 16px;
  }
  .ai-product-side strong{
    font-size: 38px;
  }
  .ai-soon-card span{
    font-size: 24px;
  }
}


/* ==============================
   Reusable solution section
============================== */
.solution-section{
  display:flex;
  align-items:center;
}
.section--light{
  background:#efefef;
  /* color:#303039; */
  color: var(--accent);
}
.section--dark{
  /* background:linear-gradient(180deg,#23242c,#17181d); */
  background: radial-gradient(circle at 50% 14%, rgba(255, 255, 255, .10), transparent 28%), linear-gradient(90deg, #1f2027 0%, #3a3b44 50%, #1d1e24 100%);;
  color:#fff;
}
.solution-shell{
  width:min(1280px, calc(100% - 72px));
  width:min(1420px, calc(100% - 72px));
}
.solution-header{
  display:grid;
  grid-template-columns:minmax(320px, 430px) 1fr;
  gap:66px;
  align-items:end;
}
.solution-title-block{
  position:relative;
  min-height:220px;
}

.title-frame{
  position:absolute;
  top: 1vw;
  width: calc(3vw + calc(var(--counter) * 2.5em));
  max-width: unset;
  height: 126px;
  border-top:4px solid currentColor;
  border-right:4px solid currentColor;
  border-bottom:4px solid currentColor;
  border-radius:0 8px 8px 0;
  opacity:.95;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 85% 100%, 85% calc(100% - 4px), 0 calc(100% - 5vw));
}

.title-frame {  left: calc(var(--counter) * 2.5em); }
/* .title-frame{
  left:112px;
}
.solution-title-block--right-frame .title-frame{
  left:142px;
} */

.border-kicker {
  position:relative;
  margin:0 0 12px;
  color:var(--accent);
  /* font-size:clamp(56px, 5vw, 88px); */
  font-size: clamp(50px, 5.6vw, 68px);
  line-height:1;
  font-weight:900;
  /* letter-spacing:.02em; */
  padding: 0px 20px 0px 0px;
  display: inline-block;

}
.sectoin--light .border-kicker {
  background-color: #efefef;
}


/* .solution-kicker,
.wireless-kicker{
  position:relative;
  margin:0 0 12px;
  color:var(--accent);
  font-size:clamp(56px, 5vw, 88px);
  line-height:1;
  font-weight:900;
  letter-spacing:.02em;
} */
.solution-title-block h2{
  position:relative;
  margin:0;
  /* font-size:clamp(54px, 5.6vw, 94px); */
  font-size: clamp(50px, 5.6vw, 68px);
  line-height:.98;
  font-weight:900;
}
.section--light .solution-title-block h2,
.section--light .solution-heading-block h3,
.section--light .solution-description{
  color:#303039;
}
.section--dark .solution-title-block h2,
.section--dark .solution-heading-block h3,
.section--dark .solution-description{
  color:#fff;
}
.solution-heading-block{
  text-align:right;
  padding-bottom:12px;
}
.solution-heading-en{
  margin:0 0 10px;
  color:var(--accent);
  font-size:clamp(28px, 2.7vw, 44px);
  font-weight:400;
  letter-spacing:.02em;
}
.solution-heading-block h3{
  margin:0;
  /* font-size:clamp(34px, 3.7vw, 68px); */
  font-size: 40px;;
  line-height:1.2;
  font-weight:400;
  letter-spacing: 0.03em;
}
.solution-divider{
  height:1px;
  margin:34px 0 38px;
  background:rgba(255,255,255,.16);
}
.section--light .solution-divider{
  background:rgba(0,0,0,.16);
}
.solution-layout{
  display:grid;
  grid-template-columns:minmax(360px, 1fr) minmax(440px, 1.12fr);
  gap:54px;
  align-items:start;
}
.solution-layout--reverse{
  grid-template-columns:minmax(440px, 1.12fr) minmax(360px, 1fr);
}
.solution-layout--reverse .solution-copy-column{ order:2; }
.solution-layout--reverse .solution-cards-column{ order:1; }
.solution-description{
  margin:0;
  font-size:16px;
  line-height:1.95;
  text-align:justify;
}
.section--light .solution-description{ color:#4c4f58; }
.section--dark .solution-description{ color:rgba(255,255,255,.84); }
.solution-value-box{
  margin-top:48px;
  /* padding:34px 40px; */
  padding: 30px;
  min-height:250px;
  border-radius:16px;
  box-shadow:0 12px 36px rgba(0,0,0,.12);
}
.solution-value-box h4{
  margin:0 0 16px;
  color:var(--accent);
  font-size:clamp(24px, 2vw, 26px);
  font-weight:800;
    display: flex;
    align-items: center;
}
.solution-value-box ul{
  margin:0;
  padding-left:22px;
  line-height:1.8;
  font-size:16px;
}
.solution-value-box--light{
  border:2px solid rgba(223,52,59,.28);
  background:rgba(255,255,255,.4);
}
.solution-value-box--light ul{ color:#42454d; }
.solution-value-box--dark{
  border:2px solid rgba(255,255,255,.34);
  background:rgba(255,255,255,.04);
  box-shadow:0 18px 40px rgba(0,0,0,.22), inset 0 -8px 22px rgba(255,255,255,.02);
}
.solution-value-box--dark ul{ color:rgba(255,255,255,.9); }
.solution-cards-column{
  display:grid;
  gap:18px;
}
.solution-product-card,
.solution-soon-card{
  border-radius:14px;
  overflow:hidden;
  /* min-height:150px; */
  min-height:130px;
  box-shadow:0 16px 40px rgba(0,0,0,.18);

  background-image: var(--bg);
  background-color: var(--bg-color);
  background-size: cover;
  background-position: center center;
}
.solution-product-card{
  display:grid;
  grid-template-columns:1fr clamp(70px, 12vw, 110px);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, outline-color .3s ease;
  outline: 3px solid transparent;
  outline-offset: -2px;
  max-width: 100%;
}
.solution-product-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0,0,0,.25);
  outline-color: var(--accent);
}
.solution-product-main{
  position:relative;
  display:flex;
  align-items:center;
  padding:clamp(16px, 2.5vw, 28px) clamp(14px, 3vw, 34px);
}
.solution-product-card.no-mask::after{
  content:"";
  position:absolute;
  inset:0;
  background:none;
}
.solution-product-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.35));
}
.solution-product-title{
  position:relative;
  z-index:1;
  color:#fff;
  font-size:clamp(40px, 3vw, 60px);
  line-height:1;
  font-weight:800;
  letter-spacing:.03em;
}
.solution-product-title.text-dark {
  color: #000;
}
.solution-product-title.zh-4char {
  font-size: clamp(28px, 4vw, 36px);
}
.solution-product-side{
  background-color: var(--accent);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  /* gap:18px; */
  gap: 0px;
  text-align:center;
  clip-path:polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  padding-left:12px;
  z-index: 1;
}
.solution-product-side span{
  font-size:clamp(13px, 1.5vw, 18px);
  font-weight:700;
  line-height:1.25;
  margin-top: 20px;
  margin-bottom: 6px;
}
.solution-product-side strong{
  font-size:clamp(24px, 4vw, 48px);
  line-height:1;
  font-weight:300;
  transition: transform .3s ease;
}
.solution-product-card:hover .solution-product-side strong{
  transform: translateX(4px);
}
.solution-soon-card{
  position:relative;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  padding:22px 28px;
  /* background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.18), transparent 18%),
    linear-gradient(100deg, #4c4e56 0%, #30333b 45%, #50535b 100%); */
  background: url(/assets/images/coming_soon.jpg);
}
.solution-soon-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(118deg, transparent 0%, rgba(255,255,255,.10) 42%, transparent 66%);
  opacity:.65;
}
.solution-soon-card span{
  position:relative;
  z-index:1;
  color:rgba(255,255,255,.3);
  font-size:clamp(28px, 3vw, 48px);
  letter-spacing:.03em;
      font-style: italic;
}
span.icon.icon-check {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    background-image: url(/assets/images/icon/check.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}
.about-media.card-media.for-mobile {
  display: none;
}
.about-media.card-media.for-desktop {
  display: block;
}

/* responsive overrides */

@media screen and (max-width: 1440px) {
  /* 13吋優化 */
  .about-heading h2 {
      font-size: 40px;
  }

  .about-logo-icon {
      width: 80px;
      height: 80px;
  }

  .about-company-name {
      font-size: 22px;
  }

  p.about-company-en {
      font-size: 18px;
  }

  .about-established {
      margin-bottom: 16px;
  }

  .about-desc {
      padding: 10px;
  }

  .about-media.card-media {
      width: 30%;
  }

  .about-card {
      grid-template-columns: 1fr 2.5fr;
      gap: 10px;
  }

  .about-heading .eyebrow {
      margin-bottom: 10px;
  }
  .solution-shell,
  .contact-shell,
  .news-shell {
    width: min(1420px, 85%);
  }
  .solution-title-block h2 {
      font-size: 40px;
  }
  .solution-value-box ul {
    display: grid;
    grid-gap: 0px 20px;
  }

  p.border-kicker {
      font-size: 40px;
  }

  /* .title-frame {
      height: 75px;
      left: calc(var(--counter) * 1em);
  } */

  .solution-heading-block h3 {
      font-size: 28px;
  }

  .solution-heading-en {
      font-size: 24px;
  }

  .solution-header {
      align-items: start;
  }

  .solution-title-block {
      min-height: auto;
  }

  a.solution-product-card {
      height: auto;
      min-height: 100px;
  }

  .solution-product-side {
      gap: 0;
  }

  .solution-product-side span {
      padding-top: 8px;
  }

  .solution-product-side strong {
      padding-bottom: 8px;
  }

  .solution-soon-card {
      min-height: 100px;
  }

  /* .solution-soon-card span {
      font-size: 24px;
  } */

  .solution-layout {
      /*grid-template-columns: 3fr 2fr;*/
      grid-template-columns: 1fr 1fr;
  }

  .solution-value-box {
      padding: 16px;
      min-height: unset;
      margin-top: 16px;
  }

  .solution-value-box h4 {
      font-size: 20px;
      margin-bottom: 8px;
  }

  .solution-divider {
      margin: 24px 0 24px;
  }
  .news-section h2, .contact-section h2 {
    font-size: 40px;
}

.news-grid {
    margin-top: 40px;
}
.news-meta-row {
  padding: 0px 10px;
}
.news-card h3 {
    font-size: 18px;
    padding: 0px 10px;
    text-align: justify;
}

span.news-category {
    font-size: 14px;
}

time.news-date {
    font-size: 12px;
}

.contact-card h3, .contact-form-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.contact-item {
    padding: 12px 0;
}

.contact-form-card input, .contact-form-card select, .contact-form-card textarea {font-size: 14px;}

.contact-submit {
    font-size: 16px;
}
}

@media (max-width: 1100px){
  .solution-header,
  .solution-layout{
    grid-template-columns:1fr;
    gap:28px;
  }
  .solution-heading-block{ text-align:left; }
  .solution-title-block{ min-height:auto; padding-top:12px; }
  /* .title-frame{ width:220px; height:120px; left:92px !important; } */
  /* .title-frame {width: 120px;height: 90px;left: 92px !important;} */
  .solution-layout--reverse .solution-copy-column{ order:1; }
  .solution-layout--reverse .solution-cards-column{ order:2; }

  .contact-submit span {
      margin: auto;
      margin-right: -32px;
  }
}
@media screen and (max-width: 1024px) {
  .about-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 16px;
        gap: 24px;
  }
  .about-media.card-media.for-mobile {
        display: block;
        margin: auto;
        position: relative;
        top: unset;
        bottom: unset;
        max-width: 600px;
        width: 100%;
  }
  .about-media.card-media.for-desktop {
    display: none;
  }
}
@media (max-width: 768px){
  .solution-shell{ width:min(100%, calc(100% - 24px)); }
  .solution-section{ align-items:flex-start; }
  .border-kicker{ font-size:clamp(36px, 12vw, 50px); padding-right:14px; }
  .solution-title-block h2{ font-size:clamp(36px, 12vw, 40px); }
  .solution-title-block{ min-height:auto; padding-top:8px; }
  /* .title-frame{ width:clamp(140px, 45vw, 200px); height:90px; left:68px !important; border-width:3px; } */
  .title-frame:after{ height:3px; bottom:0; right:-3px; }
  .solution-heading-en{ font-size:clamp(18px, 5vw, 24px); }
  .solution-heading-block h3{ font-size:clamp(22px, 6vw, 30px); }
  .solution-divider{ margin:20px 0 24px; }
  .solution-description{ font-size:15px; line-height:1.85; text-align:left; }
  .solution-product-card{ min-height:110px; }
  .solution-product-side{ gap:12px; }
  .solution-soon-card{ min-height:100px; padding:18px 20px; }
  .solution-soon-card span{ font-size:clamp(20px, 6vw, 30px); }
  .solution-value-box{ padding:22px 20px; min-height:auto; margin-top:24px; }
  .solution-value-box h4{ font-size:clamp(18px, 5vw, 24px); }
  .solution-value-box ul{ font-size:15px; padding-left:18px; }
}

@media (max-width: 1100px){
  .news-shell{
    width: min(100%, calc(100% - 40px));
  }
  .news-header{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .news-header-line{
    transform: none;
  }
  .news-grid{
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
  }
  .news-card h3{
    font-size: 20px;
  }
}
@media (max-width: 640px){
  .news-section{
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 72px;
  }
  .news-kicker{
    font-size: 22px;
    margin-bottom: 14px;
  }
  .news-section h2{
    font-size: 52px;
  }
  .news-media{
    border-radius: 18px;
  }
  .news-arrow{
    width: 54px;
    height: 54px;
    font-size: 28px;
    right: 14px;
    bottom: 14px;
  }
  .news-category,
  .news-date{
    font-size: 14px;
  }
  .news-card h3{
    font-size: 18px;
    line-height: 1.55;
  }
}


/* ===== Contact remake ===== */
.contact-section{
  min-height: auto;
  background: #f5f5f5;
  color: #2b2730;
  padding: 86px 0 108px;
}
.contact-shell{
  width: min(1440px, calc(100% - 40px));
}
.contact-section .contact-eyebrow{
  text-align: center;
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #d9383d;


}
.contact-title{
  margin: 0;
  text-align: center;
  font-size: clamp(54px, 5vw, 72px);
  line-height: .95;
  letter-spacing: .02em;
  color: #2d2932;
}
.contact-layout{
  margin-top: 68px;
  display: grid;
  grid-template-columns: 3fr 5fr;
  gap: 36px;
  align-items: start;
}
.contact-left-column{
  display: grid;
  gap: 30px;
}
.contact-card,
.contact-map-card,
.contact-form-card{
  background: rgba(255,255,255,.72);
  border: 1px solid #D02E3480;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(59, 38, 47, .12);
}
.contact-card{
  padding: 28px 36px 26px;
}
.contact-card h3,
.contact-form-card h3{
  margin: 0 0 22px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  color: #302d35;
}
.contact-item{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(28, 24, 32, .12);
}
.contact-item:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9383d;
  font-weight: 700;
  white-space: nowrap;
}
.contact-label strong{
  font-size: 16px;
  color: #d9383d;
}
.contact-icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
}
.contact-icon svg{
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.contact-value{
  font-size: 15px;
  color: #504c55;
  align-self: center;
}
.contact-link-row{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-link{
  color: #64584a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.amazon-badge{
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #d9383d;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.contact-item--line{
  align-items: start;
}
.line-row{
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.line-qr{
  width: 116px;
  height: 116px;
  object-fit: contain;
  flex: 0 0 116px;
}
.contact-map-card{
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
/* .contact-map-card img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
} */
 .contact-map-card iframe{
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form-card{
  padding: 28px 36px 32px;
}
.contact-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.field{
  min-width: 0;
}
.field--full{
  grid-column: 1 / -1;
}
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea{
  width: 100%;
  font: inherit;
  color: #37323b;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(46, 42, 49, .24);
  border-radius: 6px;
  padding: 12px 16px;
  outline: none;
  box-shadow: none;
}
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder{
  color: #6a6670;
}
.contact-form-card textarea{
  min-height: 322px;
  resize: vertical;
}
.field-select{
  position: relative;
}
.field-select::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #d9383d;
  border-bottom: 2px solid #d9383d;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.contact-form-card select{
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  padding-right: 40px;
  color: #5e5a63;
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus{
  border-color: #d9383d;
  box-shadow: 0 0 0 3px rgba(217, 56, 61, .12);
}
.contact-submit{
  margin-top: 28px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #D02E34;
  color: #fff;
  min-height: 48px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: none;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.contact-submit strong{
  margin-left: auto;
  font-size: 28px;
  line-height: 1;
  transition: transform .3s ease;
}
.contact-submit:hover strong{
  transform: translateX(4px);
}
.contact-submit span{
  margin-left: auto;
}
.contact-submit:hover{
  filter: brightness(.98);
  transform: translateY(-3px);
  /* box-shadow: 0 6px 16px rgba(0,0,0,.18); */
  box-shadow: 0 4px 12px rgba(215, 45, 54, .35);
}

@media (max-width: 1100px){
  .contact-layout{
    grid-template-columns: 1fr;
  }
  .contact-left-column{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .contact-map-card {
    height: 100%;
    width: 100%;
    display: flex;
  }
}
@media (max-width: 760px){
  .contact-shell{
    width: min(100%, calc(100% - 24px));
  }
  .contact-section{
    padding: 64px 0 80px;
  }
  .contact-layout{
    margin-top: 40px;
    gap: 22px;
  }
  .contact-left-column{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact-card,
  .contact-form-card{
    padding: 22px 18px;
  }
  .contact-item{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .line-row{
    flex-direction: column;
  }
  .line-qr{
    width: 108px;
    height: 108px;
  }
  .contact-form-grid{
    grid-template-columns: 1fr;
  }
  .field--full{
    grid-column: auto;
  }
  .contact-form-card textarea{
    min-height: 220px;
  }
}


.text-white {
  color: #fff;
}
.text-dark {
  color: var(--text-dark);
}

/* ===== Mobile-specific fixes ===== */
@media (max-width: 768px){
  /* Header */
  .site-header{
    grid-template-columns: auto 1fr auto;
  }
  .logo img{ height: 32px; width: auto; }

  /* Hero */
  .hero-content h2{
    /* font-size: clamp(28px, 8vw, 42px); */
  }
  .hero-content p{
    font-size: 14px;
  }
  .hero-content small{
    font-size: 11px;
  }

  /* General section spacing */
  .section.hero-section {
    padding-bottom: 0px;
  }
  .section{
    /* padding-top: calc(var(--header-h) + 20px); */
    padding-bottom: 48px;
  }

  /* Footer */
  .site-footer{
    padding: 28px 16px 36px;
  }
  .site-footer p{
    font-size: 14px;
  }
}

@media (max-width: 480px){
  /* Extra small: tighter spacing */
  .hero-card{
    min-height: 0;
  }

  .hero-content h2{
    font-size: clamp(24px, 7vw, 34px);
    /* margin: 8px 0; */
  }
  .hero-content p{
    font-size: 13px;
  }

  /* About */
  .about-shell{
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .about-card{
    padding: 20px 12px;
    gap: 24px;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0px 10px;
  }
  .about-desc{
    padding: 0;
  }
  .about-right{
    padding: 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .about-company-en{
    font-size: 14px;
    word-break: break-word;
  }
  .about-heading h2{
    font-size: clamp(32px, 12vw, 48px);
  }
  .about-company-name{
    font-size: 22px;
  }
  .about-desc p{
    font-size: 14px;
  }

  /* Solution sections */
  .solution-shell{ width: calc(100% - 20px); }
  .border-kicker{ font-size: clamp(30px, 10vw, 40px); }
  .solution-title-block h2{ font-size: clamp(30px, 10vw, 40px); }
  /* .title-frame{ width: clamp(110px, 38vw, 160px); height: 72px; left: 52px !important; } */
  .solution-heading-en{ font-size: 16px; }
  .solution-heading-block h3{ font-size: clamp(18px, 5.5vw, 24px); }
  .solution-product-card{ min-height: 96px; }
  .solution-soon-card{ min-height: 80px; }
  .solution-soon-card span{ font-size: clamp(18px, 5vw, 24px); }

  /* Contact */
  .contact-title{ font-size: clamp(36px, 10vw, 52px); }
  .contact-submit{ font-size: 16px; min-height: 50px; }
}

/* ===== PRODUCT PAGE ===== */

.pd-header{
  padding: calc(var(--header-h) + 40px) 0 0;
  background-color: #FFF;
  color: var(--text-dark);
}
.pd-header .container {
    border-bottom: 1px solid var(--muted-line);
    padding-bottom: 20px;
}
.pd-page-title{
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 24px;
}
.pd-page-title-accent{
  color: var(--accent);
}
.pd-tab-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pd-tabs{
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pd-tabs::-webkit-scrollbar{
  display: none;
}
.pd-tab{
  padding: 8px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--text-dark);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  transition: all .25s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.pd-tab.disabled {
  color: var(--text-muted);
  border-color: var(--text-muted);
}
.pd-tab--active,
.pd-tab:not(.disabled):hover{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.pd-tab.disabled:hover{
  cursor: default;
}

.pd-back-btn{
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pd-back-btn strong{
  display: inline-block;
  transition: transform .25s ease;
}
.pd-back-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215,45,54,.35);
}
.pd-back-btn:hover strong{
  transform: translateX(-4px);
}

/* Banner */
.pd-banner{
  padding: 32px 0 0;
  background-color: #FFF;
}
.pd-banner-img{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.pd-banner-img img{
  width: 100%;
  aspect-ratio: 3 / 1;
  /*object-fit: cover;*/
  object-fit: contain;
  display: block;
}
.pd-banner-title{
  position: absolute;
  left: 40px;
  bottom: 28px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.pd-banner-title.shadow-dark {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 1);
}

/* Intro */
.pd-intro{
  padding: 56px 0;
  background-color: #FFF;
  color: var(--text-dark);
}
.pd-section-title{
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--muted-line);
}
.pd-intro-text{
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-dark);
  margin: 0 0 48px;
}
.pd-info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.pd-info-block h3{
  margin: 0 0 22px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  color: #302d35;
}
.pd-info-block p{
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
}

/* Feature cards */
.pd-feature-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pd-feature-card{
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 28px 32px;
}
.pd-feature-card h4{

  margin: 0 0 16px;
  color: var(--accent);
  font-size: clamp(24px, 2vw, 26px);
  font-weight: 800;
  display: flex;
  align-items: center;
}
.pd-feature-card ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
.pd-feature-card li{
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.8;
}
.pd-feature-card li::before{
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Gallery — Swiper */
.pd-gallery{
  padding: 40px 0 56px;
  background: var(--bg-2);
}
.pd-gallery-main{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}
.pd-swiper-main{
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  position: relative;
}
.pd-gallery-img{
  width: 100%;
  max-height: 70vh;
  min-height: 500px;
  aspect-ratio: 16 / 10;
  /*object-fit: cover;*/
  object-fit: contain;
  display: block;
  margin: auto;
}
/* .pd-gallery-arrow{
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
} */

.pd-gallery-arrow {
    position: absolute;
    background-size: contain;
    top: 0;
    z-index: 1;
    background-repeat: no-repeat;
    height: 60px;
    width: 20px;
    background-position: center;
        top: calc(50% - 30px);
    transition: transform .2s ease, opacity .2s ease;
    cursor: pointer;
}


.pd-gallery-arrow.pd-gallery-arrow--prev {
  left: -40px;
  background-image: url(/assets/images/icon/arrow_left.png);
}
.pd-gallery-arrow.pd-gallery-arrow--next {
    background-image: url(/assets/images/icon/arrow_right.png);
    right: -40px;
}
.pd-gallery-arrow.pd-gallery-arrow--prev.arrow-white {
  background-image: url(/assets/images/icon/arrow_left_white.png);
}
.pd-gallery-arrow.pd-gallery-arrow--next.arrow-white {
    background-image: url(/assets/images/icon/arrow_right_white.png);
}

.pd-gallery-arrow:hover{
  opacity: 0.8;
}
.pd-gallery-arrow.pd-gallery-arrow--prev:hover{
  transform: translateX(-2px);
}
.pd-gallery-arrow.pd-gallery-arrow--next:hover{
  transform: translateX(2px);
}

/* Swiper thumbs */
.pd-swiper-thumbs-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  position: relative;
}
.pd-thumb-arrow{
    position: absolute;
    background-size: contain;
    top: 0;
    z-index: 9;
    background-repeat: no-repeat;
    height: 36px;
    width: 12px;
    background-position: center;
        top: calc(50% - 30px);
    transition: transform .2s ease, opacity .2s ease;
    cursor: pointer;
}
.pd-thumb-arrow:hover{
  opacity: 0.8;
}

.pd-thumb-arrow.pd-thumb-arrow--prev {
  left: -25px;
  background-image: url(/assets/images/icon/arrow_left.png);
}
.pd-thumb-arrow.pd-thumb-arrow--next {
    background-image: url(/assets/images/icon/arrow_right.png);
    right: -25px;
}
.pd-thumb-arrow.pd-thumb-arrow--prev.arrow-white {
  background-image: url(/assets/images/icon/arrow_left_white.png);
}
.pd-thumb-arrow.pd-thumb-arrow--next.arrow-white {
    background-image: url(/assets/images/icon/arrow_right_white.png);
}


.pd-thumb-arrow.pd-thumb-arrow--prev:hover{
  transform: translateX(-2px);
}
.pd-thumb-arrow.pd-thumb-arrow--next:hover{
  transform: translateX(2px);
}



.pd-gallery-arrow.swiper-button-disabled,
.pd-thumb-arrow.swiper-button-disabled{
  opacity: .1;
  cursor: default;
}
.pd-gallery-arrow.swiper-button-disabled:hover,
.pd-thumb-arrow.swiper-button-disabled:hover{
  transform: none;
}
.pd-swiper-thumbs-wrap .pd-swiper-thumbs{
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.pd-case-gallery .pd-swiper-thumbs-wrap{
  margin-top: 4px;
}
.pd-swiper-case-thumbs{
  overflow: hidden;
  width: 100%;
}

.pd-swiper-thumbs .swiper-slide,
.pd-swiper-case-thumbs .swiper-slide{
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color .25s ease, opacity .25s ease;
  opacity: .5;
}
.pd-swiper-thumbs .swiper-slide img,
.pd-swiper-case-thumbs .swiper-slide img{
  width: 100%;
  aspect-ratio: 3 / 2;
  /*object-fit: cover;*/
  object-fit: cover;
  display: block;
}
.pd-swiper-thumbs .swiper-slide-thumb-active,
.pd-swiper-case-thumbs .swiper-slide-thumb-active{
  border-color: var(--accent);
  opacity: 1;
}
@media screen and (max-width: 1300px) {
  .pd-gallery-arrow.pd-gallery-arrow--next,
  .pd-thumb-arrow.pd-thumb-arrow--next{
      right: 10px;
  }
  .pd-gallery-arrow.pd-gallery-arrow--prev,
  .pd-thumb-arrow.pd-thumb-arrow--prev{
      left: 10px;
  }

}

#galleryThumbs{
  /* width: min(900px, 100%); */
  width: 100%;
  margin: 0 auto;
}
.pd-gallery-caption{
  text-align: center;
  font-size: 14px;
  color: var(--text-white);
  margin: 16px 0 0;
}

/* Case studies */
.pd-cases{
  padding: 64px 0 80px;
  background-color: #FFF;
  color: var(--text-dark);
}
.pd-case-tabs{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: left;
  gap: 12px;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.pd-case-tab{
  padding: 8px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--text-dark);
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  cursor: pointer;
  transition: all .25s ease;
}
.pd-case-tab--active,
.pd-case-tab:hover{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pd-case-content{
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-case-content--active{
  display: grid;
}
.pd-case-info{
  min-width: 0;
}
.pd-case-info h3{
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
}
.pd-case-info p{
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}
.pd-case-gallery{
  min-width: 0;
}
.pd-case-gallery-main{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}
.pd-swiper-case{
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.pd-case-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ===== LIGHTBOX ===== */
.lb-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  overflow: hidden;
}
.lb-overlay.lb-open{
  opacity: 1;
  pointer-events: auto;
}
.lb-close{
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 2;
  transition: opacity .2s;
}
.lb-close:hover{ opacity: .6; }
.lb-content{
  position: relative;
  width: 90%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 32px 24px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.lb-main-wrap{
  display: flex;
  align-items: center;
  gap: 16px;
}
.lb-swiper-main{
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
}
.lb-swiper-main .swiper-slide img{
  width: 100%;
  max-height: calc(90vh - 180px);
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.lb-arrow{
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
  background: none;
  border: none;
}
.lb-arrow::before{
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-left: 2.5px solid #333;
  border-bottom: 2.5px solid #333;
}
.lb-arrow--prev::before{ transform: rotate(45deg); }
.lb-arrow--next::before{ transform: rotate(-135deg); }
.lb-arrow:hover{ opacity: .5; }
.lb-arrow.swiper-button-disabled{ opacity: .2; pointer-events: none; }


.pd-case-img{ cursor: pointer; }
.lb-content .pd-swiper-thumbs-wrap{
  flex-shrink: 0;
}

/* Lightbox pagination dots (mobile) */
.lb-swiper-main .swiper-pagination{
  display: none;
}
.lb-swiper-main .swiper-pagination-bullet{
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
}
.lb-swiper-main .swiper-pagination-bullet-active{
  background: var(--accent);
}

/* Product page responsive */
@media (max-width: 768px){
  .pd-info-grid,
  .pd-feature-grid,
  .pd-case-content{
    grid-template-columns: 1fr;
  }
  .pd-banner-title{
    left: 20px;
    bottom: 16px;
  }
  .pd-gallery-main{
    overflow: hidden;
  }
  .pd-gallery-arrow{
    /* width: 36px;
    height: 36px;
    background-color: rgba(0,0,0,.45);
    border-radius: 50%;
    background-size: 10px;
    z-index: 9; */
        width: 44px;
        height: 44px;
        display: flex;
        background-color: rgba(255, 255, 255, .8);
        background-position: center;
        border-radius: 50%;
        background-size: 8px;
        z-index: 9;
  }
  .pd-gallery-arrow.arrow-white {
    background-color: rgba(0,0,0,.45);
  }
  .pd-gallery-arrow.pd-gallery-arrow--prev{
    left: 8px;
  }
  .pd-gallery-arrow.pd-gallery-arrow--next{
    right: 8px;
  }
  .pd-swiper-thumbs-wrap{
    overflow: hidden;
  }
  .pd-thumb-arrow{
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,.8);
    border-radius: 50%;
    background-size: 6px;
  }
  .pd-thumb-arrow.arrow-white{
    background-color: rgba(0,0,0,.4);
  }
  .pd-thumb-arrow.pd-thumb-arrow--prev{
    top: auto;
    left: 5px;
  }
  .pd-thumb-arrow.pd-thumb-arrow--next{
    top: auto;
    right: 5px;
  }
  .pd-thumb img{
    width: 72px;
  }

  /* Lightbox mobile */
  .lb-content{
    width: 95%;
    padding: 32px 16px 16px;
    max-height: 95vh;
  }
  .lb-content .pd-swiper-thumbs-wrap{
    display: none;
  }
  .lb-swiper-main .swiper-pagination{
    display: block;
    position: relative;
    margin-top: 12px;
  }
  .lb-arrow{
    display: none;
  }
  .lb-swiper-main .swiper-slide img{
    max-height: calc(95vh - 100px);
  }
}



.popup-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup-box {
    width: 90%;
    max-width: 360px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    color: var(--text-dark);
}

.popup-box h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.popup-box p {
    margin: 0 0 20px;
    line-height: 1.6;
}

.popup-box button {
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.popup-success h3 {
    color: var(--text-dark);
}

.popup-error h3 {
    color: var(--text-dark);
}

.swiper-wrapper {
  align-items: center;
}

/* ===== BACK TO TOP ===== */
.back-to-top{
  position: sticky;
  bottom: 28px;
  z-index: 900;
  display: block;
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: 28px;
  margin-top: -48px;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.back-to-top.show{
  opacity: 1;
  pointer-events: auto;
}
.back-to-top img{
  width: 100%;
  height: 100%;
  display: block;
  margin-top: -20px;
}
.back-to-top:hover{
  opacity: .75;
}
@media (max-width: 768px){
  .back-to-top{
    width: 40px;
    height: 40px;
    margin-top: -40px;
    margin-right: 16px;
    bottom: 16px;
  }
}