@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4efe6;
  --bg-deep: #e7dfd2;
  --surface: rgba(255, 251, 245, 0.86);
  --surface-strong: #fffaf3;
  --ink: #16202a;
  --ink-soft: #31404d;
  --muted: #62707c;
  --line: rgba(22, 32, 42, 0.11);
  --accent: #9a6d3b;
  --accent-strong: #6d4c2a;
  --teal: #264756;
  --teal-soft: #d9e7ea;
  --warm: #efe4d2;
  --shadow: 0 18px 48px rgba(21, 31, 41, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(38, 71, 86, 0.13), transparent 32%),
    radial-gradient(circle at right 15%, rgba(154, 109, 59, 0.15), transparent 26%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 36%, var(--bg-deep) 100%);
  font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(22, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 42, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 80%);
  content: "";
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  color: var(--ink-soft);
}

ul,
ol {
  padding-left: 1.2rem;
}

.site-shell {
  overflow: clip;
}

.topbar,
.nav-shell,
.page,
.site-footer-inner {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.topbar-wrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.topbar a {
  color: var(--teal);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 250, 243, 0.86);
  backdrop-filter: blur(20px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.95);
  box-shadow: var(--shadow);
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.71rem;
}

.nav-toggle {
  display: none;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(38, 71, 86, 0.1);
  color: var(--teal);
  transform: translateY(-1px);
}

.page {
  padding: 3rem 0 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.82fr);
  gap: 1.8rem;
  align-items: stretch;
  margin-bottom: 3.2rem;
}

.hero-copy,
.hero-panel,
.section-card,
.split-card,
.service-card,
.index-card,
.guide-card,
.faq-item,
.contact-card,
.notice-card,
.article-layout,
.form-shell,
.process-card,
.bio-card,
.detail-card,
.cta-band,
.product-panel,
.service-note,
.mini-panel,
.matrix-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  gap: 1.05rem;
  align-content: start;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 109, 59, 0.22), transparent 70%);
  content: "";
}

