/*
Theme Name: 泊松科技 Bosong Keji
Theme URI: https://www.bosongkeji.com/
Author: 泊松科技
Description: AI 内容与增长工作室官网主题。散点→增长曲线视觉母题。Generated by build.mjs.
Version: 2.0.0
Text Domain: bosong-keji
*/

/* =====================================================================
   泊松科技 Poisson Technology — design system
   Motif: scattered events (Poisson points) converging into a growth curve.
   Single source of truth, shared by the static site and the WordPress theme.
   ===================================================================== */

:root {
  /* palette */
  --ink: #0e1a17;
  --ink-2: #16302a;
  --ink-soft: #33433d;
  --muted: #5d6b66;
  --paper: #f4f7f3;
  --paper-2: #eef2ec;
  --white: #ffffff;
  --green: #1f5d4c;
  --green-deep: #143f33;
  --green-bright: #4fae8b;
  --signal: #57d39b;
  --brass: #b8893f;
  --brass-soft: #d9b676;
  --line: rgba(14, 26, 23, 0.12);
  --line-soft: rgba(14, 26, 23, 0.07);
  --line-light: rgba(255, 255, 255, 0.16);

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono",
    "Noto Sans Mono", "DejaVu Sans Mono", monospace;

  /* layout */
  --shell: min(1180px, calc(100vw - 48px));
  --shell-narrow: min(900px, calc(100vw - 48px));
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 74px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 23, 0.06), 0 8px 24px rgba(14, 26, 23, 0.06);
  --shadow-lg: 0 24px 60px rgba(14, 26, 23, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

::selection { background: rgba(87, 211, 155, 0.28); }

.shell { width: var(--shell); margin-inline: auto; }
.shell--narrow { width: var(--shell-narrow); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 14px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 243, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(244, 247, 243, 0.94);
}
.site-header__inner {
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 15px; font-weight: 800; letter-spacing: 0.01em; }
.brand__latin {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.32em; color: var(--green); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  position: relative; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 0; transition: color 0.2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); transition: width 0.25s var(--ease);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; background: var(--white);
  color: var(--ink); place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; content: "";
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em; cursor: pointer;
  border: 1px solid transparent; background: var(--green); color: #fff !important;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 12px 24px rgba(31, 93, 76, 0.22);
}
.btn:hover { transform: translateY(-2px); background: var(--green-deep); box-shadow: 0 16px 30px rgba(31, 93, 76, 0.3); }
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--ghost {
  background: transparent; color: var(--ink) !important;
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink) !important; box-shadow: none; }
.btn--light:hover { background: var(--paper); }
.btn--on-dark.btn--ghost { color: #fff !important; border-color: var(--line-light); }
.btn--on-dark.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--green); font-size: 14.5px;
}
.textlink .btn__arrow { transition: transform 0.2s var(--ease); }
.textlink:hover { color: var(--green-deep); }
.textlink:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- eyebrow / type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 4px rgba(184, 137, 63, 0.18);
}
.eyebrow--light { color: var(--brass-soft); }
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.85rem); line-height: 1.14; }
h3 { font-size: 1.2rem; line-height: 1.4; }
p { margin: 0; color: var(--muted); }
.lead {
  color: var(--ink-soft); font-size: clamp(1.02rem, 0.97rem + 0.4vw, 1.2rem);
  line-height: 1.85; max-width: 40ch;
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(60px, 4vw + 38px, 110px) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--mist { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.section--dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, 0.74); }
.section--tight { padding-block: clamp(48px, 3vw + 30px, 80px); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head .lead { margin-top: 16px; max-width: 58ch; }
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px; align-items: end; max-width: none;
}
.section-head--split .lead { margin-top: 0; }

