/* ============ Matrix Website · Design Tokens ============ */
:root {
  --brand: #0165ff;
  --brand-600: #0052d4;
  --brand-2: #00beff;
  --brand-soft: #e7f0ff;
  --accent: #ffc000;
  --ink: #0b1b33;
  --ink-2: #44546a;
  --ink-3: #7b8798;
  --line: #e3e8f0;
  --line-2: #eef2f8;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --bg-dark: #071529;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 27, 51, .06);
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, .14);
  --maxw: 1240px;
  --header-h: 76px;
  /* 品牌标志：logo.png 是「MATRIX 图形 + 矩阵智造」的上下组合（1329×422）
     英文站只保留上半部分的英文图形，下半部分中文用 object-fit 裁掉 */
  --logo-h: 34px;
  --logo-w: 107px;      /* 1329 / 422 × 34 */
  --logo-en-h: 21px;   /* 258 / 422 × 34 ≈ 20.8，英文图形的高度 */
  --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.site-header.solid { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

/* the brand mark is the full-colour logo, so the header is light on every page */
.site-header.on-dark { background: rgba(255, 255, 255, .88); border-bottom-color: rgba(11, 27, 51, .08); }
.site-header.on-dark.solid { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: var(--logo-h); width: auto; }

/* English site: keep only the English "MATRIX" mark, crop away the Chinese line.
   object-fit:cover + object-position:top shows the top 258/422 of the artwork. */
html[lang="en"] .brand img,
html[lang="en"] .footer-brand img {
  width: var(--logo-w);
  height: var(--logo-en-h);
  object-fit: cover;
  object-position: top;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 9px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.main-nav a.active { color: var(--brand); font-weight: 600; }
.site-header.on-dark .main-nav a { color: var(--ink-2); }
.site-header.on-dark .main-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.site-header.on-dark .main-nav a.active { color: var(--brand); }

/* the header CTA is a filled button — the nav colour rule above would
   otherwise render its label dark on the blue fill */
.site-header .main-nav a.btn,
.site-header .main-nav a.btn-primary { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
.site-header.on-dark .lang-switch { border-color: var(--line); color: var(--ink-2); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 0; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: .25s; }
.site-header.on-dark .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(1, 101, 255, .28); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 12px 26px rgba(1, 101, 255, .36); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ Sections ============ */
.section { padding: 58px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand-2); border-radius: 2px; }
.section-dark .eyebrow { color: var(--brand-2); }
.section-title { font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; }
.section-lead { font-size: 17px; color: var(--ink-2); max-width: 760px; }
.section-dark .section-lead { color: rgba(255, 255, 255, .74); }
.section-head { margin-bottom: 26px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Hero ============ */

/* Hero 高度由内容决定，不再硬撑 100vh —— 之前 align-items:center 会在上下各留出一大片空白。
   背景改用纯 CSS 渐变：原来的背景图是一张近乎空白的灰阶图，还被 93% 的深色遮罩盖住，
   既占 50 KB 又看不出内容。 */
.hero {
  position: relative; display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 44px; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 520px at 86% 8%, rgba(1, 101, 255, .34), transparent 62%),
    radial-gradient(700px 440px at 6% 92%, rgba(0, 190, 255, .16), transparent 60%),
    linear-gradient(152deg, #04203f 0%, #071b33 46%, #04122a 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(28px, 4.4vw, 54px); margin-bottom: 16px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero-sub { font-size: 17.5px; line-height: 1.7; color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; }
.video-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .16);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 10; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
  border: 0; background: rgba(1, 101, 255, .92); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s, background .25s;
}
.play-btn:hover { transform: scale(1.08); background: var(--brand); }
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.video-caption { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .68); text-align: center; }

/* ============ Industries ============ */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; min-height: 300px;
}
.ind-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ind-card.featured { grid-column: span 2; }
.ind-thumb { height: 162px; overflow: hidden; background: var(--brand-soft); }
.ind-card.featured .ind-thumb { height: 208px; }
.ind-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ind-card:hover .ind-thumb img { transform: scale(1.06); }
.ind-body { padding: 20px; }
.ind-body h3 { font-size: 19px; margin-bottom: 8px; }
.ind-body p { font-size: 14.5px; color: var(--ink-2); }

