/* home — 由 prototype-20260904/en/index.html 的 <style> 抽出 */
/* ── Site Variables (from live main.css) ── */
:root {
  --navy:          #1A2B45; /* Deep Navy: primary anchor */
  --navy-light:    #2A3D5C; /* Navy Light: accents, hovers, secondary emphasis */
  --cloud:         #F1F5F9; /* Cloud: section backgrounds, fills */
  --text-heading:  #1A2B45;
  --text-body:     #334155; /* Charcoal */
  --text-muted:    #64748B; /* Slate */
  --border:        rgba(100,116,139,0.25); /* Slate tint */
  --surface:       #F1F5F9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

/* ── Annotation Callouts ── */
.annotation {
  background: var(--cloud);
  border-left: 4px solid var(--navy-light);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.5;
  border-radius: 0 0.375rem 0.375rem 0;
}
.annotation strong { color: var(--navy); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.site-header .inner {
  max-width: 1440px; margin: 0 auto; padding: 0 2rem;
  height: 5.75rem; display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; }
.site-logo svg { height: 4.25rem; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { font-size: 0.875rem; color: var(--text-heading); transition: color 0.2s; font-weight: 500; }
.site-nav a:hover { color: var(--navy-light); }
.lang-toggle {
  font-size: 0.8rem; font-weight: 500; border-radius: 9999px;
  padding: 0.375rem 0.75rem; letter-spacing: 0.05em; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem;
  padding: 0.75rem 1.5rem; cursor: pointer; border: none;
  transition: transform 0.2s, filter 0.2s; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
/* Primary button on light backgrounds: solid Deep Navy */
.btn-navy { background-color: var(--navy); color: #fff; }
.btn-navy:hover { filter: brightness(1.2); }
/* Primary button on dark navy sections: reversed (white on Deep Navy) */
.btn-white { background-color: #fff; color: var(--navy); }
.btn-white:hover { background-color: var(--cloud); }
.btn-outline-white {
  background: transparent; border: 2px solid rgba(255,255,255,0.7); color: #fff;
}
.btn-outline-white:hover { border-color: #fff; color: #fff; }

/* ── SECTION 1: Hero ── */
.hero {
  position: relative; min-height: 75vh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--navy);
}
/* D19 (2026-08-11): flat Deep Navy hero with the Blueprint motif as the single
   background layer; dot-grid, radial glow, and overlay gradient layers removed.
   Motif anchored right center. Below 500px viewport width the layer drops to
   opacity 0.55 so the mark sits as a faint drafting texture behind the text. */
.hero-motif {
  position: absolute; inset: 0;
  background-image: url('../../hero/Hero_Blueprint.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}
@media (max-width: 500px) {
  .hero-motif { opacity: 0.55; }
}
.hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 9rem 2rem 5rem;
}
.hero-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--cloud); font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 72px); font-weight: 600; color: #fff;
  line-height: 1.08; margin-bottom: 1.5rem; max-width: 50rem;
}
.hero-desc {
  font-size: 1.125rem; color: rgba(241,245,249,0.85);
  margin-bottom: 2.5rem; line-height: 1.7; max-width: 32rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SECTION 2: Static Value Props ── */
.value-props {
  background: var(--surface);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .value-props-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .value-props-grid { grid-template-columns: 1fr; }
}
.value-prop-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.value-prop-icon {
  width: 3.5rem; height: 3.5rem;
  margin: 0 auto 1rem;
  background: var(--navy);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.9rem;
}
.value-prop-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.value-prop-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SECTION 3: Featured Categories ── */
/* V2 approved (section rhythm): featured categories on Cloud background */
.featured-cats {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--navy-light); font-weight: 600; margin-bottom: 0.75rem;
  text-align: center;
}
.section-title {
  font-size: 2rem; font-weight: 700; color: var(--text-heading);
  text-align: center; margin-bottom: 3rem;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .cats-grid { grid-template-columns: 1fr; }
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.cat-card-img {
  height: 160px;
  background: var(--cloud);
  display: flex; align-items: center; justify-content: center;
}
.cat-card-body { padding: 1.25rem; }
.cat-card-body h3 {
  font-size: 0.9375rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.25rem;
}
.cat-card-body .tier {
  font-size: 0.6875rem; color: var(--navy-light); font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
}
.view-all-link {
  text-align: center;
  margin-top: 1.5rem;
}
.view-all-link a {
  font-size: 0.875rem; font-weight: 600; color: var(--navy-light);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.view-all-link a:hover { border-bottom-color: var(--navy-light); }

/* ── SECTION 4: CTA Block ── */
.cta-block {
  position: relative;
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../../hero/CTA_Hero_Blueprint_1200x300_opacity005.svg');
  background-size: cover; background-position: center;
}
.cta-block .container { position: relative; z-index: 1; }
.cta-block h2 {
  font-size: 1.75rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem;
}
.cta-block p {
  font-size: 1rem; color: rgba(241,245,249,0.7); margin-bottom: 2rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy); color: rgba(241,245,249,0.55);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(241,245,249,0.12);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: start;
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand { max-width: 280px; }
.footer-brand h4 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.75rem; line-height: 1.6; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-nav-col h5 {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(241,245,249,0.4); margin-bottom: 0.75rem; font-weight: 600;
}
.footer-nav-col a { display: block; font-size: 0.8125rem; color: rgba(241,245,249,0.65); margin-bottom: 0.5rem; }
.footer-nav-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(241,245,249,0.1);
  font-size: 0.6875rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ── Major Roadmap (items 8, 10, 11, 15) ── */

/* Item 10: visually-hidden utility for semantic-only headings */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Item 15: visible focus ring across interactive elements (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.cat-card:focus-visible,
.product-card:focus-visible,
.form-tab:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--navy-light);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Focus ring on dark navy sections needs a light color to stay visible */
.hero a:focus-visible,
.cta-block a:focus-visible,
.office-card a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--cloud);
}

/* Item 11: hamburger nav toggle */
.nav-toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 2px; background: var(--text-heading); }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--text-heading);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

@media (max-width: 900px) {
  .site-header .inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 2rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: 0; }
}

/* Item 12: homepage social proof (sector chips) */
.trusted-by {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trusted-eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--text-muted); font-weight: 600;
  text-align: center; margin-bottom: 1rem;
}
.trusted-chips {
  display: flex; flex-wrap: wrap; gap: 0.625rem;
  justify-content: center; list-style: none; padding: 0; margin: 0;
}
.trusted-chips li {
  font-size: 0.8125rem; color: var(--text-body);
  padding: 0.5rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 9999px;
  font-weight: 500;
}

