/* =========================================================
   Warren Sop - premium business website styling
   ========================================================= */

:root {
  --page-bg: #f3f4f6;
  --card-bg: #ffffff;
  --text-strong: #1f2933;
  --text-body: #5f6b7a;
  --text-soft: #8a94a3;
  --accent: #1e40af;
  --accent-hover: #1d4ed8;
  --number-strong: #162238;
  --white: #ffffff;
  --line: rgba(209, 213, 219, 0.48);
  --radius: 8px;
  --button-radius: 10px;
  --container: 1180px;
  --section-y: 104px;
  --gap: 22px;
  --card-pad: 28px;
  --shadow-card: 0 8px 22px rgba(31, 41, 51, 0.045);
  --shadow-card-hover: 0 12px 28px rgba(31, 41, 51, 0.075);
  --button-height: 48px;
  --button-pad-x: 24px;
  --ease: 0.25s ease-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-strong);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.78;
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 148, 163, 0.55) transparent;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(138, 148, 163, 0.48);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 107, 122, 0.72);
  background-clip: content-box;
}

::selection {
  color: var(--text-strong);
  background: rgba(30, 64, 175, 0.08);
}

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

a,
button,
summary,
.btn,
.contact-button,
.nav-link {
  cursor: pointer;
}

h1,
h2,
h3,
p,
a,
span,
strong {
  min-width: 0;
  overflow-wrap: break-word;
}

p,
li,
small {
  letter-spacing: 0.01em;
}

h1,
h2 {
  margin: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.96;
}

h2 {
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 460;
  line-height: 1.1;
}

section {
  scroll-margin-top: 108px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
}

.site-header.is-top {
  border-bottom-color: transparent;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.site-header.is-top .logo,
.site-header.is-top .nav-link,
.site-header.is-top .menu-toggle {
  color: var(--white);
}

.site-header.is-top .logo-mark {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--container) + 20px);
  height: 78px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 28px;
}

.logo,
.nav-links,
.nav-action,
.btn,
.contact-button {
  display: inline-flex;
  align-items: center;
}

.logo {
  flex: 0 0 auto;
  gap: 12px;
  color: var(--text-strong);
  font-weight: 700;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  min-width: 0;
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--text-strong);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  transition: color var(--ease), background var(--ease), transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover {
  color: var(--accent);
  background: transparent;
}

.nav-link.active {
  color: var(--accent);
  background: transparent;
  font-weight: 500;
}

.nav-action {
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--button-pad-x);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.nav-action:hover {
  color: var(--white);
  background: var(--accent);
}

.nav-action:active {
  transform: scale(0.98);
}

/* Image assets */
.hero {
  background-image:
    linear-gradient(90deg, rgba(31, 41, 51, 0.84), rgba(31, 41, 51, 0.46) 48%, rgba(31, 41, 51, 0.14)),
    url("../images/hero-sop-workflow.png");
}

.about-image-1 {
  background-image: url("../images/about-brand-position.png");
}

.about-image-2 {
  background-image: url("../images/about-core-advantage.png");
}

.about-image-3 {
  background-image: url("../images/about-long-value.png");
}

.case-image-1 {
  background-image: url("../images/case-store-frontdesk-realistic.png");
}

.case-image-2 {
  background-image: url("../images/case-sales-sop.png");
}

.case-image-3 {
  background-image: url("../images/case-team-sop.png");
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 154px 28px 76px;
  color: var(--white);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 120px
  );
  content: "WS";
  color: rgba(255, 255, 255, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(130px, 22vw, 260px);
  letter-spacing: 0.08em;
  line-height: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 360px);
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  max-width: calc(var(--container) + 20px);
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  animation: heroIntro 0.72s ease both;
}

@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn,
.contact-button {
  justify-content: center;
  min-height: var(--button-height);
  padding: 0 var(--button-pad-x);
  border-radius: var(--button-radius);
  font-size: 15px;
  font-weight: 600;
  transform: scale(1);
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: var(--white);
  background: transparent;
}

