:root {
  --paper: #f7f9fb;
  --paper-deep: #e8edf3;
  --ink: #191c1e;
  --muted: #535d68;
  --line: #cfd7e2;
  --teal: #0b7f5f;
  --teal-deep: #00311f;
  --amber: #00a36c;
  --rust: #00236f;
  --night: #00236f;
  --night-soft: #072f7a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 35, 111, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.16), transparent 42%),
    var(--teal-deep);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 35, 111, 0.14);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 9px 8px 8px;
  border: 3px solid var(--white);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  opacity: 0.96;
}

.brand-mark::after {
  right: 9px;
  bottom: 9px;
  width: 11px;
  height: 11px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: -12px 0 0 var(--white);
}

.brand-logo-stem {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 16px;
  height: 18px;
  border-left: 3px solid var(--white);
  border-right: 3px solid var(--white);
}

.brand-logo-stem::before {
  position: absolute;
  top: -1px;
  left: 2px;
  width: 9px;
  height: 14px;
  content: "";
  border-top: 3px solid var(--white);
  transform: rotate(38deg);
  transform-origin: left top;
}

.brand-logo-node {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 11px;
  height: 11px;
  background: var(--amber);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 163, 108, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--teal);
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding-top: 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
  text-wrap: balance;
}

h1 span + span {
  margin-top: 4px;
}

h2 {
  margin-bottom: 14px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 28px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  color: var(--white);
  background: var(--teal-deep);
  box-shadow: 0 14px 24px rgba(10, 63, 60, 0.2);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--white);
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--night);
  font-size: 14px;
  font-weight: 800;
}

.response-note {
  color: var(--muted);
  font-size: 13px;
}

.hero-board {
  position: relative;
  min-height: 560px;
}

.delivery-canvas {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(560px, 100%);
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(184, 129, 44, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(235, 226, 211, 0.78));
  border: 1px solid rgba(217, 205, 187, 0.95);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(30, 37, 38, 0.14);
  transform: translateY(-50%);
}