/* V2 approved: shared centered section description */
.section-desc { font-size: 0.95rem; color: var(--text-muted); text-align: center; max-width: 38rem; margin: 0 auto 3rem; line-height: 1.7; }

/* V2 approved: Browse by application */
.applications { padding: 5rem 0; background: #fff; }
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .apps-grid { grid-template-columns: 1fr; } }
.app-card { border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.75rem 1.5rem; transition: transform 0.2s, box-shadow 0.2s; background: #fff; display: block; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.app-icon { width: 3.25rem; height: 3.25rem; background: var(--navy); color: #fff; border-radius: 0.625rem; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 1rem; }
.app-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.5rem; }
.app-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.9rem; }
.app-card .app-link { font-size: 0.8rem; font-weight: 600; color: var(--navy-light); }

/* V2 approved: One office. Global service. */
.office-block { padding: 4rem 0; background: #fff; }
.office-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 2.75rem; align-items: stretch; max-width: 1240px; margin: 0 auto; }
@media (max-width: 900px) { .office-grid { grid-template-columns: 1fr; } }
.office-card { background: var(--navy); color: #fff; border-radius: 0.75rem; padding: 2.25rem; height: 100%; }
.office-card .eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2.5px; color: rgba(241,245,249,0.6); font-weight: 600; margin-bottom: 1rem; }
.office-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.office-card dl { font-size: 0.85rem; line-height: 1.8; }
.office-card dt { color: rgba(241,245,249,0.55); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.9rem; }
.office-card dd { color: rgba(241,245,249,0.95); }
.office-card a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); }
.regions h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-heading); margin-bottom: 0.75rem; }
.regions > p { font-size: 0.9rem; line-height: 1.7; color: var(--text-body); margin-bottom: 0.9rem; }
.region-rows { border-top: 1px solid var(--border); }
.region-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.region-row .r-name { font-size: 0.9rem; font-weight: 600; color: var(--text-heading); }
.region-row .r-note { font-size: 0.78rem; color: var(--text-muted); text-align: right; }



/* ── 客戶要求：含台北 101 的圖片不得裁切（2026-09-08）──
   101 為縱向主體、佔畫面 57%~94% 高度，短版面用 cover 必切。
   改為依高度縮放（auto 100%）＋不重複，寬版面即可完整呈現。 */