.btn.primary,
.contact-button {
  border: 1px solid var(--accent);
  color: var(--white);
  background: var(--accent);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn.primary:hover,
.contact-button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.btn:active,
.contact-button:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.contact-button:focus-visible,
.nav-link:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid rgba(30, 64, 175, 0.28);
  outline-offset: 3px;
}

.hero-card {
  position: relative;
  min-height: 178px;
  padding: var(--card-pad);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.12);
  backdrop-filter: blur(18px);
}

.hero-card-slide {
  position: absolute;
  inset: var(--card-pad);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-card-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

/* Shared sections */
.section,
.case-band {
  padding: var(--section-y) 28px;
  background: var(--page-bg);
}

.value-strip {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(248, 250, 252, 0.92);
}

.value-strip p {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.75;
  letter-spacing: 0.02em;
  text-align: center;
}

.section.white {
  background: var(--page-bg);
}

.container,
.case-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2,
.about-copy h2,
.case-copy h2,
.contact-head h2 {
  position: relative;
  padding-bottom: 18px;
}

.section-head h2::after,
.about-copy h2::after,
.case-copy h2::after,
.contact-head h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(42px, 33%, 76px);
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.section-head p,
.case-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.8;
}

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

.card,
.contact-consult {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

.card {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

#cases-list .card::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(30, 64, 175, 0.42);
  content: "WS";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 64, 175, 0.28);
  box-shadow: var(--shadow-card-hover);
}

.card-image {
  position: relative;
  height: 168px;
  background-color: var(--white);
  background-position: center;
  background-size: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  filter: saturate(0.82) contrast(0.98);
  overflow: hidden;
}

.card-image::after,
.about-photo::after {
  position: absolute;
  inset: 0;
  background: rgba(226, 232, 240, 0.12);
  content: "";
  pointer-events: none;
}

.card-body {
  padding: var(--card-pad);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.75;
}

.case-meta {
  display: block;
  margin: -2px 0 12px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.case-pain {
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.6;
}

.numeric-emphasis {
  color: var(--number-strong);
  font-weight: 700;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 64px;
  align-items: center;
}

.about-copy {
  max-width: 560px;
}

.about-copy h2 {
  margin-bottom: 28px;
}

.about-copy p {
  margin: 0;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.9;
}

.about-copy .about-signature {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

.about-points,
.about-principles {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li,
.about-principles li {
  position: relative;
  padding-left: 24px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.65;
}

.about-points li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.about-principles li {
  padding-left: 28px;
}

.about-principles li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.about-photo {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  background-image:
    linear-gradient(90deg, rgba(31, 41, 51, 0.06), rgba(31, 41, 51, 0)),
    url("../images/about-sop-desk-realistic.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.055);
  filter: saturate(0.84) contrast(0.98);
  overflow: hidden;
}

/* Service */
.service-card .card-body {
  display: grid;
  align-content: start;
  min-height: 100%;
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.service-deliverable {
  display: block;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.65;
}

/* Tools */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--gap) * 1.7);
}

.tool-card {
  display: grid;
  align-content: start;
  min-width: 0;
  padding-right: 18px;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--accent);
}

.tool-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 19px;
  font-weight: 620;
  line-height: 1.35;
}

.tool-card p {
  max-width: 300px;
  margin: 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.75;
}

/* Process */
.case-inner {
  display: grid;
}

.case-copy h2,
.case-copy p {
  margin: 0;
}

.case-copy p {
  margin-top: 12px;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 46px;
}

.process-grid::before {
  position: absolute;
  top: 19px;
  right: calc(12.5% + 19px);
  left: calc(12.5% + 19px);
  height: 1px;
  background: rgba(138, 148, 163, 0.32);
  content: "";
}

.process-item {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.process-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.process-item h3 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.3;
}

.process-item p {
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
  overflow: hidden;
  transition: border-color var(--ease);
}

.faq-item + .faq-item {
  padding-top: 6px;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 46px;
  color: var(--text-strong);
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  flex: 0 0 auto;
  color: var(--accent);
  content: "+";
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item p {
  max-width: 760px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.6s ease, opacity 0.35s ease, margin-top 0.35s ease, transform 0.35s ease;
}

.faq-item[open] p {
  max-height: 220px;
  margin-top: 4px;
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials */
.testimonial-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--gap) * 1.25);
}