/* ============ Architecture ============ */
.arch-figure { margin: 44px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.arch-figure img { width: 100%; }

/* ============ CTA + Form ============ */
.cta-band { background: linear-gradient(120deg, #04203f 0%, #0a3a72 55%, #0165ff 100%); color: #fff; padding: 54px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-grid h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 14px; }
.cta-grid p { color: rgba(255, 255, 255, .8); margin-bottom: 20px; }

.inquiry-form { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1, 101, 255, .12); }
.field textarea { min-height: 108px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 14px; display: none; border-radius: var(--radius-sm); padding: 12px 14px; }
.form-msg.ok { display: block; background: #e8f7ee; color: #127a3d; }
.form-msg.err { display: block; background: #fdecec; color: #b3261e; }

/* ============ Footer ============ */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .7); padding: 52px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: var(--logo-h); width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; max-width: 340px; }
.footer-col h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--brand-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
/* 图标列固定宽度：✉(U+2709) / 💬(U+1F4AC) / 📍(U+1F4CD) 三个字形实际宽度不同，
   不固定列宽的话三行文字的左边缘会各差几像素（微信那条最明显）。
   同时去掉文字元素继承来的 5px 上下 padding，让三行的文字顶端也和图标对齐。 */
.footer-contact li > span:first-child { flex: 0 0 20px; width: 20px; font-size: 15px; line-height: 1.5; text-align: center; }
.footer-contact li > *:not(:first-child) { padding-top: 0; padding-bottom: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ============ Inner page hero ============ */
.page-hero { position: relative; padding: calc(var(--header-h) + 46px) 0 46px; background: linear-gradient(140deg, #04203f 0%, #0a3a72 60%, #0165ff 130%); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -30%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 190, 255, .3), transparent 62%); }
.page-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.page-hero h1 { font-size: clamp(27px, 3.6vw, 42px); margin-bottom: 12px; }
.page-hero p { font-size: 17.5px; color: rgba(255, 255, 255, .8); }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.breadcrumb a:hover { color: #fff; }

/* ============ Chips ============ */
.chip { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; }

/* ============ About ============ */
.mission-band { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 26px; }
.mission-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.mission-text { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 188px; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.team-card {
  padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: box-shadow .3s;
}
.team-card:hover { box-shadow: var(--shadow-sm); }
.team-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }

/* photo height locked to the height of the name + role text block */
.team-photo {
  width: 44px; height: 44px; min-height: 0; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-soft);
}
.team-photo-empty {
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
}
.team-id h3 { font-size: 17px; line-height: 1.35; }
.team-role { font-size: 13px; font-weight: 600; color: var(--brand); line-height: 1.4; }
.team-bio { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.join-band { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 32px; text-align: center; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; }
.info-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.info-item h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.info-item p { font-size: 16px; }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(4, 12, 26, .92); padding: 24px; }
.lightbox.open { display: grid; }
.lightbox-inner { position: relative; width: min(1100px, 100%); }
.lightbox-inner video { width: 100%; max-height: 82vh; background: #000; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 20px; line-height: 1; }

/* ============ Shared building blocks ============ */
.hero-core {
  position: relative; z-index: 2; margin-top: 26px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15.5px; font-weight: 600;
  letter-spacing: .02em; color: rgba(255, 255, 255, .82);
}
.section-action { margin-top: 26px; }
.section-action.center { text-align: center; }
.dual-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dual-cta.center { justify-content: center; }

.assess-entry { display: grid; grid-template-columns: 1.4fr .8fr; gap: 36px; align-items: center; }
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }

/* ============ Home · pain points ============ */
.pain-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pain-card {
  display: grid; grid-template-columns: 46px minmax(200px, 270px) 1fr; align-items: baseline;
  gap: 16px 20px; padding: 14px 22px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, background .3s;
}
.pain-card:hover { box-shadow: var(--shadow-sm); background: #fdfeff; }
.pain-num { font-size: 20px; font-weight: 800; color: var(--brand); line-height: 1.25; opacity: .5; }
.pain-card h3 { font-size: 17px; line-height: 1.45; }
.pain-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.pain-foot {
  margin-top: 20px; padding: 16px 24px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.pain-foot p { font-size: 16px; font-weight: 600; color: var(--ink); max-width: 660px; }

/* ============ Differentiation steps ============ */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.diff-card {
  padding: 22px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); transition: .3s;
}
.section-dark .diff-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.diff-num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--brand-2); margin-bottom: 8px; }
.diff-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.diff-card p { font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.section:not(.section-dark) .diff-card { background: #fff; border-color: var(--line); }
.section:not(.section-dark) .diff-card:hover { box-shadow: var(--shadow); }
.section:not(.section-dark) .diff-card h3 { color: var(--ink); }
.section:not(.section-dark) .diff-card p { color: var(--ink-2); }
.section:not(.section-dark) .diff-num { color: var(--brand); }

/* ============ Capability chips ============ */
.stack-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-chips .chip {
  font-size: 15px; padding: 12px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); font-weight: 600;
}

/* ============ Challenges — compact rows that fit one screen ============ */
.challenge-list { display: grid; gap: 8px; }
.challenge-card {
  display: grid; grid-template-columns: minmax(170px, 270px) 1fr 1fr;
  gap: 8px 24px; align-items: start; padding: 12px 20px;
  border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.challenge-card:hover { box-shadow: var(--shadow-sm); background: #fdfeff; }
.challenge-lead { display: grid; gap: 5px; }
.challenge-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.challenge-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px;
}
.challenge-num { font-size: 14px; font-weight: 800; color: #c9d3e2; }
.challenge-card h2 { font-size: 17px; line-height: 1.4; }
.challenge-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 3px;
}
.challenge-col + .challenge-col h4 { color: var(--brand); }
.challenge-col p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ============ Definition tables ============ */
.matrix-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; background: #fff; }
.def-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.def-table th {
  text-align: left; padding: 11px 20px; background: var(--bg-soft); font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.def-table td { padding: 13px 20px; border-top: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.def-table tbody tr:hover td { background: #fafcff; }
.def-table td:first-child + td { font-weight: 700; color: var(--ink); }
.def-table .row-num { width: 62px; color: var(--brand); font-weight: 800; font-size: 13px; }
.def-table th.row-num { background: var(--bg-soft); }

/* ============ Capabilities ============ */
.cap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cap-card {
  display: grid; grid-template-columns: 200px 1fr; border-radius: var(--radius);
  overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cap-media { background: var(--brand-soft); min-height: 152px; }
.cap-media img { width: 100%; height: 100%; object-fit: cover; }
.cap-body { padding: 22px 24px; }
.cap-body h3 { font-size: 18.5px; margin-bottom: 8px; }
.cap-body p { font-size: 14.5px; color: var(--ink-2); }

/* ============ Solution patterns ============ */
.pattern-grid { display: grid; gap: 18px; }
.pattern-card {
  display: grid; grid-template-columns: .95fr 1.05fr; border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pattern-card:nth-child(even) .pattern-media { order: 2; }
.pattern-media { min-height: 232px; overflow: hidden; background: var(--brand-soft); }
.pattern-media img { width: 100%; height: 100%; object-fit: cover; }
.pattern-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.pattern-num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--brand); margin-bottom: 8px; }
.pattern-body h2 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 12px; }
.pattern-body > p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 16px; }
.pattern-elements { padding-top: 14px; border-top: 1px dashed var(--line); }
.elements-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ Projects ============ */
.project-list { display: grid; gap: 20px; }
.project-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.project-lead { padding: 24px 26px; background: var(--bg-soft); }
.featured-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.project-lead h2 { font-size: clamp(20px, 2.4vw, 27px); margin-bottom: 10px; }
.project-headline { font-size: 16px; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.project-media { border-radius: var(--radius); overflow: hidden; }
.project-media img { width: 100%; height: 212px; object-fit: cover; }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.project-gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; }
.project-gallery img { width: 100%; height: 74px; object-fit: cover; }
.project-detail { padding: 24px 26px; }
.project-block { padding: 12px 0; border-top: 1px dashed var(--line); }
.project-block:first-child { border-top: 0; padding-top: 0; }
.project-block h4 {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 8px;
}
.project-block p { font-size: 15px; color: var(--ink-2); }

/* ============ Assessment ============ */
.check-list { display: grid; gap: 8px; }
.check-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
.check-list li {
  position: relative; padding: 12px 18px 12px 46px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2);
}
.check-list li::before {
  content: ""; position: absolute; left: 18px; top: 16px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath d='M8.1 14.3 4 10.2l1.4-1.4 2.7 2.7 6.5-6.5L16 6.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ============ About / Contact extras ============ */

/* closing block on the home page — assessment entry merged with the closing ask */
.section-closing {
  background:
    radial-gradient(circle at 86% 16%, rgba(0, 190, 255, .17), transparent 58%),
    var(--bg-dark);
}
.assess-more { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.assess-more p, .assess-more { font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .74); max-width: 720px; }

.company-block { margin-top: 22px; }
.company-overseas {
  margin-top: 14px; padding: 12px 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--brand-soft); border-left: 3px solid var(--brand);
  font-size: 15.5px; line-height: 1.65; font-weight: 600; color: var(--ink);
}
.alt-contact { padding: 16px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line-2); }
.alt-contact h4 { font-size: 15px; margin-bottom: 8px; }
.alt-contact p { font-size: 14.5px; color: var(--ink-2); }
.form-helper { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.file-note { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.file-note.is-error { color: #b3261e; font-weight: 600; }

/* honeypot — off-screen but not display:none, so bots still fill it */
.hp-field {
  position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* ============ Voice input ============ */
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.voice-btn { display: inline-flex; align-items: center; gap: 8px; }
.voice-btn .voice-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: #c3ccdb; transition: background .2s;
}
.voice-btn.recording { border-color: #e5352b; color: #e5352b; }
.voice-btn.recording .voice-dot { background: #e5352b; animation: voicePulse 1s ease-in-out infinite; }
.voice-btn.is-off { opacity: .5; cursor: not-allowed; }
@keyframes voicePulse {
0%, 100% { opacity: 1; }
50% { opacity: .2; }
}
.voice-timer {
  font-size: 13px; font-weight: 700; color: var(--ink-3);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.voice-note { flex: 1 1 260px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.voice-preview { width: 100%; margin-top: 10px; }
.field input[type=file] { padding: 10px 12px; font-size: 14px; background: var(--bg-soft); }
.footer-tagline { margin-top: 14px !important; font-size: 13.5px !important; font-weight: 600; color: rgba(255, 255, 255, .82) !important; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
.hero-inner { grid-template-columns: 1fr; gap: 40px; }
.cta-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
.ind-grid { grid-template-columns: repeat(2, 1fr); }
.footer-grid { grid-template-columns: 1fr 1fr; }
.diff-grid, .cap-list, .check-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pain-card { grid-template-columns: 46px 1fr; gap: 6px 16px; }
.pain-card h3, .pain-card p { grid-column: 2; }
.assess-entry, .split-block { grid-template-columns: 1fr; gap: 28px; }
.pattern-card, .project-card { grid-template-columns: 1fr; }
.pattern-card:nth-child(even) .pattern-media { order: 0; }
.cap-card { grid-template-columns: 180px 1fr; }
.challenge-card { grid-template-columns: 1fr 1fr; }
.challenge-lead { grid-column: 1 / -1; }
.gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
.nav-toggle { display: block; }
.main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
}
.main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
.main-nav a:not(.btn) { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink); }
.site-header.on-dark .main-nav a:not(.btn) { color: var(--ink); }
.main-nav .btn { margin-top: 14px; align-self: flex-start; }
.section { padding: 44px 0; }
.ind-grid { grid-template-columns: 1fr; }
.diff-grid, .cap-list, .check-list.cols-2 { grid-template-columns: 1fr; }
.pain-card { grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 12px 16px; }
.pain-card h3, .pain-card p { grid-column: 2; }
.cap-card { grid-template-columns: 1fr; gap: 14px; }
.pain-foot { padding: 16px 18px; }
.challenge-card { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
.challenge-lead { grid-column: 1; }
.pattern-body, .project-lead, .project-detail { padding: 24px; }
.def-table { min-width: 620px; }
.ind-card.featured { grid-column: span 1; }
.form-row { grid-template-columns: 1fr; }
.team-grid { grid-template-columns: 1fr; }
.gallery .wide { grid-column: span 2; }
.footer-grid { grid-template-columns: 1fr; gap: 28px; }
.inquiry-form { padding: 24px; }
.mission-band { padding: 22px; border-radius: var(--radius); }
.join-band { padding: 28px 20px; }
}
@media (max-width: 560px) {
.container, .header-inner { padding: 0 16px; }
.gallery { grid-template-columns: 1fr; }
.gallery .wide { grid-column: span 1; }
.team-card { padding: 16px; }
.hero { padding: calc(var(--header-h) + 20px) 0 40px; }
}