.delivery-canvas::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 107, 99, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(184, 129, 44, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.canvas-header,
.canvas-input,
.canvas-modules,
.canvas-output {
  position: relative;
  z-index: 1;
}

.canvas-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.canvas-header span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.canvas-header strong {
  max-width: 210px;
  color: var(--teal-deep);
  text-align: right;
  font-size: 18px;
  line-height: 1.3;
}

.canvas-input {
  padding: 18px 20px;
  background: var(--night);
  border-radius: 12px;
  color: var(--white);
}

.canvas-input small {
  color: #ffd27a;
  font-weight: 900;
}

.canvas-input p {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.canvas-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 14px;
}

.canvas-flow::before {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: translateY(-50%);
}

.canvas-flow span {
  position: relative;
  width: 13px;
  height: 13px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(15, 107, 99, 0.08);
}

.canvas-flow span:nth-child(3) {
  border-color: var(--amber);
  box-shadow: 0 0 0 6px rgba(184, 129, 44, 0.1);
}

.canvas-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.canvas-modules article {
  min-height: 188px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(217, 205, 187, 0.9);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(30, 37, 38, 0.08);
}

.canvas-modules span {
  color: var(--amber);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  font-weight: 900;
}

.canvas-modules h3 {
  margin: 14px 0 8px;
  color: var(--teal-deep);
  font-size: 18px;
}

.canvas-modules p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.canvas-output {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.canvas-output span {
  padding: 7px 10px;
  color: var(--white);
  background: var(--teal-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.compact-heading {
  white-space: nowrap;
}

.pain-grid,
.service-grid,
.proof-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pain-grid article,
.service-card,
.proof-list article,
.cert-card,
.retainer-panel,
.notice-row details,
.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 12px 30px rgba(30, 37, 38, 0.08);
}

.pain-grid article {
  padding: 24px;
}

.pain-grid span {
  color: var(--amber);
  font-weight: 900;
}

.pain-grid p,
.service-card p,
.case-card p,
.retainer-copy p:not(.eyebrow),
.retainer-panel li,
.notice-row p,
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segment {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.segment.is-active {
  color: var(--white);
  background: var(--teal-deep);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

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

.service-card {
  padding: 22px;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.service-card:hover,
.collab-card:hover {
  border-color: rgba(15, 107, 99, 0.36);
  background: #f8fcfa;
  box-shadow: 0 16px 34px rgba(0, 35, 111, 0.1);
  transform: translateY(-2px);
}

.service-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.service-topline span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.service-topline strong {
  color: var(--rust);
  text-align: right;
  font-size: 14px;
}

.service-card ul,
.collab-card ul,
.retainer-panel ul,
.case-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.pricing-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.collab-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 37, 38, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.collab-card p {
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 8px;
  background: var(--night-soft);
}

.case-card > div,
.case-card.text-case,
.case-card.link-case {
  padding: 22px;
}

.case-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}

.case-card.tall img {
  height: 300px;
  object-position: top;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(255, 253, 248, 0.02)),
    var(--night);
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}

.case-gallery img {
  height: 132px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 6px;
}

.clinic-preview,
.auto-preview {
  position: relative;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(255, 253, 248, 0.02)),
    var(--night);
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}

.clinic-scroll,
.auto-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 16px;
  scroll-padding-left: 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.clinic-scroll::-webkit-scrollbar,
.auto-scroll::-webkit-scrollbar {
  height: 6px;
}

.clinic-scroll::-webkit-scrollbar-track,
.auto-scroll::-webkit-scrollbar-track {
  background: rgba(255, 253, 248, 0.08);
  border-radius: 999px;
}

.clinic-scroll::-webkit-scrollbar-thumb,
.auto-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 210, 122, 0.72);
  border-radius: 999px;
}

.clinic-slide,
.auto-slide {
  position: relative;
  flex: 0 0 72%;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 7px;
  scroll-snap-align: start;
}

.clinic-slide-flow,
.auto-slide-flow {
  flex-basis: 86%;
}

.clinic-slide img,
.auto-slide img {
  height: 220px;
  background: var(--white);
  object-fit: contain;
  object-position: top;
}

.clinic-slide:not(.clinic-slide-flow) img,
.auto-slide:not(.auto-slide-flow) img {
  object-fit: cover;
}

.clinic-slide figcaption,
.auto-slide figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(17, 23, 22, 0.76);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.clinic-hint,
.auto-hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 8px;
  color: #ffd27a;
  background: rgba(17, 23, 22, 0.74);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.case-card.wide {
  grid-column: span 2;
}

.case-card.wide > img {
  height: 260px;
}

.case-card.wide .auto-slide img {
  height: 260px;
}

.case-card h3 {
  color: var(--white);
}

.case-card span,
.case-card li {
  color: #cbd5d0;
}

.case-card a {
  display: inline-flex;
  margin-top: 8px;
  color: #ffd27a;
  font-weight: 900;
}

.case-qr {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 210, 122, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.06);
}

.case-qr img {
  width: 82px;
  height: 82px;
  border: 6px solid var(--white);
  border-bottom: 6px solid var(--white);
  border-radius: 6px;
  object-fit: cover;
}

.case-qr p {
  margin: 0;
  color: #cbd5d0;
  font-size: 13px;
  line-height: 1.5;
}

.case-qr strong {
  display: block;
  margin-bottom: 2px;
  color: #ffd27a;
  font-size: 14px;
}

.proof-layout,
.retainer,
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.proof-list {
  grid-template-columns: repeat(2, 1fr);
}

.proof-list article {
  padding: 24px;
}

.proof-list strong {
  display: block;
  color: var(--teal-deep);
  font-size: 30px;
  line-height: 1.1;
}

.proof-list span {
  color: var(--muted);
}

.cert-card {
  padding: 24px;
}

.cert-label {
  color: var(--teal);
  font-weight: 900;
}