.testimonial-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
}

.testimonial-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(30, 64, 175, 0.04);
  font-size: 15px;
  font-weight: 700;
}

.testimonial-item p {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.8;
}

.testimonial-item strong {
  grid-column: 2;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.soft-guide {
  margin: 28px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.7;
  text-align: right;
}

.promise-guide {
  margin-top: 30px;
}

.faq-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.faq-more a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--ease), transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-more a:active {
  transform: scale(0.97);
}

.promise-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.promise-item span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.promise-item p {
  margin: 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.75;
}

.contact-intro {
  max-width: 460px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.float-consult {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
}

.float-consult-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 23, 42, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.float-consult-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.float-consult-button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.14);
  transform: scale(1);
  transition: background var(--ease), transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow var(--ease);
}

.float-consult-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.2);
  transform: scale(1.05);
}

.float-consult-button:active {
  transform: scale(0.97);
}

.float-consult-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-consult-card {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: grid;
  width: 196px;
  max-width: min(196px, 85vw);
  gap: 11px;
  padding: 18px 16px 17px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(31, 41, 51, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-consult.open .float-consult-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-qrcode-frame {
  width: 164px;
  max-width: 100%;
  height: 164px;
  margin: 2px 0 4px;
  aspect-ratio: 1;
  box-sizing: border-box;
  border-radius: 6px;
  background: #f8fafc;
  overflow: hidden;
}

.float-consult-card img {
  display: block;
  box-sizing: border-box;
}

.float-qrcode-frame img:not(.is-missing) {
  object-fit: cover !important;
  object-position: center 55% !important;
  padding: 0 !important;
  transform: scale(1.54);
  transform-origin: center 55%;
}

.float-consult-card img.is-missing {
  display: block;
  opacity: 0;
  color: transparent;
  text-indent: -9999px;
}

.float-consult-card strong {
  margin-top: 1px;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.35;
}

.float-consult-card span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.float-copy-wechat {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  transition: color var(--ease), transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.float-copy-wechat:hover {
  color: var(--accent-hover);
}

.float-copy-wechat:active {
  transform: scale(0.97);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 130;
  padding: 10px 16px;
  border-radius: var(--button-radius);
  color: var(--white);
  background: rgba(31, 41, 51, 0.9);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity var(--ease), transform var(--ease);
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible,
  .btn,
  .contact-button,
  .faq-item p,
  .hero-card-slide {
    transition: none;
    transform: none;
  }
}

/* Refined atmosphere and rhythm */
.nav-link {
  transition: color 0.42s ease, background 0.42s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero {
  background-image:
    radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.1), transparent 30%),
    radial-gradient(circle at 82% 58%, rgba(30, 64, 175, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(31, 41, 51, 0.84), rgba(31, 41, 51, 0.46) 48%, rgba(31, 41, 51, 0.14)),
    url("../images/hero-sop-workflow.png");
}

.hero h1 {
  max-width: 740px;
  font-weight: 620;
  letter-spacing: 0.035em;
}

.hero-actions .btn:not(.primary) {
  border-color: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.96);
}

.hero-actions .btn:not(.primary):hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--white);
}

.hero-card-slide.active {
  animation: heroCardBreath 3s ease-in-out infinite;
}

@keyframes heroCardBreath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

#about {
  padding-bottom: 96px;
}

#services {
  padding-top: 96px;
  padding-bottom: 74px;
}

#tools {
  padding-top: 72px;
  padding-bottom: 70px;
}

#cases {
  padding-top: 70px;
  padding-bottom: 118px;
}

#cases-list {
  padding-top: 116px;
  padding-bottom: 92px;
}

.testimonials-section {
  padding-top: 88px;
  padding-bottom: 112px;
}

.faq-section {
  padding-top: 116px;
  padding-bottom: 72px;
}

.promise-section {
  padding-top: 70px;
  padding-bottom: 132px;
}

#contact {
  padding-top: 138px;
}

.section-head p,
.case-copy p,
.card p,
.about-copy p,
.tool-card p,
.process-item p,
.faq-item p,
.promise-item p {
  color: var(--text-soft);
}