/* ---------------------------------------------------------------- hero (home) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 120% at 82% 8%, rgba(31, 93, 76, 0.5) 0%, transparent 52%),
    linear-gradient(160deg, #0c1714 0%, #112822 55%, #0c1714 100%);
  color: #fff;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 4vw, 70px); align-items: center;
  padding: clamp(70px, 6vw, 120px) 0 clamp(64px, 5vw, 104px);
}
.hero .eyebrow { color: var(--brass-soft); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--green-bright); }
.hero__lead { margin-top: 22px; color: rgba(255, 255, 255, 0.78); font-size: clamp(1.02rem, 0.97rem + 0.4vw, 1.18rem); line-height: 1.85; max-width: 46ch; }
.hero .btn--ghost { color: #fff !important; border-color: var(--line-light); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-light);
}
.hero__stats dt { font-family: var(--mono); font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); font-weight: 700; color: #fff; }
.hero__stats dd { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.62); line-height: 1.5; }

.hero__art { position: relative; align-self: stretch; min-height: 340px; }
.hero__art svg { width: 100%; height: 100%; }
.hero__badge {
  position: absolute; left: 0; bottom: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-light);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.8);
}
.hero__badge b { color: var(--green-bright); font-weight: 700; }

/* scatter→curve animation */
.poisson-dot { fill: var(--green-bright); opacity: 0; transform-box: fill-box; transform-origin: center; }
.poisson-curve { fill: none; stroke: var(--brass-soft); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero__art--run .poisson-dot { animation: dotIn 0.5s var(--ease) forwards; }
.hero__art--run .poisson-curve { animation: drawCurve 1.4s var(--ease) 0.5s forwards; }
@keyframes dotIn { from { opacity: 0; transform: scale(0); } to { opacity: 0.85; transform: scale(1); } }
@keyframes drawCurve { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- page hero (inner) */
.page-hero { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line-soft); }
.page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 4vw, 64px); align-items: end;
  padding: clamp(84px, 6vw, 120px) 0 clamp(46px, 4vw, 70px);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; max-width: 52ch; }

/* aside brief card */
.brief {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
}
.brief__label {
  display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass);
}
.brief__title { display: block; margin-bottom: 10px; font-size: 1.2rem; font-weight: 800; line-height: 1.4; color: var(--ink); }
.brief p { font-size: 0.95rem; }

/* ---------------------------------------------------------------- grids & cards */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 64px); align-items: start; }

.card {
  display: flex; flex-direction: column; min-width: 0; height: 100%;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__num { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--brass); margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; line-height: 1.8; }
.card__foot { margin-top: auto; padding-top: 18px; }
.card--ghost { background: transparent; box-shadow: none; border-color: var(--line); }
.card--ghost:hover { background: var(--white); }

.icon-wrap {
  width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--green);
  background: rgba(31, 93, 76, 0.09); border: 1px solid rgba(31, 93, 76, 0.14);
}
.icon-wrap svg { width: 24px; height: 24px; }
.section--dark .icon-wrap { color: var(--green-bright); background: rgba(79, 174, 139, 0.12); border-color: rgba(79, 174, 139, 0.25); }

/* ---------------------------------------------------------------- service lines (big) */
.service {
  display: grid; grid-template-columns: 64px minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px); align-items: start;
  padding: clamp(34px, 3vw, 48px) 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--brass); padding-top: 4px; }
.service__title h3 { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.85rem); line-height: 1.2; margin-bottom: 12px; }
.service__title .tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); background: rgba(31, 93, 76, 0.08);
  padding: 4px 10px; border-radius: 999px;
}
.service__body p { line-height: 1.85; }
.service__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-soft);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}

/* ---------------------------------------------------------------- definition list */
.deflist { display: grid; margin: 0; padding: 0; list-style: none; }
.deflist li {
  display: grid; grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr); gap: 26px;
  padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink-soft);
}
.deflist li:last-child { border-bottom: 1px solid var(--line); }
.deflist strong { color: var(--ink); font-weight: 700; }
.deflist span { color: var(--muted); }
.section--dark .deflist li { border-color: var(--line-light); color: rgba(255, 255, 255, 0.74); }
.section--dark .deflist li:last-child { border-bottom-color: var(--line-light); }
.section--dark .deflist strong { color: #fff; }
.section--dark .deflist span { color: rgba(255, 255, 255, 0.6); }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 56px minmax(160px, 0.34fr) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 36px);
  padding: clamp(24px, 2.5vw, 34px) 0; border-top: 1px solid var(--line); align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brass); padding-top: 3px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin-top: 0; line-height: 1.8; }
.section--dark .steps li { border-top-color: var(--line-light); }
.section--dark .steps li:last-child { border-bottom-color: var(--line-light); }