.eyebrow,
.mini-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(38, 71, 86, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signature {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.hero-signature span {
  color: var(--muted);
}

.hero h1,
.page h1,
.section-title,
.article-title,
.footer-title,
.brand-headline {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.018em;
}

.hero h1 {
  max-width: 19ch;
  color: rgba(22, 32, 42, 0.9);
  font-size: clamp(1.82rem, 2.7vw, 2.42rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

body[data-page="home"] .hero h1 {
  max-width: 15ch;
  color: rgba(22, 32, 42, 0.96);
  font-size: clamp(2.18rem, 3.4vw, 3.02rem);
  font-weight: 600;
  line-height: 1.04;
}

.hero-title-balanced {
  max-width: none;
  text-wrap: initial;
}

.hero-title-balanced span {
  display: block;
}

body:not([data-page="home"]) .hero-copy {
  padding-block: 2.35rem;
}

body:not([data-page="home"]) .hero h1 {
  max-width: 18ch;
}

.hero-lead,
.lede {
  max-width: 62ch;
  margin: 0.15rem 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button {
  background: linear-gradient(135deg, var(--teal), #1f3340);
  color: #fffaf4;
}

.button-secondary {
  border: 1px solid rgba(22, 32, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 32, 42, 0.12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.meta-pill {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  padding: 2.1rem;
  align-content: start;
}

.panel-title,
.card-title,
.small-title,
.footer-title,
.bio-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.panel-list,
.tick-list,
.detail-list,
.flat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-list li,
.tick-list li,
.detail-list li,
.flat-list li {
  position: relative;
  padding-left: 1.5rem;
}

.panel-list li + li,
.tick-list li + li,
.detail-list li + li,
.flat-list li + li {
  margin-top: 0.85rem;
}

.panel-list li::before,
.tick-list li::before,
.detail-list li::before,
.flat-list li::before {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.grid-4,
.grid-3,
.grid-2,
.service-grid,
.guide-grid,
.matrix-grid,
.contact-grid,
.process-grid,
.stats-grid,
.faq-grid,
.bio-grid {
  display: grid;
  gap: 1.15rem;
}

.grid-4,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3,
.service-grid,
.guide-grid,
.process-grid,
.bio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.matrix-grid,
.contact-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-panel,
.service-card,
.index-card,
.guide-card,
.contact-card,
.process-card,
.bio-card,
.matrix-card,
.detail-card {
  padding: 1.5rem;
}

.mini-panel strong {
  display: block;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.8rem;
}

.mini-panel span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  line-height: 1.04;
  text-wrap: balance;
}

.section-text {
  max-width: 60ch;
  margin: 0.5rem 0 0;
}

.compact-header {
  max-width: 760px;
}

.service-products-page .hero h1 {
  max-width: 19ch;
  font-size: clamp(1.82rem, 2.65vw, 2.3rem);
  line-height: 1.1;
}

.service-products-page .hero {
  align-items: start;
}

.service-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.index-card {
  display: grid;
  gap: 0.55rem;
  min-height: 190px;
  align-content: start;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.index-card:hover {
  border-color: rgba(38, 71, 86, 0.22);
  background: rgba(255, 251, 245, 0.98);
  transform: translateY(-3px);
}

.index-card span,
.package-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.index-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.index-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-stack {
  display: grid;
  gap: 1.2rem;
}

.product-panel {
  overflow: hidden;
}

.product-panel-header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 2.1rem;
  align-items: start;
}

.package-number {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(38, 71, 86, 0.95), rgba(22, 32, 42, 0.98));
  color: #fffaf4;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.product-panel h2 {
  margin: 0.25rem 0 0;
  font-family: "Cormorant Garamond", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.product-panel-header p {
  max-width: 72ch;
  margin: 0.8rem 0 0;
}

.product-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.product-point {
  padding: 1.35rem 1.25rem 1.45rem;
  border-right: 1px solid var(--line);
}

.product-point:last-child {
  border-right: 0;
}

.product-point h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-point p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.service-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.service-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.service-card h3,
.guide-card h3,
.contact-card h3,
.process-card h3,
.bio-card h3,
.matrix-card h3,
.detail-card h3,
.split-copy h3,
.faq-item h3 {
  margin: 0 0 0.7rem;
  font-size: 1.14rem;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 1.2rem;
}

.split-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.split-copy,
.split-side {
  padding: 2rem;
}

.split-side {
  background: linear-gradient(180deg, rgba(38, 71, 86, 0.12), rgba(154, 109, 59, 0.08));
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
}

.timeline li + li {
  margin-top: 1rem;
}

.timeline-step {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fffaf4;
  font-weight: 800;
}

.timeline h3 {
  margin: 0;
  font-size: 1rem;
}

.notice-card,
.cta-band,
.form-shell,
.article-layout,
.faq-item {
  padding: 2rem;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(38, 71, 86, 0.96), rgba(22, 32, 42, 0.97)),
    rgba(22, 32, 42, 0.9);
  color: #f8f3ea;
}

.cta-band p,
.cta-band li {
  color: rgba(248, 243, 234, 0.84);
}

.cta-band .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fffaf4;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr);
  gap: 1.5rem;
}

.article-title {
  max-width: 16.5ch;
  font-size: clamp(2.12rem, 4.2vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -0.014em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.article-meta span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(38, 71, 86, 0.08);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.article-body h2,
.article-body h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.4rem;
}

.article-body h2 {
  font-family: "Cormorant Garamond", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 2rem;
}

.article-side {
  display: grid;
  gap: 1rem;
}

.quote-block {
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(154, 109, 59, 0.08);
  color: var(--ink-soft);
}

.faq-item {
  display: grid;
  gap: 0.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-shell form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(22, 32, 42, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(38, 71, 86, 0.25);
  outline-offset: 2px;
}

.form-note,
.small-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.challenge-box {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(22, 32, 42, 0.12);
  border-radius: 18px;
  background: rgba(38, 71, 86, 0.06);
}

.challenge-question {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.challenge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
}

.challenge-row label {
  flex: 1 1 240px;
}

.challenge-refresh {
  flex: 0 0 auto;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status-message {
  min-height: 1.3rem;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-message.is-error {
  color: #8a2e2e;
}

.status-message.is-success {
  color: var(--teal);
}

.status-message.is-muted {
  color: var(--muted);
  font-weight: 600;
}

.button[disabled],
.button-secondary[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(20, 29, 37, 0.96);
  color: #f5efe5;
}

.site-footer-inner {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 1.4rem;
}

.footer-grid p,
.footer-grid li {
  color: rgba(245, 239, 229, 0.76);
}

.footer-links,
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li,
.footer-list li + li {
  margin-top: 0.65rem;
}

.footer-links a,
.footer-list a {
  color: #f5efe5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 239, 229, 0.72);
  font-size: 0.9rem;
}

.muted-box {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
}

.muted-box p,
.office-pair span,
.footer-list li,
.footer-links a,
.link-inline {
  overflow-wrap: anywhere;
}

.lang-zh {
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.office-pair {
  display: grid;
  gap: 0.35rem;
}

.link-inline {
  color: var(--teal);
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-cloud span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(38, 71, 86, 0.08);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.table-list {
  display: grid;
  gap: 0.8rem;
}

.table-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.table-row strong {
  color: var(--ink);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.insight-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.insight-card:hover {
  border-color: rgba(38, 71, 86, 0.22);
  background: rgba(255, 251, 245, 0.98);
  transform: translateY(-3px);
}

.insight-card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.insight-card p {
  margin: 0;
}

.insight-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.article-main {
  min-width: 0;
}

.article-prose {
  display: grid;
  gap: 1rem;
}

.article-prose p,
.article-prose li,
.article-prose blockquote {
  font-size: 1rem;
  line-height: 1.75;
}

.article-prose ul,
.article-prose ol {
  margin: 0;
  padding-left: 1.3rem;
}

.article-prose li + li {
  margin-top: 0.5rem;
}

.article-prose a {
  color: var(--teal);
  font-weight: 700;
}

.article-prose code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.4rem;
  background: rgba(38, 71, 86, 0.08);
  font-size: 0.95em;
}

.code-block {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  overflow: auto;
  background: rgba(22, 32, 42, 0.92);
  color: #f8f3ea;
}

.flat-list a {
  font-weight: 700;
}

.flat-list li {
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .hero,
  .split-layout,
  .article-layout,
  .split-card,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .service-grid,
  .service-index,
  .insight-grid,
  .guide-grid,
  .matrix-grid,
  .contact-grid,
  .process-grid,
  .stats-grid,
  .faq-grid,
  .bio-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-point {
    border-bottom: 1px solid var(--line);
  }

  .product-point:nth-child(2n) {
    border-right: 0;
  }

  .product-point:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .service-note {
    grid-template-columns: 1fr;
  }

  .service-note-actions {
    justify-content: flex-start;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .topbar {
    flex-direction: column;
  }

  .hero-copy,
  .hero-panel,
  .notice-card,
  .cta-band,
  .form-shell,
  .article-layout,
  .faq-item {
    padding: 1.6rem;
  }

  .page {
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .hero h1 {
    max-width: 17ch;
    font-size: clamp(1.74rem, 4.8vw, 2.2rem);
    line-height: 1.09;
  }

  body[data-page="home"] .hero h1 {
    max-width: 13.5ch;
    font-size: clamp(2rem, 6.4vw, 2.62rem);
    line-height: 1.04;
  }

  .hero-signature {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
  }

  .section-title {
    font-size: clamp(1.88rem, 6.2vw, 2.28rem);
  }

  .article-title {
    max-width: 15ch;
    font-size: clamp(1.96rem, 7.3vw, 2.62rem);
  }

  .topbar {
    font-size: 0.84rem;
  }

  .hero-copy,
  .hero-panel,
  .notice-card,
  .cta-band,
  .form-shell,
  .article-layout,
  .faq-item,
  .service-card,
  .index-card,
  .guide-card,
  .contact-card,
  .process-card,
  .bio-card,
  .matrix-card,
  .detail-card,
  .mini-panel,
  .product-panel-header,
  .product-point,
  .service-note,
  .split-copy,
  .split-side {
    padding: 1.35rem;
  }
}

@media (max-width: 640px) {
  .page,
  .site-footer-inner {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .topbar,
  .nav-shell {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .service-grid,
  .service-index,
  .insight-grid,
  .guide-grid,
  .matrix-grid,
  .contact-grid,
  .process-grid,
  .stats-grid,
  .faq-grid,
  .bio-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-panel-header,
  .product-points {
    grid-template-columns: 1fr;
  }

  .package-number {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.65rem;
  }

  .product-point,
  .product-point:nth-child(2n),
  .product-point:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-point:last-child {
    border-bottom: 0;
  }

  .hero h1,
  .article-title,
  .section-title {
    line-height: 1;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.58rem, 6vw, 1.94rem);
    line-height: 1.1;
  }

  body[data-page="home"] .hero h1 {
    font-size: clamp(1.78rem, 7.7vw, 2.28rem);
    line-height: 1.06;
  }

  .article-title {
    max-width: none;
    font-size: clamp(1.82rem, 7.2vw, 2.25rem);
  }

  .section-title {
    font-size: clamp(1.72rem, 6.5vw, 2.08rem);
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .topbar {
    font-size: 0.8rem;
  }

  .hero-lead,
  .lede {
    font-size: 1rem;
  }

  .hero-signature {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .meta-pill {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
  }

  .section-header,
  .footer-bottom {
    flex-direction: column;
    align-items: start;
  }
}