.card h3 {
  font-weight: 610;
}

.section-head h2,
.about-copy h2,
.case-copy h2,
.contact-head h2 {
  font-weight: 620;
}

.numeric-emphasis {
  color: #263241;
  font-weight: 760;
}

.card-image,
.about-photo {
  filter: saturate(0.76) contrast(0.96) brightness(0.94);
}

.faq-item p {
  transition: max-height 0.82s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.48s ease, margin-top 0.48s ease, transform 0.48s ease;
}

.reveal-on-scroll {
  transition: opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1), transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-slide.active {
    animation: none;
  }
}

/* Contact and footer */
.contact-head {
  align-items: center;
  margin-bottom: 0;
}

.contact-consult {
  display: grid;
  align-self: center;
  width: 100%;
  max-width: 460px;
  padding: var(--card-pad);
}

.contact-consult h3 {
  margin: 0 0 22px;
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.3;
}

.contact-consult ul {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.contact-consult li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 3px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.6;
}

.contact-consult li span {
  color: var(--text-soft);
  font-size: 14px;
}

.contact-consult li strong {
  color: var(--text-strong);
  font-weight: 650;
}

.contact-consult li small {
  grid-column: 2;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.contact-consult li .contact-note {
  color: #a3acb8;
  font-size: 12px;
}

.copy-wechat {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  transition: color var(--ease), transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.copy-wechat:hover {
  color: var(--accent);
}

.copy-wechat:active {
  transform: scale(0.97);
}

.contact-button {
  width: 100%;
}

.site-footer {
  padding: 34px 28px;
  color: var(--text-soft);
  background: var(--page-bg);
}

.footer-inner {
  display: grid;
  gap: 8px;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 13px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  color: #a3acb8;
  font-size: 13px;
}

.footer-inner span {
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .navbar {
    height: auto;
    min-height: 76px;
    padding: 14px 20px;
    align-items: center;
    gap: 14px;
  }

  .nav-links {
    max-width: calc(100% - 150px);
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .nav-action {
    display: none;
  }

  .hero {
    padding: 136px 20px 72px;
  }

  .hero-inner,
  .section-head,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card-grid,
  .tool-grid,
  .testimonial-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }

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

  .process-grid::before {
    display: none;
  }

  .section,
  .case-band {
    padding: 72px 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 68px;
  }

  .menu-toggle {
    position: relative;
    z-index: 151;
    display: block;
    flex: 0 0 auto;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    padding: 92px 28px 40px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--ease), transform var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.is-top .nav-links .nav-link,
  .nav-links .nav-link {
    width: 100%;
    min-height: 48px;
    color: var(--text-strong);
    font-size: 17px;
  }

  .site-header.is-top .nav-links .nav-link.active,
  .nav-links .nav-link.active,
  .nav-links .nav-link:hover {
    color: var(--accent);
  }
}

@media (max-width: 560px) {
  :root {
    --section-y: 64px;
    --gap: 16px;
    --card-pad: 20px;
    --button-height: 50px;
    --button-pad-x: 18px;
  }

  body {
    min-width: 320px;
    line-height: 1.82;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .navbar {
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 14px;
  }

  .nav-links {
    max-width: none;
    gap: 2px;
    row-gap: 4px;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 500;
  }

  .hero {
    min-height: auto;
    padding: 122px 16px 64px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 34px;
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.72;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .btn,
  .contact-button {
    width: 100%;
  }

  .hero-card {
    width: 100%;
    min-height: 168px;
  }

  .card,
  .contact-consult {
    width: 100%;
  }

  .about-photo {
    min-height: 280px;
  }

  .tool-grid {
    gap: 28px;
  }

  .tool-card {
    padding-right: 0;
  }

  .testimonial-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .section,
  .case-band {
    padding-right: 16px;
    padding-left: 16px;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-consult {
    right: 16px;
    bottom: 16px;
  }

  .float-consult-button {
    width: 48px;
    height: 48px;
  }

  .float-consult-card {
    right: 0;
    width: min(196px, 85vw);
  }

  .float-qrcode-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .section-head {
    gap: 20px;
    margin-bottom: 32px;
  }

  .section-head p,
  .case-copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .soft-guide {
    margin-top: 24px;
    text-align: left;
  }

  .contact-intro {
    margin-top: 16px;
    font-size: 14px;
  }

  .card-image {
    height: 150px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 28px;
  }

  .contact-consult li {
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 15px;
  }

  .contact-consult li small {
    grid-column: 1;
  }
}

@media (max-width: 430px) {
  .navbar {
    gap: 10px;
  }

  .logo {
    gap: 8px;
  }

  .nav-link {
    padding-right: 7px;
    padding-left: 7px;
  }

  .contact-consult li strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  .logo-text {
    display: none;
  }
}

@media (max-width: 375px) {
  .navbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .section,
  .case-band,
  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .nav-link {
    min-height: 34px;
    padding: 0 6px;
    font-size: 11px;
  }
}

/* Final quality pass: preserve structure, refine rhythm and interaction */
.hero h1 {
  font-weight: 610;
  letter-spacing: 0.045em;
}

.hero-actions .btn.primary {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}

.hero-actions .btn:not(.primary) {
  border-color: rgba(30, 64, 175, 0.42);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.97);
}

.hero-actions .btn:not(.primary):hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--white);
}

.hero-card-slide.active {
  animation: heroCardBreath 3.4s ease-in-out infinite;
}

.section-head p,
.case-copy p,
.card p,
.about-copy p,
.tool-card p,
.process-item p,
.faq-item p,
.promise-item p,
.contact-intro,
.case-meta,
.service-deliverable,
.float-consult-card span {
  color: var(--text-soft);
}

.numeric-emphasis {
  color: #253142;
  font-weight: 760;
}

.card-image,
.about-photo {
  filter: saturate(0.74) contrast(0.96) brightness(0.94);
}

#about {
  padding-bottom: 96px;
}

#services {
  padding-top: 96px;
  padding-bottom: 74px;
}

