/* ==========================================================================
   SOLUTION ENGINEERING — website (static, no framework)
   Brand: orange-red #E8491D, charcoal/navy, white. System fonts only.
   ========================================================================== */

:root {
  --brand: #E8491D;
  --brand-strong: #C93C13;   /* accessible text/link shade */
  --brand-dark: #A9310E;
  --brand-tint: #FDEEE8;
  --navy: #132030;
  --navy-2: #1C2C3F;
  --navy-3: #26394F;
  --ink: #1D2630;
  --muted: #5A6674;
  --line: #E1E5EA;
  --bg-soft: #F4F6F8;
  --white: #FFFFFF;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(19,32,48,.06), 0 6px 20px rgba(19,32,48,.07);
  --shadow-lg: 0 10px 34px rgba(19,32,48,.14);
  --container: 1200px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC",
          "Heiti TC", sans-serif;
}

/* ---------- Language switching (data-lang pairs) ---------- */
html[lang="en"] [data-lang="zh"],
html:not([lang="en"]) [data-lang="en"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #D6DEE8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 10px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #FF8A63; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section--dark .section-head p { color: #AEBBCB; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand-strong); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(19,32,48,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 15.5px;
  border-radius: var(--radius-sm); text-decoration: none !important;
}
.nav-link:hover { color: var(--brand-strong); background: var(--bg-soft); }
.nav-link[aria-current="page"], .nav-list > li.is-active > .nav-item-row > .nav-link { color: var(--brand-strong); }
.nav-item-row { display: flex; align-items: center; }
.submenu-toggle {
  border: 0; background: transparent; padding: 10px 6px; margin-left: -10px; cursor: pointer; color: var(--muted);
  border-radius: var(--radius-sm); display: flex; align-items: center;
}
.submenu-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.submenu {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-submenu.is-open .submenu-toggle svg { transform: rotate(180deg); }
.submenu a { display: block; padding: 10px 12px; color: var(--ink); border-radius: var(--radius-sm); font-size: 15px; text-decoration: none; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.submenu small { display: block; color: var(--muted); font-size: 12.5px; }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-toggle button {
  border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  color: var(--muted); cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang-toggle .sep { color: var(--line); font-size: 12px; }
.nav-burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform .2s, background .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.nav-open .nav-burger span { background: transparent; }
.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-cta-mobile { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #D6DEE8;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(232,73,29,.20), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(38,57,79,.9), transparent 70%),
    linear-gradient(135deg, #0F1A27 0%, #16263A 55%, #1C2F46 100%);
}
.hero::before { /* subtle engineering grid */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 96px 24px 104px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.2; margin-bottom: 20px; }
html[lang="en"] .hero h1 { font-size: clamp(30px, 4vw, 50px); }
.hero .lead { font-size: 18.5px; color: #C3CEDB; max-width: 600px; margin-bottom: 32px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: #9FB0C3; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: #FF8A63; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #C3CEDB; overflow: hidden;
  background: radial-gradient(700px 300px at 90% 0%, rgba(232,73,29,.22), transparent 60%), linear-gradient(135deg, #0F1A27, #1C2F46);
}
.page-hero .container { position: relative; padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.page-hero p { max-width: 760px; font-size: 17.5px; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin-bottom: 18px; color: #93A4B8; }
.breadcrumb a { color: #C3CEDB; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #5E7089; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { font-size: 20px; margin-bottom: 4px; }
.card .card-sub { font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card--link { transition: transform .15s, box-shadow .15s, border-color .15s; color: inherit; text-decoration: none !important; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #F3B9A6; }
.card .more { margin-top: auto; font-weight: 700; color: var(--brand-strong); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 16px; height: 16px; transition: transform .15s; }
.card--link:hover .more svg { transform: translateX(3px); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex: none;
}
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy-2); color: #E6ECF3; border-top: 3px solid var(--brand); }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-list li { display: flex; align-items: center; gap: 14px; padding: 26px 20px; font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.trust-list li + li { border-left: 1px solid rgba(255,255,255,.1); }
.trust-list svg { width: 30px; height: 30px; color: #FF8A63; flex: none; }
.trust-list strong { display: block; font-size: 19px; color: #fff; }

/* ---------- Industries ---------- */
.industry-grid { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.industry-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 10px; text-align: center;
  font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.35;
}
.industry-grid svg { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--brand-strong); }

/* ---------- Why us ---------- */
.why-item { display: flex; gap: 18px; }
.why-num { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand-strong); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.why-item h3 { font-size: 19px; margin-bottom: 6px; }
.why-item p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Process strip ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.process li { position: relative; text-align: center; padding: 0 10px; }
.process li::after { /* connector */
  content: ""; position: absolute; top: 34px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px;
  background: repeating-linear-gradient(90deg, #FF8A63 0 8px, transparent 8px 14px);
}
.process li:last-child::after { display: none; }
.process .step-icon {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy-3); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,138,99,.7);
}
.process .step-icon svg { width: 30px; height: 30px; }
.process .step-no { display: block; font-size: 12px; letter-spacing: .14em; color: #FF8A63; font-weight: 700; }
.process h3 { font-size: 18px; margin: 2px 0 4px; }
.process p { font-size: 14px; color: #AEBBCB; margin: 0; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }
.placeholder {
  border: 2px dashed #B9C2CC; background: repeating-linear-gradient(45deg, #EEF1F4 0 14px, #E7EBEF 14px 28px);
  border-radius: var(--radius); min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #5A6674; font-weight: 700; text-align: center; padding: 20px; gap: 8px;
}
.placeholder svg { width: 44px; height: 44px; color: #8A96A3; }
.placeholder small { font-weight: 500; font-size: 13px; }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23C93C13' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check-list--2col { grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.check-list small { display: block; color: var(--muted); font-size: 13.5px; }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 600; color: var(--navy); }

/* ---------- Pain point callout ---------- */
.callout { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h2 { font-size: 20px; margin-bottom: 8px; }
.callout p { margin: 0; color: #4A3A34; }

/* ---------- Partners ---------- */
.partner-card { border-top: 4px solid var(--brand); }
.partner-card.is-secondary { border-top-color: var(--navy-3); }
.partner-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); margin-bottom: 14px; }
.partner-card.is-secondary .tag { background: #E6ECF3; color: var(--navy-3); }
.note { font-size: 13.5px; color: var(--muted); }

/* ---------- Mission ---------- */
.mission-grid .card { text-align: left; }
.mission-grid .card h3 { font-size: 18px; }

/* ---------- Entities ---------- */
.entity-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.entity-card dt { color: var(--muted); font-weight: 600; }
.entity-card dd { margin: 0; }

/* ---------- SLA highlight ---------- */
.sla-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sla { background: var(--navy); color: #C3CEDB; border-radius: var(--radius); padding: 28px; }
.sla strong { display: block; color: #fff; font-size: 26px; margin-bottom: 6px; line-height: 1.25; }
.sla svg { width: 30px; height: 30px; color: #FF8A63; margin-bottom: 14px; }

/* ---------- Deliverables ---------- */
.deliv-group h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.deliv-group h3 svg { width: 22px; height: 22px; color: var(--brand-strong); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #C3CEDB; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(232,73,29,.35), transparent 65%); }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 64px 24px; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); }
.cta-contacts { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.cta-contacts a { color: #fff; font-weight: 600; }
.cta-contacts li { display: flex; gap: 12px; align-items: center; }
.cta-contacts svg { width: 20px; height: 20px; color: #FF8A63; flex: none; }
.cta-contacts .val { color: #fff; font-weight: 600; }
.cta-contacts .lbl { color: #93A4B8; min-width: 88px; font-size: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list .lbl { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list .val { font-weight: 600; color: var(--navy); font-size: 16.5px; }
.contact-person { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--bg-soft); border-radius: var(--radius); margin-bottom: 18px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.contact-person strong { display: block; font-size: 18px; color: var(--navy); }
.contact-person span { color: var(--muted); font-size: 14.5px; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--brand-strong); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #C9D0D8; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,73,29,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C62828; }
.field .err { display: none; color: #C62828; font-size: 13px; margin-top: 4px; }
.field.is-invalid .err { display: block; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.form-status { font-size: 14.5px; color: #1B6E3A; font-weight: 600; min-height: 1.2em; margin: 0; }

.map-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 8px; }
.map-link svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0D1621; color: #93A4B8; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 24px 36px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #C3CEDB; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand .co { color: #E6ECF3; font-weight: 700; font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }


/* ---------- Photos (v0.2) ---------- */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #E7EBEF; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo--portrait { max-width: 440px; width: 100%; justify-self: center; margin-left: auto; margin-right: auto; }
.photo--portrait img { aspect-ratio: 4 / 5; }

/* ---------- Job references (v0.2) ---------- */
.case-grid { align-items: stretch; }
.case-card { padding: 0; overflow: hidden; }
.case-photo { background: #E7EBEF; }
.case-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.case-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 600; color: var(--brand-dark); margin-bottom: 10px; }
.case-meta span { display: inline-flex; align-items: center; gap: 6px; }
.case-meta svg { width: 17px; height: 17px; flex: none; }
.case-meta .case-year { color: var(--muted); }
.case-card h3 { font-size: 19px; margin-bottom: 8px; }
.case-card p { font-size: 15px; margin-bottom: 14px; }
.case-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case-tags li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; color: var(--navy-3); }
.case-card .case-role { margin: auto 0 0; font-size: 13px; color: var(--muted); }


/* ---------- APC tools (v0.2) ---------- */
.tool-search { max-width: 420px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.is-placeholder, .is-tbc { color: #7A5E12; font-style: italic; }
.data-table tr.is-placeholder td { background: #FFF9E8; }
.step-list { list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 820px; padding: 0; margin: 0; }
.step-list li { counter-increment: s; position: relative; padding: 14px 18px 14px 60px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-list li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-strong); color: #fff; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; }
.notice-list { list-style: none; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 900px; }
.notice-list li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-date { font-weight: 600; font-size: 14px; }
.tool-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.tools-card { flex-direction: row; align-items: center; gap: 22px; }
.tools-card .icon-badge { margin: 0; }
.tools-card .more { margin: 0 0 0 auto; white-space: nowrap; }
@media (max-width: 640px) {
  .tools-card { flex-direction: column; align-items: flex-start; }
  .tools-card .more { margin: 0; }
  .notice-list li { grid-template-columns: 1fr; gap: 4px; }
}


/* ---------- APC tools content (v0.2 data) ---------- */
.section--tight { padding-top: 48px; }
.tool-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-top: 22px; padding-bottom: 0; font-weight: 700; font-size: 15px; }
.tool-toc .note { margin-left: auto; font-weight: 500; }
.kb-list { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-bottom: 26px; font-size: 15px; color: var(--ink); max-width: 980px; }
.kb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.kb-card h3 { font-size: 20px; }
.kb-card h4, .kb-block h4 { font-size: 16.5px; margin: 16px 0 8px; }
.kb-card ul, .kb-card ol, .kb-block ul, .kb-block ol { padding-left: 22px; display: grid; gap: 6px; font-size: 15.5px; }
.kb-card li ul, .kb-card li ol, .kb-block li ul, .kb-block li ol { margin-top: 6px; }
.kb-card .step-list { padding-left: 0; }
.kb-src { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.kb-src a, .data-table td.src a, .src-inline a { font-weight: 600; }
.src-inline { font-size: 13px; }
.kb-unofficial { margin-top: 18px; border: 2px dashed #D9B45C; background: #FFFBEF; border-radius: var(--radius); padding: 4px 20px 16px; }
.kb-unofficial h4 { color: #7A5E12; }
.confirm-note { display: inline-block; font-size: 12px; font-weight: 700; font-style: normal; color: #7A5E12; background: #FFF4D6; border: 1px solid #F1DDA0; border-radius: 999px; padding: 1px 8px; line-height: 1.5; white-space: nowrap; }
.rbc-table { min-width: 980px; font-size: 14.5px; }
.rbc-table th[scope="row"] { font-weight: 700; color: var(--navy); white-space: normal; min-width: 150px; }
.rbc-table td, .rbc-table th { padding: 10px 14px; }
.rbc-table .grp-head th { background: var(--bg-soft); color: var(--navy-3); font-size: 14px; letter-spacing: .02em; border-top: 2px solid var(--line); }
.rbc-table .grp-note td { background: #FFFBEF; font-size: 13.5px; color: var(--muted); }
.rbc-table .grp-note ul { padding-left: 18px; display: grid; gap: 4px; }
.rbc-table small.aka, .rbc-table small.row-note { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.data-table td.src { font-size: 13px; min-width: 120px; }
.tag-hot { color: #1B6E3A; font-weight: 700; }
.tag-no { color: #A9310E; font-weight: 700; }
.enquire-link { font-weight: 700; white-space: nowrap; }
/* RBC suggested prices (v0.2 price list) */
.rbc-table strong.price { color: var(--navy); white-space: nowrap; font-size: 15px; }
.rbc-table tr.row > td:nth-child(5) { min-width: 210px; }
.rbc-table small.price-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.rbc-table .src-pricelist { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.price-valid { margin: 6px 0 14px; font-size: 14.5px; color: var(--navy-3); }
.filter-count { margin: 6px 0 0; }
.hot-table { min-width: 720px; }
.kb-details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; box-shadow: var(--shadow); }
.kb-details > summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 18px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.kb-details > summary::-webkit-details-marker { display: none; }
.kb-details > summary::after { content: "+"; font-size: 24px; color: var(--brand-strong); line-height: 1; }
.kb-details[open] > summary::after { content: "−"; }
.kb-body { padding: 0 22px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.kb-block { border-top: 1px solid var(--line); padding-top: 4px; padding-bottom: 12px; }
.notice-group { margin-bottom: 28px; }
.notice-h { font-size: 19px; margin-bottom: 6px; }
.notice-list li { align-items: start; }
.notice-body p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.notice-title { color: var(--navy); }
.source-foot { margin-top: 22px; }
@media (max-width: 980px) {
  .kb-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kb-card { padding: 20px 18px; }
  .tool-toc .note { margin-left: 0; width: 100%; }
  /* RBC table -> stacked cards on phones */
  .table-wrap:has(.rbc-table) { border: 0; background: transparent; overflow: visible; }
  .rbc-table { min-width: 0; }
  .rbc-table thead { display: none; }
  .rbc-table, .rbc-table tbody, .rbc-table tr, .rbc-table th, .rbc-table td { display: block; width: 100%; }
  .rbc-table tbody[hidden], .rbc-table tr[hidden] { display: none; }
  .rbc-table .grp-head th { border-radius: var(--radius) var(--radius) 0 0; margin-top: 18px; border: 1px solid var(--line); }
  .rbc-table tr.row { border: 1px solid var(--line); border-top: 0; background: #fff; padding: 8px 0; }
  .rbc-table tr.row th, .rbc-table tr.row td { border: 0; padding: 4px 14px; }
  .rbc-table tr.row > td:nth-child(5) { min-width: 0; }
  .rbc-table tr.row > *::before { content: attr(data-label-zh); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
  html[lang="en"] .rbc-table tr.row > *::before { content: attr(data-label-en); }
  .rbc-table .grp-note td { border: 1px solid var(--line); border-top: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 10px; font-size: 15px; }
  .header-tools .btn { display: none; }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .nav-burger { display: flex; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0; background: #fff; overflow-y: auto;
    padding: 12px 20px 32px; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden; border-top: 1px solid var(--line);
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { padding: 16px 4px; font-size: 17px; flex: 1; }
  .nav-item-row { justify-content: space-between; }
  .submenu-toggle { margin-left: 0; padding: 14px; }
  .submenu-toggle svg { width: 18px; height: 18px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; display: none; min-width: 0; }
  .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: none; }
  .has-submenu.is-open > .submenu { display: block; }
  .nav-cta-mobile { display: grid; gap: 10px; margin-top: 22px; }
  .header-tools { margin-left: auto; }
  .main-nav { margin-left: 0; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 72px; gap: 36px; }
  .hero-art { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .split, .contact-grid, .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .sla-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .process li { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; padding: 0; align-items: center; }
  .process .step-icon { margin: 0; grid-row: span 3; }
  .process li::after { left: 33px; right: auto; top: 72px; width: 2px; height: 18px; background: repeating-linear-gradient(180deg, #FF8A63 0 5px, transparent 5px 9px); }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 48px 18px 56px; }
  .hero .lead { font-size: 16.5px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-left: 0 !important; padding: 16px 4px; }
  .trust-list li + li { border-top: 1px solid rgba(255,255,255,.1); }
  .form-row { grid-template-columns: 1fr; }
  .check-list--2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 44px 18px 28px; }
  .cta-inner { padding: 48px 18px; }
  .lang-toggle button { padding: 5px 9px; }
  .brand img { height: 34px; }
  .card { padding: 22px; }
  .placeholder { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .cta-band, .nav-burger { display: none !important; }
}

/* ---------- v0.3: photo galleries and case filter chips ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #E7EBEF; }
.gallery-item figcaption { padding: 10px 14px 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.case-filter[hidden] { display: none; }
.chip { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #C9D0D8; border-radius: 999px; padding: 7px 14px; cursor: pointer; line-height: 1.3; min-height: 38px; }
.chip:hover { border-color: var(--brand); }
.chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-n { display: inline-block; min-width: 1.6em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(19, 32, 48, .08); font-size: 12.5px; text-align: center; }
.chip[aria-pressed="true"] .chip-n { background: rgba(255, 255, 255, .2); }
.case-count { margin: 0 0 18px; }
.case-grid .case-card[hidden] { display: none; }
@media (max-width: 980px) { .gallery, .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery, .gallery--4 { grid-template-columns: 1fr; gap: 14px; } .chip { font-size: 14px; padding: 6px 12px; } }

/* v0.3 fix: credit line on a case photo (official product illustration) */
.case-photo { position: relative; }
.photo-credit { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.88); color: #4a5568; font-size: 11px; line-height: 1.5; }

/* partner logos (distribution / telecom partner section only) */
.partner-logo { height: 72px; display: flex; align-items: center; margin-bottom: 16px; }
.partner-logo img { max-height: 52px; max-width: 190px; width: auto; height: auto; object-fit: contain; }
.partner-logo-grid .partner-card h3 { margin-bottom: 4px; }
@media (max-width: 1024px) { .partner-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .partner-logo-grid { grid-template-columns: 1fr; } }

/* channel partners (text-only tiles, order as instructed) */
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.channel-tile { background: #fff; border: 1px solid #dfe5ec; border-top: 3px solid var(--navy-3); border-radius: 10px; padding: 18px 16px; font-weight: 700; line-height: 1.4; display: flex; align-items: center; min-height: 84px; }
@media (max-width: 1024px) { .channel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .channel-list { grid-template-columns: 1fr; } }

/* APC per-model / RBC pages */
.model-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }
.model-link:hover { color: var(--brand-dark); }
.model-cta { margin-top: 28px; }
.related-models { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-models li a { display: inline-block; padding: 6px 12px; border: 1px solid #dfe5ec; border-radius: 999px; background: #fff; font-weight: 600; }
.related-models--list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-models--list li { background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; padding: 10px 14px; }
.related-models--list li a { border: 0; padding: 0; background: none; }
.related-models--list .aka { display: block; }
@media (max-width: 720px) { .related-models--list { grid-template-columns: 1fr; } }

/* channel partners: logo tiles (replaces the text-only tiles) */
.channel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.channel-card { padding: 18px 18px 16px; }
.channel-card .partner-logo { height: 76px; justify-content: center; margin-bottom: 12px; border-radius: 6px; }
.channel-card .partner-logo img { max-height: 56px; max-width: 100%; }
.channel-card .partner-logo--dark { background: #1f2d3d; padding: 8px 12px; }
.channel-card h3 { font-size: 15px; line-height: 1.35; margin: 0; }
@media (max-width: 1024px) { .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .channel-grid { grid-template-columns: 1fr; } }