/* ---------------------------------------------------------------- stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat dt { font-family: var(--mono); font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 700; color: var(--ink); line-height: 1; }
.section--dark .stat dt { color: #fff; }
.stat dd { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.stat .unit { font-size: 0.55em; color: var(--brass); margin-left: 2px; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; }
.faq details {
  padding: 4px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: rgba(31, 93, 76, 0.3); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.4rem; font-weight: 400; color: var(--green);
  transition: transform 0.25s var(--ease); line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; max-width: 70ch; line-height: 1.85; }

/* ---------------------------------------------------------------- info table */
.info-table { display: grid; margin: 0; }
.info-table div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.info-table div:last-child { border-bottom: 1px solid var(--line); }
.info-table dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.info-table dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- insights cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post__cover { aspect-ratio: 16 / 10; background: var(--ink-2); position: relative; overflow: hidden; }
.post__cover svg { width: 100%; height: 100%; }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post__meta { display: flex; gap: 12px; margin-bottom: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--brass); }
.post__meta .dot { color: var(--line); }
.post h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: 10px; }
.post p { font-size: 0.95rem; line-height: 1.75; }
.post__foot { margin-top: auto; padding-top: 18px; }

.post--feature { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.post--feature .post__cover { aspect-ratio: auto; min-height: 280px; }
.post--feature .post__body { padding: clamp(28px, 3vw, 48px); justify-content: center; }
.post--feature h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.post--feature p { font-size: 1.02rem; }

/* ---------------------------------------------------------------- CTA band */
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center;
  padding: clamp(36px, 4vw, 64px); border-radius: 20px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 90% 0%, rgba(31, 93, 76, 0.55) 0%, transparent 55%), linear-gradient(150deg, #102420, #0c1714);
  color: #fff; isolation: isolate;
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: rgba(255, 255, 255, 0.74); margin-top: 14px; max-width: 46ch; }
.cta__art { position: absolute; inset: 0; z-index: -1; opacity: 0.5; }
.cta__art svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- callout note */
.note {
  padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  border-left: 3px solid var(--brass); background: var(--white); color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ---------------------------------------------------------------- prose (blog / generic WP content) */
.entry-content { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.85; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.6rem; }
.entry-content h3 { margin-top: 1.5em; font-size: 1.25rem; }
.entry-content p { color: var(--ink-soft); }
.entry-content a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-top: 0.4em; }
.entry-content img { border-radius: var(--radius); margin-block: 1.4em; }
.entry-content blockquote {
  margin: 1.6em 0; padding: 14px 24px; border-left: 3px solid var(--brass);
  background: var(--paper); color: var(--ink-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); }
.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px; padding: clamp(56px, 5vw, 84px) 0 clamp(36px, 3vw, 52px);
}
.site-footer .brand { color: #fff; }
.site-footer__tag { margin: 20px 0 0; color: rgba(255, 255, 255, 0.6); max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 12px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(255, 255, 255, 0.66); font-size: 14px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 24px 0; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------- reveal animation
   Gated on html.js so content is always visible if JS is absent/fails. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  :root { --shell: min(100vw - 40px, 720px); --shell-narrow: min(100vw - 40px, 720px); }
  .hero__grid, .page-hero__grid, .split, .section-head--split { grid-template-columns: 1fr; }
  .page-hero__grid { gap: 36px; }
  .hero__art { min-height: 240px; order: -1; }
  .grid--3, .grid--4, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post--feature { grid-column: span 2; grid-template-columns: 1fr; }
  .post--feature .post__cover { min-height: 200px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 28px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  body.menu-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__list li { border-top: 1px solid var(--line-soft); }
  .nav__list a { display: block; padding: 15px 0; font-size: 17px; }
  .nav__list a::after { display: none; }
  .nav .btn { margin-top: 18px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100vw - 32px, 100%); --shell-narrow: min(100vw - 32px, 100%); }
  .grid--2, .grid--3, .grid--4, .post-grid { grid-template-columns: 1fr; }
  .post--feature { grid-column: span 1; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service__num { padding-top: 0; }
  .steps li { grid-template-columns: 1fr; gap: 8px; }
  .steps li::before { padding-top: 0; }
  .deflist li, .info-table div { grid-template-columns: 1fr; gap: 6px; }
  .cta { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 30px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
