/* ---------- Design tokens ---------- */
:root {
  /* 土 · 背景 */
  --earth-bg: #F6F0E4;
  --earth-card: #FCF8F0;
  --earth-deep: #EDE3D0;
  /* 火 · 主强调 */
  --fire: #C8442C;
  --fire-deep: #A93520;
  --fire-soft: rgba(200, 68, 44, 0.10);
  /* 木 · 次强调 */
  --wood: #3E7A55;
  --wood-deep: #315F43;
  --wood-soft: rgba(62, 122, 85, 0.10);
  /* 金 · 点缀 */
  --gold: #C08A3E;
  --gold-deep: #9E6E2C;
  --gold-soft: rgba(192, 138, 62, 0.13);
  /* 暖中性文字 */
  --ink: #3E3428;
  --ink-2: #6E6353;
  --ink-3: #8C8069;
  --line: rgba(62, 52, 40, 0.14);
  --line-strong: rgba(62, 52, 40, 0.28);
  --white-on: #FFF9EF;
  --shadow: 0 10px 30px -18px rgba(62, 52, 40, 0.35);
  --shadow-lift: 0 22px 48px -24px rgba(62, 52, 40, 0.45);

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --earth-bg: #2E2419;
  --earth-card: #3A2E20;
  --earth-deep: #241B12;
  --fire: #D96047;
  --fire-deep: #C8442C;
  --fire-soft: rgba(217, 96, 71, 0.16);
  --wood: #6FA985;
  --wood-deep: #3E7A55;
  --wood-soft: rgba(111, 169, 133, 0.14);
  --gold: #D4A25C;
  --gold-deep: #C08A3E;
  --gold-soft: rgba(212, 162, 92, 0.15);
  --ink: #F1E7D6;
  --ink-2: #C9BCA6;
  --ink-3: #9E917B;
  --line: rgba(241, 231, 214, 0.14);
  --line-strong: rgba(241, 231, 214, 0.28);
  --white-on: #FFF9EF;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 22px 48px -24px rgba(0, 0, 0, 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--earth-bg);
  color: var(--ink);
  font-family: var(--font-body, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  text-rendering: optimizeLegibility;
}
html[lang="en"] body, html[lang="id"] body { font-family: "Noto Sans", "Noto Sans SC", system-ui, sans-serif; }
html[lang="vi"] body { font-family: "Noto Sans", "Noto Sans SC", system-ui, sans-serif; }
html[lang="th"] body { font-family: "Noto Sans Thai", "Noto Sans SC", system-ui, sans-serif; line-height: 1.9; }
html[lang="ja"] body { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Noto Sans SC", sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Noto Sans SC", sans-serif; }
html[lang="zh-TW"] body { font-family: "Noto Sans TC", "PingFang TC", "Noto Sans SC", sans-serif; }

h1, h2, h3, h4 {
  font-family: var(--font-display, "Noto Serif SC", "Songti SC", serif);
  color: var(--ink);
  line-height: 1.28;
  font-weight: 700;
  margin: 0;
  letter-spacing: .01em;
  text-wrap: balance;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="id"] h1, html[lang="id"] h2, html[lang="vi"] h1, html[lang="vi"] h2 { font-family: "Noto Serif", "Noto Serif SC", Georgia, serif; }
html[lang="th"] h1, html[lang="th"] h2 { font-family: "Noto Serif Thai", "Noto Serif SC", serif; }
html[lang="ja"] h1, html[lang="ja"] h2 { font-family: "Noto Serif JP", "Noto Serif SC", serif; }
html[lang="ko"] h1, html[lang="ko"] h2 { font-family: "Noto Serif KR", "Noto Serif SC", serif; }
html[lang="zh-TW"] h1, html[lang="zh-TW"] h2 { font-family: "Noto Serif TC", "Noto Serif SC", serif; }

p { margin: 0; }
a { color: var(--wood-deep); text-decoration: none; transition: color .2s var(--ease); }
[data-theme="dark"] a { color: var(--wood); }
a:hover { color: var(--fire); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--fire-soft); color: var(--fire-deep); }
[data-theme="dark"] ::selection { color: var(--fire); }

