/* =========================================================
   QIANRI QIANYUE  |  Multilingual site (zh / ja / en)
   主题配色系统：
     - 默认（首页 / 入口页）  : 品牌蓝
     - body.t-software        : 蓝
     - body.t-embedded        : 青绿
     - body.t-rpa             : 橙金
   改主题只需改下面 :root 与 body.t-* 里的品牌色变量。
   ========================================================= */

:root {
  /* 品牌色（默认：蓝） */
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-2: #38bdf8;
  --brand-soft: #e9f1fe;
  --glow-1: rgba(56, 189, 248, 0.30);
  --glow-2: rgba(37, 99, 235, 0.14);

  /* 中性色 */
  --ink: #0b1424;
  --muted: #55657e;
  --line: #e3e9f3;
  --bg: #ffffff;
  --soft: #f5f8fe;
  --deep: #0a1b3d;
  --deep-2: #0b1b3a;

  --radius: 10px;
  --maxw: 1120px;
  --shadow: 0 16px 38px rgba(37, 99, 235, 0.16);
}

body.t-embedded {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-2: #2dd4bf;
  --brand-soft: #e6f7f4;
  --glow-1: rgba(45, 212, 191, 0.28);
  --glow-2: rgba(15, 118, 110, 0.12);
  --shadow: 0 16px 38px rgba(15, 118, 110, 0.16);
}