.cta-block::before, .supplier-cta::before {
  background-color: #0A1628 !important;
  background-image: linear-gradient(90deg, rgba(10,22,40,.30) 0%, rgba(10,22,40,.55) 32%, rgba(10,22,40,.80) 58%, rgba(10,22,40,.88) 100%),
                    url('../../photos/taipei-night-wide.jpg') !important;
  background-size: 100% 100%, cover !important;
  background-position: center, 6% center !important;
  background-repeat: no-repeat, no-repeat !important;
}
.page-hero.hero-whole::before {
  background-color: #0A1628;
  background-image: linear-gradient(90deg, rgba(5,13,26,.94) 0%, rgba(10,22,40,.70) 40%, rgba(10,22,40,.22) 68%, rgba(10,22,40,.45) 100%),
                    var(--hero-photo);
  background-size: 100% 100%, cover;
  background-position: center, 42% center;
  background-repeat: no-repeat, no-repeat;
}

/* ── 客戶要求：重新校正裁切對焦點，避免人像被截（2026-09-08）── */
.page-hero[style*='iStock-2211208040']::before { background-position: center, center 40%; }
.photo-band[style*='iStock-2211208040'] { background-position: center 40%; }
.page-hero[style*='iStock-1363604950']::before { background-position: center, center 30%; }
.photo-band[style*='iStock-1363604950'] { background-position: center 30%; }
.page-hero[style*='iStock-2243912827']::before { background-position: center, center 35%; }
.photo-band[style*='iStock-2243912827'] { background-position: center 35%; }
.page-hero[style*='hero-suppliers']::before { background-position: center, center 22%; }
.photo-band[style*='hero-suppliers'] { background-position: center 8%; }
.page-hero[style*='semiconductor-wafer']::before { background-position: center, center 45%; }
.photo-band[style*='semiconductor-wafer'] { background-position: center 45%; }
.page-hero[style*='pcb-circuit-macro']::before { background-position: center, center; }
.photo-band[style*='pcb-circuit-macro'] { background-position: center; }
.page-hero[style*='pcb-navy-gold']::before { background-position: center, center; }
.photo-band[style*='pcb-navy-gold'] { background-position: center; }

/* ── 手機版：文字滿寬，水平漸層擋不住 → 改用垂直遮罩（2026-09-12）── */
@media (max-width: 900px) {
  .page-hero::before {
    background-image: linear-gradient(180deg, rgba(5,13,26,.70) 0%, rgba(10,22,40,.80) 45%, rgba(10,22,40,.92) 100%),
                      var(--hero-photo);
    background-size: 100% 100%, cover;
    background-position: center, center;
  }
  .page-hero.hero-whole::before {
    background-image: linear-gradient(180deg, rgba(5,13,26,.68) 0%, rgba(10,22,40,.78) 45%, rgba(10,22,40,.90) 100%),
                      var(--hero-photo);
    background-size: 100% 100%, cover;
    background-position: center, 42% center;
  }
  .cta-block::before, .supplier-cta::before {
    background-image: linear-gradient(180deg, rgba(10,22,40,.62) 0%, rgba(10,22,40,.86) 100%),
                      url('../../photos/taipei-night-wide.jpg') !important;
    background-size: 100% 100%, cover !important;
    background-position: center, 6% center !important;
  }
}

/* ── 客戶要求：服務區域 3D 地球（2026-09-12）── */
/* 這一段標題與內文靠得更近，讓整段能在一個畫面內讀完 */
.office-block .section-title { margin-bottom: 0.85rem; }
.office-block .section-desc { margin-bottom: 2rem; }

/* 地球與說明並排，避免右欄被撐到左卡的兩倍高 */
.globe-wrap { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 1.5rem; align-items: center; margin: 1.1rem 0 1.35rem; }
.globe-stage { position: relative; width: 100%; max-width: 19rem;
  margin: 0; display: flex; justify-content: center; }
.globe-canvas { display: block; cursor: grab; touch-action: pan-y;
  filter: drop-shadow(0 18px 34px rgba(17,31,56,0.22)); }
.globe-canvas.is-dragging { cursor: grabbing; }
.globe-hint { position: absolute; left: 50%; bottom: -0.25rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6875rem; color: var(--text-muted); letter-spacing: 0.04em; white-space: nowrap; }
.gh-dot { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--navy-light); opacity: 0.6; }
.globe-stage.globe-failed .globe-canvas { display: none; }