:focus-visible { outline: 2.5px solid var(--wood); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.alt { background: var(--earth-card); border-block: 1px solid var(--line); }
.section.deep { background: var(--earth-deep); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 26px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fire-deep); margin-bottom: 18px;
}
[data-theme="dark"] .eyebrow { color: var(--fire); }
.eyebrow::before {
  content: ""; width: 9px; height: 9px; background: var(--fire);
  border-radius: 2px; transform: rotate(45deg); flex: none;
}
.sec-head { max-width: 760px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.sec-head p { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 17.5px); }
.center .eyebrow::after { content: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn.fire { background: var(--fire); color: var(--white-on); }
.btn.fire:hover { background: var(--fire-deep); color: var(--white-on); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.wood { background: var(--wood); color: var(--white-on); }
.btn.wood:hover { background: var(--wood-deep); color: var(--white-on); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--wood); color: var(--wood-deep); transform: translateY(-2px); }
[data-theme="dark"] .btn.ghost:hover { color: var(--wood); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  background: var(--gold-soft); color: var(--gold-deep);
  border: 1px solid rgba(192, 138, 62, .35);
}
[data-theme="dark"] .tag { color: var(--gold); }
.tag.wood { background: var(--wood-soft); color: var(--wood-deep); border-color: rgba(62,122,85,.3); }
[data-theme="dark"] .tag.wood { color: var(--wood); }
.tag.fire { background: var(--fire-soft); color: var(--fire-deep); border-color: rgba(200,68,44,.3); }
[data-theme="dark"] .tag.fire { color: var(--fire); }

/* ---------- Top navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(246, 240, 228, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
[data-theme="dark"] .topbar { background: rgba(46, 36, 25, 0.9); }
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 26px; }
.pagelogotop{width:160px}
.pagelogobottom{width:150px;}
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a {
  padding: 9px 14px; border-radius: 999px; font-size: 16px; font-weight: 500;
  color: var(--ink-2); position: relative;
}
.mainnav a:hover { color: var(--ink); background: var(--earth-deep); }
.mainnav a.active { color: var(--wood-deep); font-weight: 700; }
[data-theme="dark"] .mainnav a.active { color: var(--wood); }
.mainnav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 16px; height: 3px; border-radius: 3px; background: var(--wood);
}
.nav-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--wood); color: var(--wood-deep); }
[data-theme="dark"] .icon-btn:hover { color: var(--wood); }
.icon-btn svg { width: 19px; height: 19px; }

/* language switch */
.langswitch { position: relative; }
.langswitch summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.langswitch summary::-webkit-details-marker { display: none; }
.langswitch[open] summary { border-color: var(--wood); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 196px;
  background: var(--earth-card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
  padding: 7px; z-index: 80;
}
.lang-menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 13px; border-radius: 7px; font-size: 16px; color: var(--ink);
}
.lang-menu a:hover { background: var(--earth-deep); color: var(--ink); }
.lang-menu a.cur { color: var(--wood-deep); font-weight: 700; }
[data-theme="dark"] .lang-menu a.cur { color: var(--wood); }
.lang-menu a span { font-size: 12px; color: var(--ink-3); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(58px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.1vw, 58px); font-weight: 900; margin-bottom: 22px; }
.hero h1 .hl { color: var(--fire); position: relative; }
.hero h1 .hl-w { color: var(--wood-deep); }
[data-theme="dark"] .hero h1 .hl-w { color: var(--wood); }
.hero .lede { font-size: clamp(16.5px, 1.8vw, 19px); color: var(--ink-2); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-3); font-size: 16px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.hero-figure figcaption {
  position: absolute; left: 16px; bottom: 14px;
  background: rgba(252, 248, 240, .92); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 15px; font-size: 14px; color: var(--ink-2); letter-spacing: .04em;
}
[data-theme="dark"] .hero-figure figcaption { background: rgba(58,46,32,.92); color: var(--ink-2); }

/* ---------- Solo hero (zh-CN / zh-TW home, no side figure) ---------- */
.hero--solo { text-align: center; }
.hero--solo .hero-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 940px; margin-inline: auto; gap: 0;
}
.hero--solo .eyebrow { margin-inline: auto; }
.hero--solo h1 { font-size: clamp(36px, 5.4vw, 62px); letter-spacing: .005em; }
.hero--solo .lede { max-width: 700px; margin-inline: auto; }
.hero--solo .hero-cta { justify-content: center; }
.hero--solo .hero-meta { justify-content: center; gap: 12px 30px; }
.hero--solo .hero-meta span {
  background: var(--earth-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
}
.hero--solo .hero-grid > div {
  position: relative;
}
.hero--solo .hero-grid > div::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 44px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fire), var(--gold));
}

/* ---------- Cards ---------- */
.card {
  background: var(--earth-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column; gap: 13px; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--fire-soft); color: var(--fire); margin-bottom: 4px;
}
.card .ico svg { width: 23px; height: 23px; }
.card.wood .ico { background: var(--wood-soft); color: var(--wood-deep); }
[data-theme="dark"] .card.wood .ico { color: var(--wood); }
.card.gold .ico { background: var(--gold-soft); color: var(--gold-deep); }
[data-theme="dark"] .card.gold .ico { color: var(--gold); }
.card h3 { font-size: 19.5px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .card-link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 16px; color: var(--wood-deep); display: inline-flex; gap: 7px; align-items: center; }
[data-theme="dark"] .card .card-link { color: var(--wood); }

