:root {
  --ink: #16313b;
  --ink-soft: #45636d;
  --medical-blue: #187f92;
  --medical-teal: #138d88;
  --medical-mint: #dff3f0;
  --medical-sky: #eaf5f8;
  --surface: #ffffff;
  --paper: #f8fbfb;
  --line: #d8e7e8;
  --line-strong: #bfd7da;
  --shadow: 0 20px 60px rgba(24, 79, 88, 0.1);
  --shadow-soft: 0 10px 35px rgba(24, 79, 88, 0.07);
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --space-section: clamp(5rem, 8vw, 8rem);
  --radius-card: .5rem;
  --max: 1240px;
  --header-height: 110px;
  --header-height-scrolled: 90px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: var(--font-sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
.container { width: min(calc(100% - 56px), var(--max)); margin-inline: auto; }
.section { padding: var(--space-section) 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 300; padding: 10px 18px; background: white; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(24,127,146,.45); outline-offset: 3px; }
.eyebrow { margin: 0 0 22px; color: var(--medical-blue); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: #c7f1ec; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.04em; line-height: 1.12; }
h1 { margin-bottom: 28px; color: var(--ink); font-size: clamp(3rem, 5.4vw, 5.4rem); }
h1 em { color: var(--medical-teal); font-style: normal; }
h2 { margin-bottom: 26px; font-size: clamp(2.25rem, 4vw, 4rem); }
.site-header { --active-header-height:var(--header-height); position: fixed; z-index: 100; top: 0; right: 0; left: 0; display: flex; align-items: center; height: var(--active-header-height); padding: 0 4vw; color: var(--ink); background-color: rgba(255,255,255,.96); border-bottom: 1px solid rgba(216,231,232,.8); backdrop-filter: blur(14px); transition: height .3s, box-shadow .3s; }
.site-header.scrolled { --active-header-height:var(--header-height-scrolled); box-shadow: 0 8px 30px rgba(24,79,88,.08); }
.brand { display: flex; align-items: center; color: var(--ink); white-space: nowrap; }
.brand-logo { width: auto; height: 64px; max-width: min(160px, 30vw); object-fit: contain; }
.site-header .brand { flex-shrink:0; }
.site-header .brand-logo { height:92px; max-width:170px; }
.site-header.scrolled .brand-logo { height:76px; }
.footer-brand .brand-logo { height: 100px; max-width: 180px; }
.primary-nav { margin: auto; color: #38545d; font-size: .78rem; font-weight: 600; }
.primary-nav-list { display: flex; align-items: center; gap: clamp(5px, 1vw, 17px); margin: 0; padding: 0; list-style: none; }
.primary-item { position: relative; }
.primary-nav button, .primary-nav a { min-height: 44px; }
.primary-link { position: relative; display: inline-flex; align-items: center; padding: 0 3px; color: inherit; background: none; border: 0; font: inherit; white-space: nowrap; cursor: pointer; }
.primary-link::after { content: ""; position: absolute; right: 3px; bottom: 3px; left: 3px; height: 2px; background: var(--medical-teal); transform: scaleX(0); transition: transform .25s; }
.primary-link:hover::after, .primary-link:focus-visible::after, .primary-link[aria-current="page"]::after { transform: scaleX(1); }
.submenu-toggle { gap: 7px; }
.submenu-toggle::before { content: ""; order: 2; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.submenu-toggle[aria-expanded="true"]::before { margin-top: 3px; transform: rotate(225deg); }
.submenu-panel[hidden] { display: none; }
.submenu-panel { position: absolute; z-index: 120; inset-block-start: calc(100% + 1rem); left: 50%; display: grid; min-width: 20rem; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--medical-teal); border-radius: 5px; box-shadow: var(--shadow); transform: translateX(-50%); }
.submenu-panel[data-submenu="solutions"] { grid-template-columns: repeat(2, minmax(15rem, 1fr)); min-width: 38rem; }
.submenu-panel a { display: flex; align-items: center; padding: 9px 13px; color: var(--ink-soft); border-radius: 3px; font-size: .82rem; line-height: 1.35; }
.submenu-panel a:first-child { grid-column: 1 / -1; color: var(--medical-blue); background: var(--medical-sky); font-weight: 700; }
.submenu-panel a:hover, .submenu-panel a:focus-visible { color: var(--ink); background: var(--medical-mint); }
.primary-cta.button { min-height: 44px; padding: 0 16px; color: white; }
.primary-cta.button::after { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.language { position: relative; }
.language-current { min-height: 44px; padding: 8px; color: var(--ink-soft); background: none; border: 0; font-size: .82rem; cursor: pointer; }
.language-menu { position: absolute; top: 45px; right: 0; display: none; min-width: 145px; padding: 8px; color: var(--ink); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.language.open .language-menu { display: grid; }
.language-menu button { padding: 9px 12px; background: none; border: 0; text-align: left; cursor: pointer; }
.language-menu button:hover { background: var(--medical-sky); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; color: white; background: var(--medical-blue); border: 1px solid var(--medical-blue); border-radius: var(--radius-card); font-size: .87rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 8px 22px rgba(24,127,146,.16); transition: background .25s, border-color .25s, transform .25s, box-shadow .25s; }
.button:hover { background: #126e80; border-color: #126e80; box-shadow: 0 12px 28px rgba(24,127,146,.24); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 18px; }
.button-light { color: white; background: var(--medical-blue); border-color: var(--medical-blue); }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 4px; color: var(--medical-blue); border-bottom: 1px solid currentColor; font-size: .9rem; font-weight: 700; }
.text-link b { font-size: 1.2rem; font-weight: 400; }
.light-link { color: var(--medical-blue); }
.hero { position:relative; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:max(33.333333vw,var(--hero-copy-height,440px)) 64px; align-items:center; margin-top:var(--header-height); padding:0; min-height:0; overflow:hidden; background-color:#02070d; }
.hero::before, .hero::after { display: none; }
.hero-media { position:relative; z-index:1; grid-area:1 / 1; width:100%; height:100%; background-color:transparent; background-position:center; background-size:contain; background-repeat:no-repeat; border:0; border-radius:0; box-shadow:none; }
.hero-media::after { display:none; }
/* Match the fourth image's 2:1 bounds so its fade ends at the image, not the wider stage. */
.hero[data-hero-slide="4"] .hero-media {
  width:auto; max-width:100%; aspect-ratio:2 / 1; justify-self:center;
  -webkit-mask-image:linear-gradient(to right,#000 76%,rgba(0,0,0,.82) 84%,rgba(0,0,0,.3) 94%,transparent 100%);
  mask-image:linear-gradient(to right,#000 76%,rgba(0,0,0,.82) 84%,rgba(0,0,0,.3) 94%,transparent 100%);
}
.hero-overlay { display: none; }
.homepage-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.homepage-category-card { background:white; border:1px solid var(--line); border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-soft); }
.homepage-category-card a { display:grid; grid-template-rows:auto 1fr; height:100%; color:inherit; text-decoration:none; }
.homepage-category-card a:focus-visible { outline:3px solid var(--medical-blue); outline-offset:-3px; }
.homepage-category-media { aspect-ratio:auto; }
.homepage-category-media img { width:100%; height:auto; object-fit:contain; background:#fff; }
.solution-card-copy { padding:20px; }
.homepage-category-card h2 { font-size:1.2rem; margin:0 0 8px; }
.homepage-category-card p { color:var(--ink-soft); font-size:.875rem; margin:0; }
.category-number { color:var(--medical-blue); font-size:.875rem; }
.category-illustration-note { grid-column:1/-1; color:var(--ink-soft); font-size:.875rem; }
@media (max-width:900px) { .homepage-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:420px) { .homepage-category-grid { grid-template-columns:1fr; } }
.hero-controls { position:relative; z-index:4; grid-area:2 / 1; justify-self:start; margin-left:max(4vw,24px); display:flex; align-items:center; gap:12px; color:white; }
.hero-controls button { min-width:44px; min-height:44px; padding:9px 14px; border:1px solid rgba(255,255,255,.46); border-radius:var(--radius-card); background:rgba(3,15,25,.64); color:white; cursor:pointer; font:inherit; font-size:.8rem; backdrop-filter:blur(6px); }
.hero-controls button:focus-visible { outline:3px solid white; outline-offset:3px; }
.hero-controls button:disabled { opacity:.65; cursor:default; }
.hero-controls span { font-size:.8rem; }
@media (max-width:600px) { .hero-controls { gap:8px; } }
.hero-content { position:relative; z-index:2; grid-area:1 / 1; width:100%; margin:0; padding:24px clamp(24px,4vw,72px); color:white; }
.hero-content > * { max-width:32vw; }
.hero-content h1 { max-width:32vw; margin-bottom:20px; color:white; font-size:clamp(2rem,2.8vw,3.4rem); text-shadow:0 2px 20px rgba(0,0,0,.24); }
.hero-content .eyebrow { margin-bottom:16px; color:#8de0e2; }
.hero-copy { margin-bottom:24px; color:rgba(255,255,255,.9); font-size:clamp(1rem,1.25vw,1.15rem); }
.hero-content .light-link { color: white; }
.button-row { display: flex; align-items: center; gap: 30px; }
.hero-product-label[hidden] { display:none; }
.intro { background: white; }
.split-heading { display: grid; grid-template-columns: .75fr 1.65fr; gap: 9vw; }
.split-heading > div { max-width: 780px; }
.split-heading p:not(.eyebrow) { max-width: 660px; color: var(--ink-soft); font-size: 1.08rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 74px; }
.metrics div { display: flex; flex-direction: column; min-height: 150px; padding: 28px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.metrics strong { color: var(--medical-blue); font-size: 2rem; font-weight: 600; }
.metrics span { color: var(--ink-soft); font-size: .84rem; }
.section-tint { background: var(--medical-sky); }
.router-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: start; }
.router-copy { position: sticky; top: 120px; }
.router-copy > p:last-child { max-width: 540px; color: var(--ink-soft); }
.router-card { padding: 40px; background: white; border: 1px solid rgba(191,215,218,.8); border-radius: 8px; box-shadow: var(--shadow-soft); }
.step-label { display: flex; align-items: center; gap: 13px; margin: 8px 0 10px; font-weight: 700; }
.step-label span { display: grid; place-items: center; width: 27px; height: 27px; color: var(--medical-blue); background: var(--medical-sky); border: 1px solid var(--line-strong); border-radius: 50%; font-size: .7rem; }
.router-card select { width: 100%; height: 58px; margin-bottom: 28px; padding: 0 16px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; }
.router-card select:focus { outline: 3px solid rgba(24,127,146,.18); border-color: var(--medical-blue); }
.router-result { min-height: 130px; padding: 22px; background: #f1f8f7; border: 1px solid var(--line); border-left: 4px solid var(--medical-teal); border-radius: 0 4px 4px 0; }
.router-result p { margin: 0; color: var(--ink-soft); }
.router-result strong { display: block; margin-bottom: 8px; font-size: 1.22rem; }
.router-result a { display: inline-block; margin-top: 14px; color: var(--medical-blue); font-weight: 700; }
.router-result small { display: block; margin-top: 9px; color: #71868c; }
.section-heading { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8vw; align-items: end; margin-bottom: 46px; }
.section-heading p:last-child { color: var(--ink-soft); }
.solution-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.solution-card { position: relative; display: flex; flex-direction: column; min-height: 470px; overflow: hidden; background-color: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow-soft); transition: transform .35s, box-shadow .35s; }
.solution-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.solution-feature { min-height: 540px; }
.solution-card img { width: 100%; height: auto; object-fit: contain; }
.solution-card:hover img { transform: none; }
.solution-card::after { display: none; }
.card-overlay { position: relative; left: auto; right: auto; bottom: auto; flex: 1; min-height: 132px; padding: 23px 25px; color: var(--ink); background: white; border-top: 1px solid var(--line); }
.card-overlay span { color: var(--medical-teal); font-size: .7rem; }
.card-overlay h3 { margin: 7px 52px 0 0; font-size: 1.3rem; }
.card-overlay p { margin: 3px 52px 0 0; color: #71868c; font-size: .74rem; }
.card-overlay a { position: absolute; right: 23px; bottom: 28px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--medical-blue); border: 1px solid var(--line-strong); border-radius: 50%; }
.card-graphic { background-color: #f1f8f7; background-image: linear-gradient(145deg, #f7fbfb, #dff3f0); }
.ceramic-orbit { position: relative; top: auto; left: auto; width: 190px; height: 190px; margin: 80px auto 67px; border: 1px solid rgba(19,141,136,.28); border-radius: 50%; transform: none; }
.ceramic-orbit::before, .ceramic-orbit::after { content: ""; position: absolute; inset: -35px; border: 1px solid rgba(24,127,146,.1); border-radius: 50%; }
.ceramic-orbit::after { inset: -70px; }
.ceramic-orbit i { position: absolute; top: 47px; left: 60px; width: 70px; height: 95px; background: linear-gradient(150deg, #fffdf7, #d2dedb); border-radius: 45% 45% 38% 38%; box-shadow: inset -12px -8px 18px rgba(52,82,90,.14), 0 15px 35px rgba(24,79,88,.14); }
.more-link { margin-top: 30px; text-align: right; }
.process { color: var(--ink); background-color: #eef7f6; }
.process .eyebrow.light { color: var(--medical-blue); }
.process-intro { display: grid; grid-template-columns: .55fr 1.15fr 1fr; gap: 6vw; align-items: start; }
.process-intro h2 { font-size: clamp(2.2rem, 3.8vw, 3.8rem); }
.process-intro > p:last-child { color: var(--ink-soft); }
.homepage-capability-media { margin: 44px 0 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.homepage-capability-media img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 68px; }
.process-steps article { min-height: 255px; padding: 27px 25px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.process-steps article + article { padding-left: 25px; }
.process-steps span { color: var(--medical-teal); font-size: .7rem; }
.process-steps h3 { margin: 24px 0 8px; font-size: 1.02rem; }
.process-steps p { color: #6a8188; font-size: .82rem; }
.step-icon { position: relative; height: 62px; margin-top: 27px; }
.step-icon::before, .step-icon::after { content: ""; position: absolute; border: 1.5px solid var(--medical-blue); }
.scan::before { top: 10px; left: 8px; width: 52px; height: 39px; }
.scan::after { top: 20px; left: 24px; width: 20px; height: 20px; border-radius: 50%; }
.design::before { top: 12px; left: 4px; width: 55px; height: 35px; transform: skew(-18deg); }
.design::after { top: 16px; left: 17px; width: 32px; height: 32px; transform: rotate(45deg); }
.mill::before { top: 3px; left: 25px; width: 14px; height: 52px; border-radius: 8px; }
.mill::after { top: 47px; left: 7px; width: 50px; height: 12px; border-radius: 50%; }
.finish::before { top: 5px; left: 10px; width: 42px; height: 49px; border-radius: 45% 45% 35% 35%; }
.finish::after { top: 13px; left: 23px; width: 18px; height: 18px; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.presence { background: white; }
.presence-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 8vw; align-items: center; }
.map-wrap { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.location-network { position: relative; height: 410px; overflow: hidden; background: radial-gradient(circle at center, #fff 0 4%, transparent 4.2%), linear-gradient(145deg,#f8fbfb,#eaf5f8); border-radius: 5px; }
.network-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(24,127,146,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.ring-one { width: 270px; height: 270px; }
.ring-two { width: 510px; height: 510px; }
.network-line { position: absolute; top: 50%; left: 50%; width: 44%; height: 1px; background: linear-gradient(90deg, var(--medical-teal), rgba(19,141,136,.15)); transform-origin: left center; }
.line-one { transform: rotate(159deg); }
.line-two { transform: rotate(-18deg); }
.location-dot { position: absolute; display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: .76rem; }
.location-dot i { display: block; width: 12px; height: 12px; background: var(--medical-teal); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 5px rgba(19,141,136,.16); }
.location-dot b { padding: 5px 9px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 3px; font-weight: 600; }
.dot-la { top: 56%; left: 11%; }
.dot-sz { top: 41%; right: 14%; }
.dot-tw { top: 57%; right: 8%; }
.map-wrap > p { margin: 14px 0 0; color: #71868c; font-size: .7rem; }
.presence-copy > p:not(.eyebrow) { margin-bottom: 34px; color: var(--ink-soft); }
.homepage-location-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: -8px 0 28px; }
.homepage-location-links a { color: var(--medical-blue); font-size: .78rem; font-weight: 700; }
.homepage-location-links a::after { content: '→'; margin-left: 6px; }
.final-cta { color: white; text-align: center; background: var(--medical-blue); }
.final-cta h2 { font-size: clamp(2.5rem, 4.7vw, 4.8rem); }
.final-cta > .container > p:not(.eyebrow) { max-width: 710px; margin: 0 auto 42px; color: rgba(255,255,255,.8); }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 880px; margin: auto; text-align: left; }
.cta-cards a { display: grid; grid-template-columns: 1fr auto; padding: 26px 30px; color: var(--ink); background: white; border-radius: 5px; transition: background .25s, transform .25s; }
.cta-cards a:hover { background: var(--medical-mint); transform: translateY(-3px); }
.cta-cards span { grid-column: 1; color: #677c83; font-size: .72rem; }
.cta-cards strong { grid-column: 1; font-size: 1.2rem; }
.cta-cards b { grid-column: 2; grid-row: 1/3; align-self: center; color: var(--medical-blue); font-size: 1.4rem; }
.prototype-note { margin: 23px auto 0 !important; color: rgba(255,255,255,.68) !important; font-size: .72rem !important; }
footer { padding: 68px 0 28px; color: var(--ink); background: #f3f8f8; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr); gap: 7vw; }
.footer-brand { font-size: 1.8rem; }
.footer-grid p { margin: 20px 0; color: var(--ink-soft); font-size: .82rem; }
.footer-grid h3 { margin-bottom: 18px; color: var(--medical-blue); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { color: #526c74; font-size: .82rem; }
.footer-navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; align-items: center; }
.footer-navigation a:not(.button) { display: flex; align-items: center; min-height: 44px; }
.footer-navigation a:not(.button):hover, .footer-navigation a:not(.button):focus-visible { color: var(--medical-blue); }
.jdenta-footer-contact { min-height: 44px; justify-self: start; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 52px; padding-top: 22px; color: #789096; border-top: 1px solid var(--line); font-size: .68rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s, transform .65s; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 980px) {
  .primary-nav { position: fixed; inset: var(--active-header-height) 0 auto; display: none; height: calc(100vh - var(--active-header-height)); height: calc(100dvh - var(--active-header-height)); margin: 0; padding: 24px 32px 42px; overflow-y: auto; color: var(--ink); background: var(--surface); font-size: 1rem; }
  .primary-nav.open { display: block; }
  .primary-nav-list { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-item { border-bottom: 1px solid var(--line); }
  .primary-link { width: 100%; justify-content: space-between; padding: 10px 4px; }
  .primary-link::after { right: auto; bottom: 7px; width: 42px; transform-origin: left; }
  .primary-cta.button { width: max-content; min-width: 10rem; justify-content: center; margin: 14px 0; padding: 0 18px; }
  .submenu-panel { position: static; min-width: 0; margin: 0 0 14px; padding: 8px 8px 8px 14px; background: var(--paper); border: 0; border-left: 3px solid var(--medical-teal); border-radius: 0 4px 4px 0; box-shadow: none; transform: none; }
  .submenu-panel[data-submenu="solutions"] { grid-template-columns: 1fr; min-width: 0; }
  .submenu-panel a:first-child { grid-column: auto; }
  .menu-toggle { display: grid; width: 44px; height: 44px; margin-left: auto; color: var(--ink); background: none; border: 0; place-content: center; gap: 7px; cursor: pointer; }
  .menu-toggle i { display: block; width: 22px; height: 1px; background: currentColor; }
  .language { margin-left: 8px; }
  .split-heading, .router-grid, .section-heading, .process-intro, .presence-grid { grid-template-columns: 1fr; }
  .split-heading, .router-grid, .presence-grid { gap: 48px; }
  .router-copy { position: static; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .solution-feature { grid-column: 1/-1; min-height: 520px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --header-height:88px; --header-height-scrolled:88px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: clamp(4.5rem, 12vw, 5.5rem) 0; }
  .site-header { padding: 0 16px; }
  .site-header .brand-logo,.site-header.scrolled .brand-logo { height:72px; max-width:135px; }
  .brand { font-size: 1.3rem; }
  .brand-logo { height: 56px; max-width: 132px; }
  .language-current { font-size: .75rem; }
  .hero-copy { font-size: .96rem; }
  .button-row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .split-heading { gap: 10px; }
  .metrics { grid-template-columns: 1fr; margin-top: 50px; }
  .metrics div { min-height: 125px; }
  .router-card { padding: 25px 20px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-feature { grid-column: auto; min-height: 430px; }
  .solution-card { min-height: 430px; }
  .process-steps { grid-template-columns: 1fr; margin-top: 45px; }
  .process-steps article { min-height: 220px; }
  .location-network { height: 315px; }
  .ring-one { width: 210px; height: 210px; }
  .ring-two { width: 390px; height: 390px; }
  .location-dot b { font-size: .65rem; }
  .cta-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .menu-toggle { order: 2; }
  .header-actions { order: 3; }
  .primary-nav { order: 4; padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-navigation { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .solution-card, .solution-card img, .button, .cta-cards a { transition: none; }
}

/* One compact stage for all four untouched images; the controls have their own row. */
.hero-content .button-row { flex-wrap:wrap; gap:20px; }
.hero-copy-measure { position:absolute; inset:0 0 auto; height:auto; min-height:0; visibility:hidden; pointer-events:none; transform:none; transition:none; }
@media (max-width:980px) {
  .hero { grid-template-rows:var(--hero-copy-height,auto) 60vw 64px; }
  .hero-media { grid-area:2 / 1; background-size:cover; background-position:right center; }
  .hero[data-hero-slide="4"] .hero-media { width:100%; aspect-ratio:auto; mask-image:none; -webkit-mask-image:none; }
  .hero-content { grid-area:1 / 1; width:100%; padding:24px; }
  .hero-content > *, .hero-content h1 { max-width:650px; }
  .hero-content h1 { font-size:clamp(1.5rem,4.8vw,2.75rem); line-height:1.3; overflow-wrap:break-word; text-wrap:balance; }
  .hero-controls { grid-area:3 / 1; }
}
@media (max-width:680px) {
  .hero { margin-top:var(--header-height); }
  .hero-content { padding:24px 22px; }
  .hero-content .eyebrow { font-size:.7rem; letter-spacing:.1em; }
  .hero-content .button-row { gap:12px; }
  html:lang(zh-Hant) .hero-content h1, html:lang(zh-Hans) .hero-content h1 { word-break:break-all; }
}