.globe-readout { background: var(--navy); color: #fff; border-radius: 0.75rem; padding: 1.1rem 1.2rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.globe-readout.is-on { opacity: 1; transform: none; }
.gr-eyebrow { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(241,245,249,0.55); font-weight: 600; margin-bottom: 0.4rem; }
.gr-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.gr-note { font-size: 0.78rem; line-height: 1.6; color: rgba(241,245,249,0.78); }
.gr-times { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.9rem;
  padding-top: 0.8rem; border-top: 1px solid rgba(241,245,249,0.16); }
.gr-sep { width: 1px; height: 1.6rem; background: rgba(241,245,249,0.16); }
.gr-clock { display: block; font-size: 1.05rem; font-weight: 700; color: #d4b866;
  font-variant-numeric: tabular-nums; line-height: 1.15; }
.gr-lbl { font-size: 0.625rem; color: rgba(241,245,249,0.55); letter-spacing: 0.04em; }

.region-rows { display: flex; flex-direction: column; }
button.region-row { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.65rem; border-radius: 0.45rem;
  border-bottom: 1px solid var(--border); font: inherit;
  transition: background .18s ease, box-shadow .18s ease; }
button.region-row:last-child { border-bottom: 0; }
button.region-row:hover { background: var(--surface); }
button.region-row.is-active { background: var(--surface); box-shadow: inset 3px 0 0 #d4b866; }
button.region-row:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 1100px) {
  .globe-wrap { grid-template-columns: 1fr; justify-items: center; gap: 1.25rem; }
  .globe-stage { max-width: 20rem; }
  .globe-readout { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .globe-readout { transition: none; }
}
/* 手機：垂直留給頁面捲動，水平才轉地球，避免手指壓在地球上滑不動 */
@media (pointer: coarse) {
  .globe-canvas { touch-action: pan-y; }
  .globe-hint { position: static; transform: none; margin-top: 0.6rem; justify-content: center; }
  .globe-stage { flex-direction: column; align-items: center; }
}

/* ── 客戶要求：nav bar logo 放大（2026-09-12）── */
@media (max-width: 700px) {
  .site-header .inner { height: 4.9rem; }
  .site-logo svg { height: 3.4rem; }
}

/* ── 客戶要求：首頁 Blueprint 線條繪製動畫（2026-09-12）
   改為 inline SVG 才能用 stroke-dashoffset 做描繪；
   pathLength="1" 讓每條線不論實際長度都用同一組 dash 值。 ── */
.hero-motif { background-image: none; }
.hero-motif .bp { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-motif .bp line,
.hero-motif .bp path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: bpDraw 1.05s cubic-bezier(.65,0,.35,1) forwards;
}
/* 標註線先畫（製圖師先打輔助線），依序錯開 */
.hero-motif .bp line:nth-of-type(1)  { animation-delay: .10s }
.hero-motif .bp line:nth-of-type(2)  { animation-delay: .16s }
.hero-motif .bp line:nth-of-type(3)  { animation-delay: .22s }
.hero-motif .bp line:nth-of-type(4)  { animation-delay: .28s }
.hero-motif .bp line:nth-of-type(5)  { animation-delay: .34s }
.hero-motif .bp line:nth-of-type(6)  { animation-delay: .40s }
.hero-motif .bp line:nth-of-type(7)  { animation-delay: .46s }
.hero-motif .bp line:nth-of-type(8)  { animation-delay: .52s }
.hero-motif .bp line:nth-of-type(n+9) { animation-delay: .58s }
/* 橋形主體最後畫，時間拉長，成為視線落點 */
.hero-motif .bp g[data-bp="mark"] path {
  animation-duration: 2.4s; animation-delay: .75s;
}
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-motif .bp line, .hero-motif .bp path {
    animation: none; stroke-dashoffset: 0;
  }
}

/* ── 客戶決定：目前只呈現地球，不標示服務區域（2026-09-13）
   說明框與區域列移除，地球置中並放大以撐住右欄 ── */
.globe-wrap { display: flex; justify-content: center; align-items: center;
  grid-template-columns: none; margin: 1.5rem 0 0.5rem; }
.globe-stage { max-width: 27.5rem; flex-direction: column; align-items: center; }
.globe-hint { position: static; transform: none; margin-top: 0.85rem; }
@media (max-width: 1100px) { .globe-stage { max-width: 22rem; } }

/* ── 客戶要求：首頁 hero 加背景照片，Blueprint logo 動畫疊在上面（2026-09-13）
   照片用 CSS 變數，換圖只改一行。目前為暫代圖。 ── */
.hero { --home-hero-photo: url('../../photos/hero-probe-station.jpg'); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(17,30,52,.95) 0%, rgba(26,43,69,.84) 44%, rgba(26,43,69,.64) 100%),
    var(--home-hero-photo);
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero-motif { z-index: 1; }
.hero > .container, .hero .hero-content { position: relative; z-index: 2; }
/* 照片墊底後原本 6~10% 透明度的線稿會被吃掉，拉高才看得到 logo 動畫 */
.hero-motif .bp g { stroke-opacity: .22; }
.hero-motif .bp g[data-bp="mark"] { stroke-opacity: .55; stroke-width: 1.1; }
@media (max-width: 900px) {
  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(17,30,52,.80) 0%, rgba(26,43,69,.88) 50%, rgba(17,30,52,.95) 100%),
      var(--home-hero-photo);
  }
}