#tools {
  padding-top: 72px;
  padding-bottom: 70px;
}

#cases {
  padding-top: 70px;
  padding-bottom: 118px;
}

#cases-list {
  padding-top: 116px;
  padding-bottom: 92px;
}

.testimonials-section {
  padding-top: 88px;
  padding-bottom: 112px;
}

.faq-section {
  padding-top: 116px;
  padding-bottom: 72px;
}

.promise-section {
  padding-top: 70px;
  padding-bottom: 132px;
}

#contact {
  padding-top: 138px;
}

.nav-link {
  transition: color 0.44s ease, background 0.44s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item p {
  transition: max-height 0.84s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, margin-top 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-consult-card {
  gap: 11px;
  padding: 18px 16px 17px;
  transform: translateY(12px);
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-consult.open .float-consult-card {
  transform: translateY(0);
}

.float-qrcode-frame {
  margin: 2px 0 4px;
}

/* Brand details, motion consistency, and mobile tap safety */
.nav-link {
  transition: color 0.46s ease, background-color 0.46s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn,
.contact-button,
.nav-action,
.copy-wechat,
.float-copy-wechat,
.float-consult-button,
.faq-more a,
.menu-toggle {
  transition-duration: 0.2s;
}

.btn:active,
.contact-button:active,
.nav-action:active,
.copy-wechat:active,
.float-copy-wechat:active,
.float-consult-button:active,
.faq-more a:active,
.menu-toggle:active {
  transform: scale(0.97);
}

.btn,
.contact-button,
.nav-action,
.copy-wechat,
.float-copy-wechat,
.float-consult-button,
.menu-toggle,
.faq-item summary {
  min-height: 44px;
}

.footer-inner {
  gap: 7px;
}

.footer-inner p:first-child {
  color: #8a94a3;
  font-weight: 560;
}

@media (max-width: 768px) {
  .value-strip {
    padding: 20px 16px;
  }

  .value-strip p,
  .soft-guide,
  .contact-intro {
    max-width: 100%;
    text-align: center;
  }

  .btn,
  .contact-button,
  .nav-action,
  .copy-wechat,
  .float-copy-wechat,
  .float-consult-button,
  .menu-toggle,
  .faq-item summary {
    min-height: 44px;
  }
}