.cert-image {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.retainer-panel {
  padding: 26px;
}

.retainer-price {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.retainer-price span {
  display: block;
  color: var(--rust);
  font-size: 28px;
  font-weight: 900;
}

.retainer-price small {
  color: var(--muted);
}

.retainer-compare {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: #eef5ef;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.process-list span {
  display: block;
  color: var(--amber);
  font-size: 22px;
}

.notice-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.notice-row details {
  padding: 18px;
}

.notice-row summary {
  cursor: pointer;
  font-weight: 900;
}

.contact {
  align-items: center;
  padding-bottom: 100px;
}

.contact-copy strong {
  color: var(--teal-deep);
  font-size: 28px;
}

.wechat-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wechat-line span,
.wechat-line small {
  color: var(--muted);
}

.wechat-line small {
  margin-left: 6px;
  font-size: 13px;
}

.copy-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal-deep);
  cursor: pointer;
}

.copy-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.copy-status {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 4px 8px;
  color: var(--white);
  background: var(--teal-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.copy-icon-button:hover,
.copy-icon-button:focus-visible {
  color: var(--teal);
  outline: none;
}

.copy-icon-button:hover .copy-status,
.copy-icon-button:focus-visible .copy-status,
.copy-icon-button.is-showing-status .copy-status {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.qr-card {
  justify-self: end;
  width: min(330px, 100%);
  padding: 24px;
  text-align: center;
}

.qr-card img {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.qr-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* V2 consultant-style layout */
.hero {
  display: block;
  min-height: auto;
  padding-top: 92px;
  text-align: center;
}

.hero-copy {
  max-width: 1060px;
  margin: 0 auto;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  color: var(--night);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(40px, 4.7vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(15, 107, 99, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.hero h1 span {
  display: block;
}

.hero-title-kicker {
  margin-bottom: 6px;
  color: var(--teal-deep);
  font-size: 0.72em;
  font-weight: 700;
}

.hero-lead {
  max-width: none;
  margin: 0 auto;
  font-size: 17px;
  white-space: nowrap;
}

.hero-tags,
.hero-actions {
  justify-content: center;
}

.hero-board {
  width: min(760px, 100%);
  min-height: auto;
  margin: 34px auto 0;
}

.hero .hero-board {
  display: none;
}

.delivery-canvas.hero-canvas {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(0, 35, 111, 0.08);
  transform: none;
}

.hero-canvas .canvas-modules article {
  min-height: 132px;
  text-align: left;
}

.hero-canvas .canvas-flow {
  margin: 0 0 14px;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  text-align: center;
}

.trust-inner strong {
  display: block;
  color: rgba(0, 35, 111, 0.68);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.trust-inner span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-showcase {
  padding-top: 58px;
}

.portfolio-heading {
  max-width: 820px;
}

.portfolio-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 6px 2px 18px;
  scroll-padding-left: 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.portfolio-rail::-webkit-scrollbar {
  height: 8px;
}

.portfolio-rail::-webkit-scrollbar-track {
  background: rgba(207, 215, 226, 0.65);
  border-radius: 999px;
}

.portfolio-rail::-webkit-scrollbar-thumb {
  background: var(--night);
  border-radius: 999px;
}

.portfolio-slide {
  flex: 0 0 min(370px, 82vw);
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.portfolio-slide.is-wide {
  flex-basis: min(540px, 88vw);
}

.portfolio-slide img {
  width: 100%;
  height: 280px;
  background: #f2f5f8;
  object-fit: contain;
  object-position: top;
}

.portfolio-slide.is-wide img {
  padding: 12px;
  object-fit: contain;
}

.portfolio-slide-combo {
  flex-basis: min(470px, 86vw);
}

.portfolio-slide-combo.is-wide {
  flex-basis: min(620px, 90vw);
}

.phone-strip,
.workflow-page-pair,
.agent-flow-pair {
  display: grid;
  gap: 14px;
  height: 280px;
  padding: 18px;
  background: #f2f5f8;
}

.phone-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.workflow-page-pair {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
}

.agent-flow-pair {
  grid-template-columns: 0.62fr 1.38fr;
  align-items: center;
}

.phone-strip img,
.workflow-page-pair img,
.agent-flow-pair img {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(207, 215, 226, 0.8);
  border-radius: 6px;
  background: var(--white);
  object-fit: contain;
  object-position: top;
}

.portfolio-slide figcaption {
  display: grid;
  gap: 4px;
  padding: 16px 18px 18px;
}

.portfolio-slide strong {
  color: var(--night);
  font-size: 17px;
}

.portfolio-slide span,
.portfolio-hint {
  color: var(--muted);
  font-size: 13px;
}

.case-section {
  background: var(--white);
  color: var(--ink);
}

.section-heading.dark .eyebrow,
.case-type {
  color: var(--teal);
}

.section-heading.dark h2 {
  color: var(--night);
}

.section-heading.dark p:not(.eyebrow) {
  color: var(--muted);
}

.case-group + .case-group {
  margin-top: 42px;
}

.case-group h3 {
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid var(--teal);
  color: var(--night);
}

.case-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-summary-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-summary-card h4 {
  margin: 0 0 10px;
  color: var(--night);
  font-size: 20px;
}

.case-summary-card p:not(.case-type) {
  color: var(--muted);
}

.case-summary-card span,
.case-summary-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--night);
  font-weight: 900;
}

.case-summary-card .nowrap-meta {
  white-space: nowrap;
}

.case-link-action::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin: 0 10px;
  background: var(--line);
  vertical-align: -0.12em;
}

.case-meta-stack {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.case-meta-stack span {
  margin-top: 0;
}

.case-qr.compact {
  grid-template-columns: 72px minmax(0, 1fr);
  margin-top: 16px;
  border-color: rgba(0, 163, 108, 0.25);
  background: #f2fbf7;
}

.case-qr.compact img {
  width: 72px;
  height: 72px;
}

.case-qr.compact p,
.case-qr.compact strong {
  color: var(--night);
}

.proof .section-heading h2,
.retainer-copy h2 {
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.16;
  white-space: normal;
}

.proof-layout {
  align-items: stretch;
}

.proof-list,
.cert-card {
  height: 100%;
}

.cert-card {
  display: flex;
  flex-direction: column;
}

.cert-image {
  flex: 1;
  min-height: 0;
}

.retainer-action {
  width: 100%;
  margin-top: 20px;
}

.retainer-action-note {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: #d7ddd9;
  background: var(--night);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #ffd27a;
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .proof-layout,
  .retainer,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: auto;
  }

  .delivery-canvas {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    transform: none;
  }

  .hero h1 {
    white-space: normal;
  }

  .trust-inner,
  .case-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-grid,
  .service-grid,
  .case-grid,
  .collab-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card.wide {
    grid-column: span 1;
  }

  .qr-card {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section-shell {
    width: min(100% - 28px, 1160px);
    padding: 52px 0;
  }

  h1 {
    font-size: 42px;
    line-height: 1.12;
  }

  .hero h1 {
    font-size: 38px;
    white-space: normal;
  }

  .hero-lead {
    white-space: normal;
  }

  h1 span + span {
    margin-top: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-board {
    min-height: auto;
  }

  .delivery-canvas {
    padding: 18px;
    border-radius: 14px;
  }

  .canvas-header {
    flex-direction: column;
  }

  .canvas-header strong {
    max-width: none;
    text-align: left;
  }

  .canvas-input p {
    font-size: 17px;
  }

  .canvas-modules {
    grid-template-columns: 1fr;
  }

  .canvas-modules article {
    min-height: auto;
  }

  .trust-inner,
  .case-summary-grid {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    gap: 18px;
  }

  .portfolio-slide,
  .portfolio-slide.is-wide {
    flex-basis: 86vw;
  }

  .portfolio-slide img {
    height: 230px;
  }

  .proof .section-heading h2,
  .compact-heading,
  .retainer-copy h2 {
    white-space: normal;
  }

  .pain-grid,
  .service-grid,
  .case-grid,
  .collab-grid,
  .proof-list,
  .process-list,
  .notice-row {
    grid-template-columns: 1fr;
  }

  .case-summary-card .nowrap-meta {
    white-space: normal;
  }

  .segmented {
    width: 100%;
  }

  .segment {
    flex: 1;
    padding: 0 10px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