/* ── 手機版排版優化與錯誤修正（2026-09-13）── */
/* 格線／flex 子項預設 min-width:auto，會被 canvas、長 email 等內容撐破版面 */
.office-grid > *, .globe-wrap, .globe-stage, .verify-merged > *, .stats-banner > *,
.form-tabs > *, .contact-forms, .form-row > * { min-width: 0; }
.globe-canvas { max-width: 100%; }

@media (max-width: 900px) {
  /* header 是獨立 sticky 列，內頁主視覺不需要 7rem 上留白 */
  .page-hero { padding-top: 4.5rem; }
  .page-hero:not(.hero-whole) { padding-bottom: 3rem; }

  /* Why Taiwan：數據卡改 2×2，主視覺高度大幅縮短；觸控沒有 hover，隱藏成長圖 */
  .hero-stats .stats-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .page-hero .stat-card { padding: 1rem 0.9rem; }
  .page-hero .stat-card .stat-value { font-size: 1.3rem; }
  .page-hero .stat-card .stat-label { font-size: 0.8125rem; }
  .page-hero .stat-card .stat-chart { display: none; }

  /* 公司資料：窄螢幕改上下排，長 email 可斷行 */
  .vm-facts dl.company-details, .vm-facts dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .company-details dt, .vm-facts dt { white-space: normal; margin-top: 0.6rem; }
  .vm-facts dd, .office-card dd { overflow-wrap: anywhere; }

  /* 聯絡表單分頁：三等分、允許換行 */
  .form-tab { flex: 1 1 0; padding: 0.8rem 0.35rem; font-size: 0.8125rem; line-height: 1.35;
    text-align: center; white-space: normal; min-height: 3rem; }

  /* iOS Safari：輸入框小於 16px 會在點擊時自動放大畫面 */
  .form-group input, .form-group select, .form-group textarea, input[type="file"] { font-size: 16px; }

  /* 觸控目標至少 44px */
  .lang-toggle { min-height: 2.75rem; padding: 0.55rem 0.9rem; }
  .service-card details.includes summary, .product-card details.includes summary,
  .detail-card details.includes summary, .value-details summary { min-height: 2.75rem; }
  .verify-card .btn { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .glyph-replay { min-height: 2.25rem; padding: 0.35rem 0.75rem 0.35rem 0.6rem; font-size: 0.75rem; }
  .office-card { padding: 1.5rem; }

  /* 小字下限 12px */
  .cat-card-body .tier, .product-card-body .tier, .detail-card-body .tier,
  .office-card .eyebrow, .office-card dt, .globe-hint, .footer-nav-col h5,
  .cert-badge .cert-desc, .page-hero .stat-card .stat-source, .service-card .service-number,
  .service-card details.includes summary, .product-card details.includes summary,
  .glyph-gloss { font-size: 0.75rem; }
}

/* ── 手機修正 第二批（2026-09-13）── */
/* 上傳框的「視覺隱藏」被 .form-group input { width:100% } 用較高權重蓋掉，外層又沒有定位基準 → 偏移撐破版面 */
.file-upload { position: relative; }
.form-group .file-upload-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .footer-bottom { font-size: 0.75rem; }
  .checkbox-group { align-items: flex-start; gap: 0.7rem; }
  .checkbox-group input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.1rem; }
  .checkbox-group label { font-size: 0.8125rem; padding: 0.15rem 0; }
  .form-group input[type="file"]:not(.file-upload-input) { min-height: 2.75rem; }
}
@media (max-width: 500px) {
  /* 首頁主視覺：9rem 上留白與 36px 標題在手機上把首屏撐到 600~720px */
  .hero-content { padding: 5.25rem 1.25rem 3.25rem; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 36px); margin-bottom: 1.1rem; }
}

/* ── 客戶決定：首頁 banner 改用探針台照片；手機版不顯示 logo 線稿（2026-09-14）
   手機上標題滿版，線稿會直接壓在文字上；晶片在照片右側約 70% 處，對焦過去 ── */
@media (max-width: 900px) {
  .hero-motif { display: none; }
  .hero::before { background-position: center, 78% 35%; }
}