/* ---------- Split (image + prose) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.split.flip .split-fig { order: 2; }
.split-fig img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.split-fig { position: relative; }
.split-fig .seal-note {
  position: absolute; top: -14px; left: -14px;
  background: var(--fire); color: var(--white-on); font-weight: 700; font-size: 14px;
  letter-spacing: .12em; padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow);
}
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose p strong { color: var(--ink); font-weight: 700; }
.bullet-list { display: grid; gap: 13px; margin-top: 18px; }
.bullet-list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; }
.bullet-list li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 2px;
  background: var(--wood); transform: rotate(45deg);
}
.bullet-list li strong { color: var(--ink); font-weight: 700; }

/* ---------- Architecture stack (signature) ---------- */
.arch { display: grid; gap: 14px; max-width: 1000px; margin-inline: auto; }
.arch-layer {
  display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: center;
  background: var(--earth-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; position: relative;
}
.arch-layer .layer-tag { font-family: "Noto Serif SC", serif; font-weight: 900; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.arch-layer .layer-tag .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.arch-layer p { color: var(--ink-2); font-size: 16px; }
.arch-layer.l-fire { border-left: 4px solid var(--fire); }
.arch-layer.l-fire .dot { background: var(--fire); }
.arch-layer.l-wood { border-left: 4px solid var(--wood); }
.arch-layer.l-wood .dot { background: var(--wood); }
.arch-layer.l-gold { border-left: 4px solid var(--gold); }
.arch-layer.l-gold .dot { background: var(--gold); }
.arch-arrow { text-align: center; color: var(--ink-3); line-height: 1; }
.arch-arrow svg { width: 20px; height: 20px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; background: var(--earth-card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "Noto Serif SC", serif; font-size: 30px; font-weight: 900;
  color: transparent; -webkit-text-stroke: 1.4px var(--gold);
  display: block; margin-bottom: 12px; letter-spacing: .04em;
}
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p { color: var(--ink-2); font-size: 14.8px; }
.step.four { display: none; }
.steps.fourcol { grid-template-columns: repeat(4, 1fr); }
.steps.fourcol .step.four { display: block; }

/* ---------- Constellation SVG block ---------- */
.constellation-wrap { background: var(--earth-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.constellation-wrap svg { width: 100%; height: auto; display: block; }

/* ---------- Markets strip ---------- */
.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.market {
  text-align: center; padding: 24px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--earth-card);
  transition: all .25s var(--ease);
}
.market:hover { border-color: var(--gold); transform: translateY(-3px); }
.market .m-name { font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 16.5px; color: var(--ink); display: block; margin-bottom: 4px; }
.market .m-sub { font-size: 14px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq details {
  background: var(--earth-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 24px; transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 17px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-size: 17px; line-height: 1; transition: transform .25s var(--ease); }
[data-theme="dark"] .faq summary .pm { color: var(--gold); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); font-size: 15.3px; max-width: 760px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--earth-deep), var(--earth-card));
  border: 1px solid var(--line); border-radius: clamp(18px, 2.4vw, 28px);
  padding: clamp(42px, 6vw, 74px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--fire-soft), transparent 68%);
  top: -170px; right: -90px; pointer-events: none;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--ink-2); max-width: 750px; margin: 0 auto 30px; position: relative; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; position: relative; }

/* ---------- Quote / statement ---------- */
.statement { max-width: 880px; margin-inline: auto; text-align: center; }
.statement blockquote {
  margin: 0 0 18px; font-family: "Noto Serif SC", serif; font-weight: 700;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.55; color: var(--ink);
}
.statement blockquote .q-fire { color: var(--fire); }
.statement cite { font-style: normal; color: var(--ink-3); font-size: 15px; letter-spacing: .08em; }

/* ---------- Breadcrumb ---------- */
.crumb { padding: 22px 0 0; font-size: 16px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--fire); }
.crumb .sep { opacity: .5; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(46px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; margin: 14px 0 18px; max-width: 820px; }
.page-hero .lede { color: var(--ink-2); font-size: clamp(16px, 1.7vw, 18.5px); max-width: 720px; }
.page-hero .hero-cta { margin-top: 30px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--earth-deep); border-top: 1px solid var(--line); padding: clamp(54px, 7vw, 84px) 0 34px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand p { color: var(--ink-2); font-size: 16px; margin-top: 16px; max-width: 320px; }
.footer h4 { font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col a { color: var(--ink-2); font-size: 16px; }
.footer-col a:hover { color: var(--fire); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--ink-3); font-size: 16px;
}
.footer-bottom .wuxing { display: inline-flex; gap: 8px; align-items: center; }
.wuxing i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1024px) {
  .g3, .steps { grid-template-columns: repeat(2, 1fr); }
  .g4, .steps.fourcol { grid-template-columns: repeat(2, 1fr); }
  .markets { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .arch-layer { grid-template-columns: 1fr; gap: 8px; padding: 18px 22px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 30px; }
  .split.flip .split-fig { order: 0; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .g2, .g3, .g4, .steps, .steps.fourcol { grid-template-columns: 1fr; }
  .markets { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .mainnav {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--earth-card); border-bottom: 1px solid var(--line);
    padding: 14px 18px 20px; box-shadow: var(--shadow-lift);
    display: none;
  }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 13px 14px; border-radius: 10px; font-size: 16px; }
  .mainnav a.active::after { display: none; }
  .mainnav a.active { background: var(--wood-soft); }
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  }
  .nav-toggle svg { width: 21px; height: 21px; }
  .brand-name small { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cta-band { padding: 36px 22px; }
  .arch-layer { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