body.t-rpa {
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-2: #f59e0b;
  --brand-soft: #fef1e6;
  --glow-1: rgba(245, 158, 11, 0.32);
  --glow-2: rgba(194, 65, 12, 0.12);
  --shadow: 0 16px 38px rgba(194, 65, 12, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* 渐变文字工具类 */
.grad-text {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
/* 锚点跳转时避开吸顶导航 */
section[id] { scroll-margin-top: 84px; }
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.brand .logo {
  font-size: 21px; font-weight: 800; letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand .sub { font-size: 11px; color: var(--muted); letter-spacing: 0.18em; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; white-space: nowrap; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-dark); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch a {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 100px; transition: .2s; white-space: nowrap;
}
.lang-switch a:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.lang-switch a.on {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-color: transparent; color: #fff; font-weight: 600;
}

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-size: 13px; padding: 7px 15px; cursor: pointer;
}

/* ---------------- Home hero ---------------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% -12%, var(--glow-1), transparent 62%),
    radial-gradient(700px 400px at 2% 112%, var(--glow-2), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, var(--brand-soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 92px 0 78px;
}
.hero .eyebrow { font-size: 11px; letter-spacing: 0.32em; color: var(--brand-dark); font-weight: 700; margin-bottom: 22px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.05rem); line-height: 1.35; font-weight: 800; letter-spacing: 0.01em; max-width: 20em; margin-bottom: 24px; overflow-wrap: anywhere; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-dark) 15%, var(--brand) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { font-size: clamp(0.95rem, 1.6vw, 1.05rem); color: var(--muted); max-width: 36em; margin-bottom: 38px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; padding: 14px 32px;
  border-radius: 100px; transition: .22s; letter-spacing: 0.04em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

/* ---------------- Section ---------------- */
.section { padding: 76px 0; }
.section.alt { background: var(--brand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow {
  font-size: 11px; letter-spacing: 0.3em; color: var(--brand-dark); font-weight: 700;
  margin-bottom: 12px; display: inline-flex; align-items: center; gap: 9px;
}
.section-head .eyebrow::before {
  content: ""; width: 20px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.section-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.5; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 46em; }

/* ---------------- Pillars (home) ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px 30px; transition: .28s;
}
.pillar:nth-child(1) { --c1: #2563eb; --c2: #38bdf8; }
.pillar:nth-child(2) { --c1: #0f766e; --c2: #2dd4bf; }
.pillar:nth-child(3) { --c1: #c2410c; --c2: #f59e0b; }
.pillar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.pillar:hover { border-color: var(--c1); transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12); }
.pillar .idx {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c1);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.55);
}
.pillar h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: 6px; }
.pillar .en { font-size: 11px; letter-spacing: 0.16em; color: var(--c1); text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.pillar > p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.pillar ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.pillar li { font-size: 13px; color: var(--ink); padding-left: 17px; position: relative; }
.pillar li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.pillar .more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--c1); display: inline-flex; align-items: center; gap: 6px; }
.pillar .more::after { content: "\2192"; transition: transform .25s; }
.pillar:hover .more::after { transform: translateX(5px); }

/* ---------------- Stats ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: #fff; padding: 32px 22px; text-align: center; }
.stat .num {
  font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; line-height: 1.2;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat .num small { font-size: 0.45em; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 6px; letter-spacing: 0.06em; }

.about-text { display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px; align-items: start; }
.about-text p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.about-text strong { color: var(--ink); font-weight: 700; }
.about-list li { font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; gap: 12px; }
.about-list li:first-child { border-top: 1px solid var(--line); }
.about-list li span { color: var(--brand-dark); font-weight: 700; flex: 0 0 auto; min-width: 5.5em; }

/* ---------------- Page hero (sub) ---------------- */
.page-hero {
  background:
    radial-gradient(760px 340px at 92% -20%, var(--glow-1), transparent 64%),
    radial-gradient(560px 320px at 0% 120%, var(--glow-2), transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, var(--brand-soft) 100%);
  border-bottom: 1px solid var(--line); padding: 66px 0 58px;
}
.page-hero .eyebrow { font-size: 11px; letter-spacing: 0.3em; color: var(--brand-dark); font-weight: 700; margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.4; margin-bottom: 18px; overflow-wrap: anywhere; }
.page-hero p.lead { color: var(--muted); font-size: 15px; max-width: 42em; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.crumb a:hover { color: var(--brand-dark); }
.crumb span { margin: 0 8px; opacity: .5; }

/* ---------------- Service grid ---------------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.svc { background: #fff; padding: 30px 26px; transition: background .25s; }
.svc:hover { background: var(--brand-soft); }
.svc .n {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
}
.svc h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; line-height: 1.6; }
.svc p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ---------------- Case cards ---------------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .28s;
}
.case:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.case-media { position: relative; aspect-ratio: 16 / 9; background: var(--deep); overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.case:hover .case-media img { transform: scale(1.05); }
.case-media.ph {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(320px 200px at 76% 8%, rgba(255, 255, 255, 0.22), transparent 62%),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
}
.case-media.ph svg { width: 54px; height: 54px; opacity: .55; }
.case-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-cat { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--brand-dark); margin-bottom: 10px; text-transform: uppercase; }
.case-body h3 { font-size: 16.5px; font-weight: 800; line-height: 1.6; margin-bottom: 12px; }
.case-body p { font-size: 13.5px; color: var(--muted); line-height: 1.85; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tags li {
  font-size: 11.5px; color: var(--brand-dark); background: var(--brand-soft);
  padding: 4px 13px; border-radius: 100px; letter-spacing: 0.04em; font-weight: 600;
}

/* ---------------- Tech stack ---------------- */
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack li {
  font-size: 13px; color: var(--ink); border: 1px solid var(--line); background: #fff;
  padding: 8px 18px; border-radius: 100px; letter-spacing: 0.03em; transition: .2s;
}
.stack li:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

/* ---------------- CTA band ---------------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--deep) 0%, var(--brand-dark) 100%);
  padding: 66px 0;
}
.cta-band::after {
  content: ""; position: absolute; right: -130px; top: -150px; width: 440px; height: 440px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.20), transparent 66%);
}
.cta-band::before {
  content: ""; position: absolute; left: -80px; bottom: -160px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}
.cta-band .inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { font-size: clamp(1.2rem, 2.4vw, 1.65rem); font-weight: 800; line-height: 1.5; }
.cta-band p { font-size: 13.5px; opacity: .85; margin-top: 8px; }
.btn-light { background: #fff; color: var(--brand-dark); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: .25s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card .k { font-size: 11px; letter-spacing: 0.22em; color: var(--brand-dark); font-weight: 800; margin-bottom: 12px; }
.card .v { font-size: 15px; font-weight: 700; margin-bottom: 6px; word-break: break-word; }
.card .s { font-size: 13px; color: var(--muted); line-height: 1.75; }
.card a:hover { color: var(--brand-dark); }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative; color: #94a3b8; padding: 54px 0 34px; font-size: 13px;
  background: linear-gradient(180deg, var(--deep-2) 0%, #08122a 100%);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #2dd4bf, #f59e0b);
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid #1e293b; }
.site-footer .logo {
  font-size: 20px; font-weight: 800; letter-spacing: 0.06em; margin-bottom: 14px;
  background: linear-gradient(120deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.site-footer p { line-height: 1.9; }
.site-footer h4 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.06em; }
.site-footer ul { display: flex; flex-direction: column; gap: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .sp { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.site-footer .sp a { border: 1px solid #263447; border-radius: 100px; padding: 3px 12px; font-size: 12px; transition: .2s; }
.site-footer .sp a:hover { border-color: #38bdf8; color: #fff; }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; }

/* ---------------- Language splash (root index) ---------------- */
.splash {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 24px;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(56, 189, 248, 0.32), transparent 62%),
    radial-gradient(700px 420px at 6% 106%, rgba(37, 99, 235, 0.18), transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, #e9f1fe 100%);
}
.splash .logo {
  font-size: clamp(1.9rem, 6vw, 2.7rem); font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(120deg, #1e40af, #2563eb);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.splash .sub { font-size: 11px; letter-spacing: 0.32em; color: var(--muted); margin-top: 10px; }
.splash .opts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 42px 0 26px; }
.splash .opts a {
  min-width: 152px; padding: 16px 26px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--ink);
  transition: .22s; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.splash .opts a:nth-child(1):hover { border-color: #2563eb; color: #2563eb; }
.splash .opts a:nth-child(2):hover { border-color: #0f766e; color: #0f766e; }
.splash .opts a:nth-child(3):hover { border-color: #c2410c; color: #c2410c; }
.splash .opts a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12); }
.splash .opts a small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.14em; margin-top: 4px; }
.splash .hint { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 9px; justify-content: center; }
.spinner {
  width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: #2563eb;
  border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Responsive ---------------- */
/* 触屏设备禁用悬停位移，避免"粘滞 hover" */
@media (hover: none) {
  .pillar:hover, .case:hover, .btn-primary:hover, .btn-light:hover { transform: none; }
  .case:hover .case-media img { transform: none; }
}

@media (max-width: 1040px) {
  .nav-right { gap: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a[aria-current="page"]::after { bottom: -21px; }
}
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about-text { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  /* Logo 与菜单按钮保持同一行，不再换行堆叠 */
  .nav-wrap { flex-wrap: nowrap; padding: 10px 20px; min-height: 60px; }
  .brand { gap: 8px; min-width: 0; }
  .brand .sub { display: none; }
  .brand .logo { font-size: 19px; }
  .menu-toggle {
    display: block; margin-left: auto; flex: 0 0 auto;
    padding: 9px 18px; font-size: 14px; border-radius: 100px;
  }
  .nav-right {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 20px; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-right.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .lang-switch { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 16px; }
  .lang-switch a { text-align: center; padding: 11px 10px; font-size: 14px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; line-height: 1.75; }
  .cases { grid-template-columns: 1fr; gap: 18px; }
  .svc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 46px; }
  .hero .btn-row .btn { flex: 1 1 auto; justify-content: center; padding: 14px 20px; }
  .page-hero { padding: 48px 0 42px; }
  .section { padding: 50px 0; }
  .cta-band { padding: 50px 0; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .stat { padding: 24px 14px; }
  .case-body { padding: 20px 18px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .splash .opts { flex-direction: column; align-items: stretch; }
  .splash .opts a { min-width: 100%; }
}
@media (max-width: 400px) {
  .container, .nav-wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .section-head h2 { font-size: 1.3rem; }
  .case-media.ph svg { width: 44px; height: 44px; }
  .svc { padding: 24px 20px; }
  .pillar { padding: 28px 22px 24px; }
}
