/* ==========================================================================
   iSpiderMedia × site Editorial Design System
   ispiderpr.com palette: Brand Indigo (#2900d2), Lime (#E4F238), Near-black (#181717),
   with neutral greys: --surface #FAFAFA (the site's common grey), --warm #F5F5F5 (one
   step deeper, for cards and boxes) and white. No warm tint anywhere (design requirement).
   Token names are unchanged. Lavender (--lavender) is an accent for one or two
   feature blocks only; do not tint the general surfaces with it.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --font-sans: "Work Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --surface: #fafafa;
  --warm: #f5f5f5;
  --lavender: #efeffc;
  --surface-2: #f5f5ff;
  --brand: #2900d2;
  --ink-deep: #181717;
  --brand-soft: #3a3bd9;
  --lime: #e4f238;
  --lime-hover: #edf866;
  --lime-soft: #f6fac0;
  --ink: #0f1827;
  --muted: #66676d;
  --muted-light: #9da3af;
  --border: #ececec;
  --border-dark: rgba(255, 255, 255, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 46px rgba(24, 23, 23, 0.08);
  --shadow-card: 0 10px 30px rgba(24, 23, 23, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1260px, calc(100% - 64px));
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

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

button,
summary,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
summary {
  cursor: pointer;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

/* Headings follow ispiderpr.com: 500 for titles, 400 for large section titles,
   and only a touch of negative tracking (Chinese glyphs read better that way) */
h1, h2, h3 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Page and section titles wrap into lines of similar length, so a single
   character never drops onto a line of its own (ignored by older browsers) */
h1, h2, h3 {
  text-wrap: balance;
}

/* Short card copy keeps its last line from dwindling to a character or two */
.case-card p,
.insight-card p {
  text-wrap: pretty;
}

p {
  color: var(--muted);
}

:focus-visible {
  outline: 2.5px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
}
.skip:focus {
  top: 16px;
}

/* Containers & Frames */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.frame {
  margin-inline: clamp(10px, 1.4vw, 22px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.section {
  padding-block: clamp(64px, 7.5vw, 112px);
}

.section-ivory {
  background: var(--surface);
}

/* Saturated lavender, kept for one feature block only */
.section-lavender {
  background: var(--lavender);
}

/* Light grey for feature blocks that should sit back from the white page */
.section-warm {
  background: var(--warm);
}

.section-forest {
  background: var(--brand);
  color: #fff;
}

.section-forest h2,
.section-forest h3,
.section-forest h4 {
  color: #fff;
}

.section-forest p {
  color: var(--muted-light);
}

/* ==========================================================================
   site Signature Primitives: Pill Tag, Dual Split CTA, Circle Arrow
   ========================================================================== */

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.section-forest .pill-tag,
.on-dark .pill-tag {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--lime);
}

.on-lime .pill-tag {
  border-color: rgba(15, 24, 39, 0.2);
  background: rgba(15, 24, 39, 0.06);
  color: var(--ink-deep);
}

/* Dual Split CTA: [ Pill Button ] + ( ↗ ) */
.cta-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cta-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.28s var(--ease);
}

.cta-circle svg {
  width: 17px;
  height: 17px;
  transition: transform 0.28s var(--ease);
}

.cta-pair:hover .cta-circle svg,
.icon-arrow:hover svg,
a:hover > .icon-arrow svg {
  transform: translate(2px, -2px);
}

/* Lime variant */
.cta-lime .cta-pill,
.cta-lime .cta-circle,
.btn-lime {
  background: var(--lime);
  color: var(--ink-deep);
}

.cta-lime:hover .cta-pill,
.cta-lime:hover .cta-circle,
.btn-lime:hover {
  background: var(--lime-hover);
}

/* Forest variant */
.cta-forest .cta-pill,
.cta-forest .cta-circle,
.btn-forest {
  background: var(--brand);
  color: #fff;
}

.cta-forest .cta-circle {
  color: var(--lime);
}

.cta-forest:hover .cta-pill,
.cta-forest:hover .cta-circle,
.btn-forest:hover {
  background: var(--ink-deep);
}

/* Ghost / Outline button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}

.btn-outline:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  border: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  border: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

/* Circular Arrow Button (used in cards, rows, insights) */
.icon-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.icon-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

/* Section Headers */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 48px); /* same as the section titles on ispiderpr.com */
  margin-top: 16px;
  font-weight: 400;
}

.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* A long introduction may run the full width instead of stopping at 760px */
.section-head.wide {
  max-width: none;
}

/* ==========================================================================
   Header & Navigation (site Floating Transparent & Crisp Inner Bar)
   ========================================================================== */

/* Fixed to the top of the window (the body leaves room for it below); site.js
   slides it away when the page scrolls down and brings it back on the first
   scroll up (section 10), so the page really scrolls under it */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 86px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(28px, calc((100vw - 1260px) / 2));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header.header-stuck {
  box-shadow: 0 6px 24px rgba(15, 24, 39, 0.06);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* room for the fixed header; anchored sections stop below it */
body {
  padding-top: 86px;
}

html {
  scroll-padding-top: 96px;
}

.site-header.overlay {
  position: absolute;
  top: 16px;
  left: clamp(10px, 1.4vw, 22px);
  right: clamp(10px, 1.4vw, 22px);
  padding-inline: clamp(22px, 3.2vw, 48px);
  background: linear-gradient(180deg, rgba(15, 24, 39, 0.56) 0%, rgba(15, 24, 39, 0) 100%);
  border-bottom: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav > a:not(.nav-cta),
.navdrop-link {
  position: relative;
  padding-block: 6px;
  transition: opacity 0.2s;
}

.main-nav > a:not(.nav-cta):hover,
.main-nav > a.active,
.navdrop-link:hover,
.navdrop-link.active,
.navdrop.open .navdrop-link {
  opacity: 0.78;
}

.navdrop {
  position: relative;
}

/* The label links to the section's own page; the menu itself opens on hover (site.js) */
.navdrop-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--lime);
  border-bottom: 1.5px solid var(--lime);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}

.site-header:not(.overlay) .nav-chevron {
  border-color: var(--brand);
}

.navdrop.open .nav-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 248px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  z-index: 60;
}

/* Invisible strip that keeps the pointer on the menu while crossing the 14px gap */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

/* Desktop: shown while the parent is hovered or focused (.open is set by site.js).
   Phones: the nav is a drawer and the sub-links are simply listed. */
@media (min-width: 901px) {
  .navdrop:not(.open) .dropdown {
    display: none;
  }
}

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.dropdown a:hover {
  background: var(--surface);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.site-header.overlay .header-icon-btn {
  background: #fff;
  border-color: transparent;
  color: var(--ink-deep);
}

.header-icon-btn:hover {
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  white-space: nowrap;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: var(--radius-pill);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   HOMEPAGE SECTION 1: Hero (site Rounded Full-Bleed + Thin Accent Rule)
   ========================================================================== */

.hero-frame {
  position: relative;
  margin: 16px clamp(10px, 1.4vw, 22px) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-deep);
  color: #fff;
}

.hero-slide {
  position: relative;
  min-height: min(760px, calc(100svh - 32px));
  display: grid;
  align-items: center;
  padding: 112px clamp(26px, 5.5vw, 76px);
  background-image:
    linear-gradient(95deg, rgba(15, 24, 39, 0.88) 0%, rgba(24, 23, 23, 0.62) 48%, rgba(24, 23, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 24, 39, 0.68) 0%, rgba(15, 24, 39, 0) 44%),
    var(--hero-img);
  background-size: cover;
  background-position: center 42%;
  animation: heroFade 0.55s var(--ease);
}

@keyframes heroFade {
  from { opacity: 0.45; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

.hero-inner {
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(40px, 4.6vw, 58px); /* same as the ispiderpr.com hero title */
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

/* site signature thin lime accent line beside headline first line */
.headline-line {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.headline-line::after {
  content: "";
  display: inline-block;
  width: clamp(56px, 9vw, 148px);
  height: 1.5px;
  background: var(--lime);
  opacity: 0.85;
  flex-shrink: 0;
}

.hero-headline em {
  font-style: normal;
  color: var(--lime);
}

.hero-desc {
  margin-top: 22px;
  max-width: 520px;
  font-size: 15.5px;
  color: rgba(232, 232, 254, 0.86);
}

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

/* ==========================================================================
   HOMEPAGE SECTION 2: Staggered 3-Card Bento (site Ref-1)
   ========================================================================== */

.bento-section {
  padding-block: clamp(56px, 6.5vw, 96px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.bento-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.bento-card:nth-child(2) {
  margin-top: 44px;
}

.bento-card:nth-child(3) {
  margin-top: 88px;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: #dadada;
}

.bento-card:hover .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-deep);
}

.bento-card h3 {
  font-size: clamp(20px, 1.9vw, 26px);
  margin-top: 18px;
  line-height: 1.3;
}

.bento-card .bento-arrow-row {
  margin-top: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bento-card .bento-desc {
  font-size: 13.5px;
  color: var(--muted);
}

.bento-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1.38;
  background: var(--brand);
}

.bento-media img {
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease);
}

.bento-card:hover .bento-media img {
  transform: scale(1.05);
}

/* Signature site chartreuse organic corner motif on middle card */
.bento-card:nth-child(2) .bento-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 100%, var(--lime) 0 24%, transparent 24.5%),
    radial-gradient(circle at 0% 0%, rgba(228, 242, 56, 0.85) 0 14%, transparent 14.5%);
  pointer-events: none;
}

/* ==========================================================================
   HOMEPAGE SECTION 3: Framed Services Showcase (site Ref-2 & Ref-3)
   ========================================================================== */

/* Same panel as the services block on ispiderpr.com: a rounded surface fading
   from #FAFAFB at the top to white at the bottom */
.services-frame {
  background: linear-gradient(180deg, #fafafb 0%, #fff 100%);
  padding-block: clamp(64px, 7.5vw, 108px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Service card: portrait picture on top, then a strip with the title and an arrow
   (after the client's "Services Imagery" preview). No icon badge, no description. */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.service-card:hover .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-deep);
}

.service-thumb {
  aspect-ratio: 0.76;
  overflow: hidden;
  background: var(--surface-2);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease);
}

.service-card:hover .service-thumb img {
  transform: scale(1.04);
}

/* Progress bars inside the GEO page hero banner */
.geo-bars {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.geo-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
}

.geo-bar.accent {
  width: 72%;
  background: var(--lime);
}

.service-body {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 20px 18px 24px;
}

/* Title on the left, round arrow on the right, both on the card's bottom line */
.service-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.service-foot h3 {
  font-size: 20px;
  line-height: 1.3;
}

.service-foot .icon-arrow {
  width: 44px;
  height: 44px;
  color: var(--brand);
}

.services-cta-row {
  margin-top: clamp(36px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   HOMEPAGE SECTION 4: Forest Green Philosophy + Speech-Bubble Notch + Stats Strip
   ========================================================================== */

.philosophy-wrap {
  margin-top: clamp(20px, 2.5vw, 32px);
}

.philosophy-frame {
  position: relative;
  background: var(--brand);
  color: #fff;
  padding-block: clamp(64px, 7.5vw, 108px);
  overflow: visible;
}

/* Signature site Speech-Bubble Notch on Bottom-Left (Ref-4) */
.philosophy-frame::after {
  content: "";
  position: absolute;
  left: clamp(36px, 6vw, 88px);
  bottom: -24px;
  width: 56px;
  height: 28px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 20% 100%, 0 100%);
  border-bottom-left-radius: 10px;
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.philosophy-card {
  padding: 28px 24px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.philosophy-card:hover {
  border-color: rgba(228, 242, 56, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

.philosophy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(228, 242, 56, 0.14);
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.philosophy-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
  color: #fff;
}

.philosophy-card p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted-light);
}

/* Oversized Stats Strip on White Canvas (site Ref-4) */
.stats-strip {
  padding-block: clamp(56px, 6vw, 88px);
}

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

.stat-item {
  padding: 12px clamp(16px, 2.5vw, 34px);
  border-left: 1px solid var(--border);
}

.stat-item:first-child {
  border-left: 0;
  padding-left: 0;
}

/* Digits in brand indigo; the unit and sign stay black. The figure sits in a
   light grey rounded box with a small grey label underneath - sized after the
   site demo's figures (30px figure, 10px radius, 12px label); our own
   colour rule is kept */
.stat-value {
  display: inline-flex;
  align-items: baseline;
  padding: 9px 14px 11px;
  border-radius: 10px;
  background: var(--warm);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

.stat-num {
  color: var(--brand);
}

.stat-value em {
  font-style: normal;
}

.stat-label {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stats-footnote {
  margin-top: 22px;
  font-size: 12.5px;
  color: #9da3af;
}

/* ==========================================================================
   HOMEPAGE SECTION 5: Full-Width Editorial Visual Banner (site Ref-5)
   ========================================================================== */

.editorial-banner {
  position: relative;
  min-height: clamp(280px, 34vw, 430px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4.5vw, 56px);
  background-image:
    linear-gradient(0deg, rgba(15, 24, 39, 0.82) 0%, rgba(15, 24, 39, 0.25) 60%, rgba(15, 24, 39, 0.08) 100%),
    var(--banner-img);
  background-size: cover;
  background-position: center 45%;
  color: #fff;
}

.editorial-banner h2 {
  max-width: 620px;
  font-size: clamp(26px, 3.2vw, 44px);
  color: #fff;
  line-height: 1.2;
}

.editorial-banner p {
  margin-top: 10px;
  color: rgba(209, 208, 218, 0.86);
  max-width: 520px;
}

/* ==========================================================================
   HOMEPAGE SECTION 6: Industries Split Showcase (site Ref-5 & Ref-6)
   ========================================================================== */

.industries-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.industry-stage {
  position: relative;
}

.industry-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.industry-panel[hidden] {
  display: none;
}

@keyframes panelFade {
  from { opacity: 0.4; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1295:880 is the size of the toned industry pictures in assets/industries/ */
.industry-panel-img {
  position: relative;
  aspect-ratio: 1295 / 880;
  overflow: hidden;
  background: var(--brand);
}

.industry-panel-img img {
  width: 100%;
  height: 100%;
}

.industry-panel-body {
  padding: 24px 26px 26px;
}

.industry-panel-body h3 {
  font-size: 22px;
}

.industry-panel-body p {
  margin-top: 8px;
  font-size: 15px;
}

.industry-rows {
  border-top: 1px solid var(--border);
}

.industry-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: padding-left 0.25s var(--ease), color 0.25s var(--ease);
}

.industry-row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.industry-row strong {
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.industry-row small {
  font-size: 13.5px;
  color: var(--muted);
}

.industry-row:hover,
.industry-row[aria-pressed="true"] {
  padding-left: 10px;
}

.industry-row[aria-pressed="true"] .icon-arrow,
.industry-row:hover .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-deep);
}

.industry-foot-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ==========================================================================
   HOMEPAGE SECTION 7: Global Coverage Framed Split
   ========================================================================== */

.markets-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.market-list {
  border-top: 1px solid var(--border);
}

.market-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 10px;
  border-bottom: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.market-row:hover {
  background: #fff;
  padding-left: 18px;
}

.market-row:hover .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-deep);
}

.market-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market-en {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.market-row h3 {
  font-size: clamp(20px, 2vw, 26px);
}

.market-row p {
  font-size: 14.5px;
}

/* ==========================================================================
   HOMEPAGE SECTION 8: Case Study + Client Testimonial Split (site Ref-6 & Ref-7)
   ========================================================================== */

.showcase-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 470px;
  animation: panelFade 0.35s var(--ease);
}

.showcase-pair[hidden] {
  display: none;
}

/* Left: Full-bleed Photo + Floating Frosted Glass Testimonial Card */
.showcase-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.showcase-photo-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.showcase-photo-card .text-brand-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 140px;
  background: radial-gradient(circle at 80% 20%, #6c6df2, var(--ink-deep) 70%);
  color: rgba(228, 242, 56, 0.25);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.glass-quote {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: rgba(250, 250, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(24, 23, 23, 0.16);
}

.quote-mark {
  display: block;
  font-size: 40px;
  line-height: 0.7;
  color: var(--lime);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 1px 0 rgba(15, 24, 39, 0.12);
}

.glass-quote blockquote {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink);
  font-weight: 500;
}

.glass-quote figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Right: Signature Solid Chartreuse Success Story Card */
.showcase-lime-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--lime);
  color: var(--ink-deep);
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

/* Subtle site diagonal geometric sheen */
.showcase-lime-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.22) 0 48%, transparent 48.2%);
  pointer-events: none;
}

.showcase-lime-top,
.showcase-lime-bottom {
  position: relative;
  z-index: 1;
}

.showcase-lime-card h3 {
  margin-top: 22px;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.2;
  color: var(--ink-deep);
}

.showcase-lime-card p {
  margin-top: 12px;
  font-size: 15.5px;
  color: rgba(24, 23, 23, 0.82);
}

.showcase-kpi {
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  margin-bottom: 20px;
}

.showcase-controls {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Case sector filter: one pill-shaped bar with plain-text tags, as on ispiderpr.com/cases/ */
.case-filter {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.case-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ccc9fb;
  border-radius: var(--radius-pill);
}

.case-pill {
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.case-pill:hover {
  color: var(--brand);
}

.case-pill[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

/* ==========================================================================
   HOMEPAGE SECTION 9: Latest Insights (site Ref-7 & Ref-8)
   ========================================================================== */

/* Article cards (knowledge base, and the "传播洞察" sections on the home and about pages):
   picture on top, then title and summary, a rule, and the publish date at the bottom
   left with a dark round arrow button at the bottom right. */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* On a lavender section (home "传播洞察") the cards are white */
.section-lavender .insight-card {
  background: #fff;
}

.insight-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
}

.insight-thumb img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.insight-card:hover .insight-thumb img {
  transform: scale(1.05);
}

.insight-body {
  flex: 1;
  padding: 24px 12px 26px;
}

.insight-body h3 {
  font-size: 21px;
  line-height: 1.35;
}

.insight-body p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 12px;
  padding-top: 18px;
  border-top: 1px solid #dfdfdf;
}

.insight-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.insight-date::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* Same round arrow as the case and service cards */
.insight-foot .icon-arrow {
  width: 44px;
  height: 44px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.insight-card:hover .insight-foot .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-deep);
}

/* ==========================================================================
   HOMEPAGE SECTION 10: Partners Strip (site Ref-8 Pill Divider)
   ========================================================================== */

.partners-section {
  padding-block: clamp(48px, 5.5vw, 76px);
}

.partners-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.partners-divider::before,
.partners-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: center;
}

.partner-item {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4b5563;
  opacity: 0.78;
  transition: opacity 0.25s, background 0.25s;
}

.partner-item:hover {
  opacity: 1;
  background: var(--surface);
}

.partner-item img {
  height: 30px;
  width: auto;
  max-width: 124px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.25s;
}

.partner-item:hover img {
  filter: none;
}

/* ==========================================================================
   HOMEPAGE SECTION 11: WeChat CTA (same content and layout as ispiderpr.com)
   ========================================================================== */

/* Sits on the white page like any other section (the user does not want it
   inside a dark box); the footer keeps its rounded top as on every page */
.wechat-cta-band {
  padding-block: clamp(36px, 4.5vw, 64px) clamp(64px, 7.5vw, 112px);
}

.wechat-cta {
  display: flex;
  align-items: stretch;
}

.wechat-cta-panel {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 50px;
  background: var(--warm);
  border-radius: 24px;
}

.wechat-cta-panel h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 48px;
  color: var(--brand);
}

.wechat-cta-panel > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* The QR code is the card's background, centred, exactly as on ispiderpr.com.
   The source PNG keeps the code on its right with blank space at the left, so the
   text column sits flush left and the two never overlap. */
.wechat-cta-card {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.92) url("https://ispiderpr.com/wp-content/uploads/2026/12/cta-qr.png") center / contain repeat-x;
}

.wechat-cta-text {
  width: 50%;
  max-width: 50%;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.wechat-cta-text b {
  display: block;
  margin-bottom: 16px;
}

.wechat-cta-photo {
  flex: 1 1 auto;
  border-radius: 24px;
  background: url("https://ispiderpr.com/wp-content/uploads/2026/12/cta-meeting.jpg") center / cover no-repeat;
}

/* Contact page: centred heading, then the address and e-mail on one line */
.contact-head {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(8px, 1.5vw, 20px) clamp(24px, 3vw, 40px);
  text-align: center;
}

.contact-head h1 {
  margin-top: 16px;
  font-size: clamp(36px, 4.4vw, 56px);
}

.contact-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px clamp(40px, 9vw, 160px);
  padding-bottom: clamp(4px, 1vw, 12px);
}

/* on the contact page the WeChat block follows the hero panel closely */
.inner-hero-frame + .wechat-cta-band {
  padding-top: clamp(16px, 2.4vw, 32px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
}

.contact-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-info-item div b {
  display: block;
  color: var(--brand);
  font-size: 17px;
  font-weight: 500;
}

.contact-info-item div span {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--ink);
}

/* Consultation form (no longer used; kept for reference) */
.connect-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.connect-form-card {
  background: var(--warm);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4.2vw, 52px);
  border: 1px solid var(--border);
}

.connect-form-card h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  margin-top: 16px;
}

.connect-form-card > p {
  margin-top: 10px;
  margin-bottom: 28px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 242, 56, 0.35);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.form-status {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}

/* ==========================================================================
   Footer (site Deep Forest Green + Subscribe Bar)
   ========================================================================== */

.site-footer {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-inline: clamp(10px, 1.4vw, 22px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr 1fr;
  gap: 32px;
  padding-block: clamp(44px, 5vw, 64px);
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 14.5px;
  max-width: 280px;
}

.footer-col b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding-block: 5px;
  font-size: 14.5px;
  color: rgba(209, 208, 218, 0.86);
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: var(--lime);
  transform: translateX(3px);
}

/* LinkedIn and the WeChat official account, under the brand in the footer:
   round indigo buttons with white marks, no text (design requirement) */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social-link:hover {
  background: var(--ink-deep);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.subfooter {
  border-top: 1px solid var(--border-dark);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-light);
}

.subfooter a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.subfooter a:hover {
  color: #fff;
}

/* ==========================================================================
   INNER PAGES (Balanced site Left-Copy / Right-Photo Split Hero)
   ========================================================================== */

/* Inner page heroes use a soft top-to-bottom wash */
.inner-hero-frame {
  background: linear-gradient(180deg, #fafafa 0%, rgba(255, 255, 255, 0.5) 68%);
  margin: 16px clamp(10px, 1.4vw, 22px) 0;
  border-radius: var(--radius-xl);
  padding-block: clamp(40px, 5vw, 72px);
}

/* Less room above when a section has no heading of its own */
.section-tight-top {
  padding-top: clamp(32px, 4vw, 56px);
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.inner-hero-grid.no-media {
  grid-template-columns: minmax(0, 760px);
}

.inner-hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin-top: 16px;
  line-height: 1.12;
}

.inner-hero-copy h2 {
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 500;
  color: var(--brand);
  margin-top: 16px;
  line-height: 1.4;
}

.inner-hero-copy p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 520px;
}

.inner-hero-copy .cta-pair {
  margin-top: 26px;
}

.inner-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand);
  box-shadow: var(--shadow-card);
}

.inner-hero-media img {
  width: 100%;
  aspect-ratio: 1.38;
  object-position: center 22%;
}

.inner-geo-banner {
  padding: clamp(36px, 4.5vw, 56px);
  aspect-ratio: 1.38;
  background:
    radial-gradient(circle at 88% 24%, rgba(228, 242, 56, 0.25), transparent 50%),
    linear-gradient(135deg, #2900d2 0%, #2f30b8 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.inner-geo-banner span {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--lime);
  font-weight: 600;
}

.inner-geo-banner b {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.25;
}

.inner-text-banner {
  padding: clamp(44px, 5vw, 68px);
  aspect-ratio: 1.38;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--ink-deep) 100%);
  color: var(--lime);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.inner-text-banner small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
}

/* Inner Split Sections (Challenges, Approach, FAQ, Story) */
.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5.5vw, 80px);
  align-items: start;
}

.split-section .section-head {
  margin-bottom: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.capability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

/* titles in the capability / industry grids are indigo, without a number prefix */
.capability-grid .capability-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--brand);
}

.challenge-list {
  counter-reset: ch;
}

.challenge-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 16px;
  padding: 22px 0;
  border-top: 1px solid var(--border-dark);
}

.challenge-item::before {
  counter-increment: ch;
  content: counter(ch, decimal-leading-zero);
  color: var(--lime);
  font-size: 20px;
  font-weight: 700;
  grid-row: span 2;
}

.challenge-item h3 {
  font-size: 20px;
  color: #fff;
}

.approach-list {
  border-bottom: 1px solid var(--border);
}

.approach-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.approach-item h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

/* site Checkmark Pill Chips (inner-ref-consulting-1) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  background: var(--warm);
  border: 1px solid var(--border);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s var(--ease);
}

.chip > svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--brand);
}

.chip > svg path {
  stroke: var(--lime);
  stroke-width: 1.6;
}

a.chip:hover {
  background: var(--lime);
  border-color: var(--lime);
}

/* FAQ Accordion (site inner-ref-consulting-1) */
.faq-list {
  border-bottom: 1px solid var(--border);
}

.faq-list details {
  border-top: 1px solid var(--border);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

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

.faq-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  /* turns with the same curve as the answer's slide (site.js, section 10) */
  transition: background 0.38s cubic-bezier(0.22, 1, 0.36, 1), transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-list details[open] .faq-plus {
  background: var(--lime);
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 40px 22px 0;
  font-size: 15px;
}

/* Quotes Grid */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quote-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.quote-box blockquote {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink);
}

.quote-box figcaption {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Editorial Prose & Article List */
.prose {
  max-width: 760px;
  font-size: 16.5px;
  line-height: 1.8;
}

.prose p + p {
  margin-top: 18px;
}

.prose .btn-outline,
.prose .cta-pair {
  margin-top: 24px;
}

.article-list {
  border-bottom: 1px solid var(--border);
}

.article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 8px;
  border-top: 1px solid var(--border);
  transition: background 0.2s, padding-left 0.2s;
}

.article-row:hover {
  background: var(--surface);
  padding-left: 16px;
}

.article-row:hover .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
}

.article-row h3 {
  font-size: clamp(19px, 2vw, 25px);
  margin-top: 6px;
}

.article-row p {
  margin-top: 6px;
  font-size: 14.5px;
}

/* Service Deck (Our Services Overview) */
.service-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-deck-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.service-deck-card:first-child {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.service-deck-card:first-child h3 { color: #fff; }
.service-deck-card:first-child p { color: var(--muted-light); }
.service-deck-card:first-child .pill-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--lime);
}

.service-deck-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.service-deck-card .deck-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

/* Inner Bottom CTA Banner */
/* Same breathing room above the footer as between any two sections */
.inner-cta-band {
  margin-bottom: clamp(64px, 7.5vw, 112px);
}

.inner-cta-box {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.inner-cta-box h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin-top: 12px;
}

.inner-cta-box p {
  margin-top: 8px;
}

/* ==========================================================================
   WeChat QR Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(24, 23, 23, 0.62);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

/* Opening: the backdrop fades in while the card rises and settles; the
   .closing class (site.js, section 5) plays it backwards before hiding */
.modal-backdrop:not([hidden]) {
  animation: modalFade 0.3s ease-out;
}

.modal-backdrop:not([hidden]) .modal-card {
  animation: modalIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.closing {
  animation: modalFade 0.25s ease-in reverse forwards;
}

.modal-backdrop.closing .modal-card {
  animation: modalIn 0.25s ease-in reverse forwards;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-backdrop .modal-card {
    animation: none !important;
  }
}

.modal-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 18px;
  line-height: 1;
}

/* the official-account QR (assets/qr.svg, a vector drawing): shown whole */
.modal-card img {
  width: 230px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 20px auto 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Content remains visible even if scripts or observers fail. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible {
    animation: reveal-in 0.65s var(--ease) both;
  }

  @keyframes reveal-in {
    from { transform: translateY(22px); }
    to { transform: translateY(0); }
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .philosophy-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wechat-cta-panel {
    padding: 30px 20px;
  }
  .wechat-cta-panel h2 {
    font-size: 23px;
    line-height: 1.4;
  }
  .wechat-cta-card {
    padding: 0 20px;
  }
  .service-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --wrap: calc(100% - 40px);
  }
  .site-header {
    padding-inline: 20px;
  }
  .main-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.36s;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    background: #fff;
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    z-index: 80;
  }
  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
  }
  .menu-toggle svg {
    transition: transform 0.3s ease;
  }
  .menu-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
  }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--surface);
    margin-top: 6px;
  }
  /* Sub-links are always listed in the drawer, so the arrow means nothing here */
  .nav-chevron {
    display: none;
  }
  .header-actions .header-icon-btn {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .bento-grid,
  .industries-split,
  .markets-split,
  .showcase-pair,
  .connect-grid,
  .inner-hero-grid,
  .split-section,
  .quotes-grid {
    grid-template-columns: 1fr;
  }
  .bento-card:nth-child(n) {
    margin-top: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }
  .stat-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-frame {
    margin: 10px 10px 0;
    border-radius: 22px;
  }
  .hero-slide {
    min-height: 640px;
    padding: 96px 20px 168px;
  }
  .headline-line::after {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .service-card:last-child {
    grid-column: 1 / -1;
  }
  .service-thumb {
    aspect-ratio: 0.85;
  }
  .service-body {
    padding: 14px 12px 16px;
  }
  .service-foot h3 {
    font-size: 16px;
  }
  .service-foot .icon-arrow {
    width: 36px;
    height: 36px;
  }
  .philosophy-cards,
  .consult-form,
  .service-deck {
    grid-template-columns: 1fr;
  }
  .partners-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editorial-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .inner-hero-media img {
    aspect-ratio: 1.65;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* "服务行业" on the service pages: horizontal picture-and-text cards, two per row,
   so they read differently from the four upright cards of "我们的服务" above.
   The four pictures are the home page's industry pictures. */
.sector-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sector-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
  background: var(--warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.sector-card-img {
  flex: 0 0 46%;
  overflow: hidden;
  background: var(--warm);
}

.sector-card-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease);
}

.sector-card:hover .sector-card-img img {
  transform: scale(1.04);
}

.sector-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 28px 28px 26px;
}

.sector-card-body h3 {
  font-size: 20px;
  color: var(--brand);
  text-wrap: balance;
}

.sector-card-body p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .sector-cards {
    grid-template-columns: 1fr;
  }

  .sector-card {
    flex-direction: column;
  }

  .sector-card {
    min-height: 0;
  }

  .sector-card-img {
    flex: none;
    aspect-ratio: 3 / 2;
  }

  .sector-card-body {
    padding: 20px 22px 24px;
  }
}

/* 全球传播资源 page ------------------------------------------------------- */

/* the map is a wide graphic (1.79:1): it keeps its own shape in the hero */
.inner-hero-media.map img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* Coloured blocks that follow each other keep a gap of white between them, so
   two panels never stick together: a framed section after another framed
   section or after the hero panel, and the contact box after any coloured block. */
main > .frame + .frame,
main > .inner-hero-frame + .frame {
  margin-top: 24px;
}

main > .frame + .inner-cta-band,
main > .inner-hero-frame + .inner-cta-band,
main > .photo-band + .inner-cta-band,
main > .section + .inner-cta-band {
  margin-top: 32px;
}

/* "我们的服务" on the service pages: four white cards in a row on the common grey
   band, a lime number at the top and, below it, a light grey panel with the title
   and text. The panel fills the rest of the card, so its top edge and the titles
   line up across the four cards whatever the text length (as on the site demo).
   The whole card turns lime on hover (design requirement). The plain .approach-grid
   (two columns) is still used for the "服务行业" cards. */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.approach-grid.process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.approach-card {
  min-height: 340px;
  padding: 20px;
  gap: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.approach-card:hover {
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-4px);
}

/* the number circle is the card's "button": white once the card is lime */
.approach-card:hover .approach-num {
  background: #fff;
  color: var(--ink-deep);
}

.approach-card .approach-num {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease);
}

/* Fills the card under the number, so every panel starts at the same height */
.approach-panel {
  flex: 1;
  padding: 22px 22px 24px;
  border-radius: 16px;
  background: var(--warm);
  transition: background 0.25s var(--ease);
}

/* on a lime card the description box turns white */
.approach-card:hover .approach-panel {
  background: #fff;
}

.approach-panel h3 {
  font-size: 20px;
  line-height: 1.3;
}

.approach-panel p {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.approach-bullets {
  margin: 16px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.approach-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.approach-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* The button pair under the cards, as on the demo */
.process-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4.5vw, 56px);
}

.scope-note.center {
  text-align: center;
}

@media (max-width: 1100px) {
  .approach-grid.process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach-card {
    min-height: 320px;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .approach-grid.process {
    grid-template-columns: 1fr;
  }

  .approach-card {
    min-height: 0;
  }

  .approach-panel {
    margin-top: 28px;
  }
}

/* 2x2 Case Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Cases index: three per row (matches ispiderpr.com/cases/) */
.cases-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards are hidden while filtered out by the sector bar */
.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* The sector tags on a case card read as grey labels, not as indigo links (design requirement) */
.case-card-tags .pill-tag {
  color: var(--muted);
}

.case-card[hidden] {
  display: none;
}

.cases-empty {
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed #dcdcdc;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: #dadada;
}

.case-card:hover .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
}

.case-card-media {
  aspect-ratio: 1.85;
  overflow: hidden;
  background: var(--brand);
}

.case-card-media img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.case-card:hover .case-card-media img {
  transform: scale(1.04);
}

.case-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 80% 20%, #6c6df2, var(--ink-deep) 75%);
  color: var(--lime);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.case-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.case-card-body h3 {
  font-size: 20px;
  line-height: 1.35;
}

.case-card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}

/* Industry recognition (About Us): photo in a thin white frame, as on ispiderpr.com/about-us/.
   The organiser sits top-left, the award bottom-left. */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4.5vw, 66px);
}

.award-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 607 / 306;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.award-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.award-photo-org,
.award-photo-name {
  position: absolute;
  left: 33px;
  z-index: 1;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.award-photo-org {
  top: 36px;
}

.award-photo-name {
  bottom: 37px;
  color: #f5f5ff;
}

/* Trade Shows & AI Platforms Structured Cards */
.show-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 28px;
}

/* Each show card leads with the exhibition's own (black-and-white) logo */
.show-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

/* the files are trimmed to the mark, so one height fits them all */
.show-logo {
  width: auto;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
  margin-bottom: 14px;
}

.show-card strong {
  font-size: 16px;
  color: var(--ink);
}

.show-card span {
  font-size: 12.5px;
  color: var(--muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* Each platform card leads with the platform's (black) logo, centred */
.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.platform-logo {
  width: auto;
  max-width: 100%;
  height: 36px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* twelve platforms, six per row: overseas first, then the Chinese ones */
.platform-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .platform-grid.six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .platform-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .platform-grid.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.platform-card strong {
  font-size: 16px;
  color: var(--ink);
}

.platform-card span {
  font-size: 13px;
  color: var(--muted);
}

/* Featured Europe Market Card Highlight */
.market-row.featured {
  background: #fff;
  border: 1px solid var(--brand);
  padding: 22px 18px;
  margin-bottom: 6px;
}

.market-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink-deep);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.china-bar {
  margin-top: 28px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.china-bar h3 {
  font-size: 19px;
}

.china-bar p {
  font-size: 14.5px;
  margin-top: 4px;
}

.scope-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .approach-grid,
  .cases-grid,
  .awards-grid,
  .insights-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .cases-grid.three-col {
    grid-template-columns: 1fr;
  }
  /* WeChat CTA stacks: QR card above, photo below */
  .wechat-cta {
    flex-direction: column;
    gap: 20px;
  }
  .wechat-cta-panel {
    flex: 0 0 auto;
  }
  .wechat-cta-panel h2 {
    font-size: 21px;
  }
  .wechat-cta-card {
    padding: 0 0 0 10px;
  }
  .wechat-cta-text {
    font-size: 14px;
  }
  .wechat-cta-text b {
    margin-bottom: 10px;
  }
  .wechat-cta-photo {
    min-height: 45vh;
  }
  /* Sector bar becomes separate pills that keep their label on one line */
  .case-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .case-pill {
    padding: 9px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid #ccc9fb;
    background: #fff;
  }
  .case-pill[aria-pressed="true"] {
    border-color: var(--brand);
  }
}

/* ==========================================================================
   Homepage Industries: Compact 4-Column Single-Row Photo Overlay Strip
   ========================================================================== */

.industries-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 330px;
  background: var(--brand);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.industry-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: transform 0.55s var(--ease);
}

.industry-card:hover > img {
  transform: scale(1.06);
}

.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 24, 39, 0.08) 0%, rgba(15, 24, 39, 0.42) 48%, rgba(15, 24, 39, 0.9) 100%);
}

.industry-num-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.industry-card-body {
  padding: 20px;
  color: #fff;
}

.industry-card-body h3 {
  font-size: 18.5px;
  line-height: 1.3;
  color: #fff;
}

.industry-card-body p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(232, 232, 254, 0.86);
}

@media (max-width: 960px) {
  .industries-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industry-card {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .industries-grid-2x2 {
    grid-template-columns: 1fr;
  }
  .industry-card {
    min-height: 220px;
  }
}

/* ==========================================================================
   Homepage Cases: Seamless Right-to-Left Horizontal Sliding Track
   ========================================================================== */

.case-card-body .pill-tag {
  align-self: flex-start;
}

.cases-marquee {
  position: relative;
  overflow: hidden;
  padding-block: 8px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%);
}

.cases-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: casesSlideLeft var(--marquee-duration, 34s) linear infinite;
}

.cases-marquee:hover .cases-track,
.cases-marquee:focus-within .cases-track {
  animation-play-state: paused;
}

.cases-track .case-card {
  width: clamp(300px, 34vw, 430px);
  flex-shrink: 0;
}

@keyframes casesSlideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cases-track {
    animation: none;
    overflow-x: auto;
  }
}

/* ==========================================================================
   Homepage Global Coverage: site 6-Column Asymmetric Photo Bento (2 + 3)
   Europe highlighted prominently in Row 1, zero empty whitespace
   ========================================================================== */

.markets-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.market-tile {
  grid-column: span 2;
  position: relative;
  min-height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--brand);
  color: #fff;
  isolation: isolate;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.market-tile.europe {
  grid-column: span 4;
  min-height: 270px;
}

.market-tile.usa {
  grid-column: span 2;
  min-height: 270px;
}

.market-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: transform 0.55s var(--ease);
}

a.market-tile:hover > img {
  transform: scale(1.06);
}

.market-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 24, 39, 0.22) 0%, rgba(15, 24, 39, 0.45) 45%, rgba(15, 24, 39, 0.9) 100%);
}

a.market-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.market-tile:hover .icon-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-deep);
}

.market-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-tile-top .pill-tag {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(10px);
}

.market-tile.europe .market-tile-top .pill-tag {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-deep);
}

.market-tile-top .icon-arrow {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.market-tile-bottom h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: #fff;
  line-height: 1.25;
}

.market-tile-bottom p {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(209, 208, 218, 0.88);
  max-width: 460px;
}

@media (max-width: 900px) {
  .markets-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-tile,
  .market-tile.usa {
    grid-column: span 1;
    min-height: 220px;
  }
  .market-tile.europe {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .markets-bento {
    grid-template-columns: 1fr;
  }
  .market-tile,
  .market-tile.europe,
  .market-tile.usa {
    grid-column: span 1;
  }
}

/* ==========================================================================
   ispiderpr.com Palette Adjustments
   The tokens above now carry the ispiderpr.com palette. The rules below give
   surfaces and controls the roles they play on ispiderpr.com: indigo for
   primary actions and highlights, lime as an accent, near-black for large
   dark areas, lavender for soft sections.
   ========================================================================== */

/* Primary actions: indigo pill with white text (.cta-lime / .btn-lime in markup) */
.cta-lime .cta-pill,
.cta-lime .cta-circle,
.btn-lime {
  background: var(--brand);
  color: #fff;
}

.cta-lime:hover .cta-pill,
.cta-lime:hover .cta-circle,
.btn-lime:hover {
  background: var(--brand-soft);
}

.nav-cta {
  background: var(--brand);
  color: #fff;
}

.nav-cta:hover {
  background: var(--brand-soft);
}

.cta-forest .cta-circle {
  color: #fff;
}

.cta-forest:hover .cta-pill,
.cta-forest:hover .cta-circle,
.btn-forest:hover {
  background: var(--brand-soft);
}

/* White outline buttons fill with brand indigo on hover, text turns white (user's rule,
   the same for every white button of this kind) */
.btn-outline:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.service-card:hover {
  border-color: var(--brand);
}

.main-nav > a:not(.nav-cta):hover,
.main-nav > a.active,
.navdrop-link:hover,
.navdrop-link.active,
.navdrop.open .navdrop-link {
  color: var(--brand);
  opacity: 1;
}

.pill-tag {
  border-color: #dcdcdc;
  background: #fff;
  color: var(--brand);
}

:focus-visible {
  outline-color: var(--brand);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  box-shadow: 0 0 0 3px rgba(41, 0, 210, 0.16);
}

/* Large dark surfaces -> near-black (stats band & footer on ispiderpr.com) */
.section-forest,
.site-footer,
.bento-media,
.industry-panel-img,
.showcase-photo-card,
.inner-hero-media,
.case-card-media,
.industry-card,
.market-tile {
  background: var(--ink-deep);
}

.service-deck-card:first-child p {
  color: rgba(255, 255, 255, 0.78);
}

.case-card-placeholder {
  background: radial-gradient(circle at 80% 20%, #6c6df2, var(--brand) 75%);
}

.inner-text-banner {
  background: linear-gradient(135deg, var(--brand) 0%, #2f30b8 100%);
}

/* Footer: grey column titles, light links */
.footer-col b {
  color: var(--muted-light);
}

@media (min-width: 901px) {
  .philosophy-cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* "Why iSpiderMedia": lavender frame with lighter cards (ispiderpr.com "懂全球市场" block) */
.philosophy-frame,
.philosophy-frame::after {
  background: var(--lavender);
  color: var(--ink);
}

.philosophy-frame.section-forest h2 {
  color: var(--ink);
}

.philosophy-frame .pill-tag {
  border-color: #ccc9fb;
  background: var(--surface-2);
  color: var(--brand);
}

.philosophy-card {
  border-color: #e8e8fe;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

.philosophy-card:hover {
  border-color: rgba(41, 0, 210, 0.4);
  background: #fff;
}

.philosophy-num {
  background: #e6e6fd;
  color: var(--brand);
}

.philosophy-card h3 {
  color: var(--ink);
}

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

/* --------------------------------------------------------------------------
   Homepage hero: white base with indigo highlighted words, as on ispiderpr.com
   -------------------------------------------------------------------------- */
.hero-frame {
  background: var(--bg);
  color: var(--ink);
}

/* Narrow wash so the photo stays visible: solid only under the copy, faded out by 64% */
.hero-slide {
  min-height: min(760px, calc(100svh - 118px));
  background-image:
    linear-gradient(90deg, #fff 0%, #fff 22%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0.22) 52%, rgba(255, 255, 255, 0) 64%),
    var(--hero-img);
}

@media (min-width: 1101px) {
  .hero-slide {
    background-position: center, 72% 42%;
  }
}

.hero-eyebrow,
.hero-headline em {
  color: var(--brand);
}

.hero-headline {
  color: var(--ink);
}

.headline-line::after {
  background: #cfcfcf;
  opacity: 1;
}

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

.hero-actions .btn-ghost {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-actions .btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* Narrow screens: copy spans the full width, so fade the photo out vertically.
   The copy sits at the top and ends about 440px down (about 400px on phones), so the
   stops are in pixels and stay just under it whatever the hero height; below that the
   photo shows through untouched. */
@media (max-width: 1100px) {
  .hero-slide {
    align-items: start;
    background-image:
      linear-gradient(180deg, #fff 0px, #fff 450px, rgba(255, 255, 255, 0.4) 495px, rgba(255, 255, 255, 0) 540px),
      var(--hero-img);
  }
}

@media (max-width: 640px) {
  .hero-slide {
    min-height: 640px;
    background-image:
      linear-gradient(180deg, #fff 0px, #fff 412px, rgba(255, 255, 255, 0.4) 458px, rgba(255, 255, 255, 0) 505px),
      var(--hero-img);
  }
}

/* ==========================================================================
   "我们的服务" and "全球传播资源" pages (content and section order follow
   ispiderpr.com; see buildOurServices / buildGlobalCoverage in build.mjs)
   ========================================================================== */

/* Wide picture under the page title */
.hero-banner {
  display: block;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: clamp(24px, 3vw, 40px);
}

.hero-banner.map {
  aspect-ratio: 1.9 / 1;
}

/* Highlighted words in dark-section headings */
.section-forest h2 em {
  font-style: normal;
  color: var(--lime);
}

/* White cards and bars inside a dark band keep their own dark text */
.section-forest .service-card h3,
.section-forest .china-bar h3 {
  color: var(--ink);
}

.section-forest .service-card p,
.section-forest .china-bar p {
  color: var(--muted);
}

/* Lead paragraphs on a dark band */
.section-lead {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.section-lead p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.section-lead p + p {
  margin-top: 14px;
}

/* Statistics: a three-column variant */
.stats-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* "跨文化传播能力": two white cards with check lists */
.go-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.go-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 44px);
  box-shadow: var(--shadow-card);
}

.go-card h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--brand);
}

.check-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}

.check-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--brand);
}

/* "全球核心市场布局": double-outlined cards on a dark band */
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

.region-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  outline: 1px solid #dddddd;
  outline-offset: 5px;
  border-radius: 20px;
  padding: 24px 30px 20px;
}

.region-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 20px;
  font-weight: 500;
}

.region-card h3 a {
  color: #f6f6f6;
}

.region-card h3 .icon-arrow {
  width: 36px;
  height: 36px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.region-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.region-card li {
  padding: 7px 0;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.78);
}

.region-card li a {
  color: #fff;
}

.region-card li a:hover {
  color: var(--lime);
}

@media (max-width: 900px) {
  .stats-grid.three {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats-grid.three .stat-item {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 18px 0 0;
  }
  .stats-grid.three .stat-item:first-child {
    border-top: 0;
    padding-top: 12px;
  }
}

@media (max-width: 720px) {
  .hero-banner {
    aspect-ratio: 1.6 / 1;
  }
  .go-cards,
  .region-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .award-photo {
    padding: 9px;
  }
  .award-photo img {
    border-radius: 12px;
  }
  .award-photo-org,
  .award-photo-name {
    left: 26px;
    font-size: 17px;
  }
  .award-photo-org {
    top: 26px;
  }
  .award-photo-name {
    bottom: 27px;
  }
}

/* ==========================================================================
   "我们的服务" page: layout after the site "Services overview" demo.
   The hero is the shared inner-page split (see INNER PAGES above); the rules
   below are scoped to .svc-overview so the home page keeps its own layouts.
   ========================================================================== */

/* Highlighted words in headings are indigo on white or warm grey */
.svc-overview .section-head h2 em {
  font-style: normal;
  color: var(--brand);
}

/* Figures sit under a hairline, as on the demo */
.stats-row {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(24px, 3.4vw, 44px);
  border-top: 1px solid var(--border);
}

/* Section rhythm on this page: the same comfortable breathing room everywhere */
.svc-overview .section {
  padding-block: clamp(56px, 6.5vw, 96px);
}

.svc-overview .section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* "跨文化传播能力": a centred pair of white cards under the centred heading */
.svc-overview .go-cards {
  max-width: 940px;
  margin-inline: auto;
}

.svc-overview .go-card {
  padding: 0;
  overflow: hidden;
}

/* the title starts on the same left line as the check icons of the list below it
   (the list keeps 28px of side padding) */
.svc-overview .go-card h3 {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 21px;
}

/* the list keeps 28px of air on each side, however narrow the card gets */
.svc-overview .check-list {
  width: calc(100% - 56px);
  margin: 32px auto 36px;
}

/* Services: three per row; the picture is shorter than on the home page and
   the one-line description sits under the title */
.svc-overview .services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.svc-overview .service-thumb {
  aspect-ratio: 1 / 1;
}

.service-card.has-desc .service-body {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}

.service-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Photo band with a frosted card on the left */
.photo-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  margin-bottom: clamp(48px, 6vw, 80px);
  background: var(--ink-deep);
}

.photo-band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.photo-band .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(36px, 5vw, 72px);
}

.band-card {
  max-width: 600px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(24, 23, 23, 0.16);
}

.band-card h2 {
  margin-top: 18px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.25;
}

.band-card p {
  margin-top: 14px;
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.band-card .btn-forest {
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .svc-overview .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .photo-band {
    min-height: 0;
  }

  .band-card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .svc-overview .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .svc-overview .service-thumb {
    aspect-ratio: 1.2;
  }

  /* six cards make three even rows, so the last one need not span */
  .svc-overview .service-card:last-child {
    grid-column: auto;
  }


}

/* The two-column step for the cases grid has to come after its base rule to win;
   the copy further up the file sits above it and never applied. */
@media (max-width: 1100px) {
  .cases-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the case introduction and its industry filters in one visual group. */
.section.section-tight-top:has(.case-filter) {
  padding-top: 16px;
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hero-slide {
    min-height: 0;
    padding: 28px 0 0;
    gap: 24px;
    background: #fff;
  }

  .hero-slide::after {
    content: "";
    display: block;
    height: clamp(200px, 55vw, 280px);
    background:
      linear-gradient(to bottom, #fff, transparent 22%),
      var(--hero-img) 100% 45% / auto 130% no-repeat;
  }

  .hero-inner {
    padding-inline: clamp(16px, 5vw, 24px);
  }

  .hero-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.55;
    letter-spacing: 0.045em;
    text-wrap: balance;
  }

  .hero-headline {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-desc {
    margin-top: 14px;
  }

  .hero-actions {
    margin-top: 20px;
    gap: 8px;
  }

  .hero-actions .cta-pair {
    gap: 6px;
    padding-inline: 14px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    transition: background 0.25s var(--ease);
  }

  .hero-actions .cta-pair:hover {
    background: var(--brand-soft);
  }

  .hero-actions .cta-pair :is(.cta-pill, .cta-circle) {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .hero-actions .cta-circle {
    width: 16px;
  }

  .hero-actions .btn-ghost {
    padding-inline: 14px;
  }

  .section:has(.case-filter) .case-filter {
    margin-bottom: 16px;
  }

  .section:has(.case-filter) .case-pills {
    justify-content: flex-start;
    border-radius: var(--radius-lg);
    gap: 8px;
    padding: 0;
  }

  .section:has(.case-filter) .case-pill {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .inner-hero-frame:has(.contact-info) {
    padding-block: 28px 20px;
  }

  .contact-head {
    padding-block: 0 20px;
  }

  .contact-head h1 {
    margin-top: 10px;
  }

  .contact-head p {
    margin-top: 8px;
  }

  .contact-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
  }

  .contact-info-item {
    align-items: flex-start;
    gap: 12px;
    padding-block: 14px;
  }

  .contact-info-item + .contact-info-item {
    border-top: 1px solid var(--border);
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon svg {
    width: 19px;
    height: 19px;
  }

  .contact-info-item div b {
    font-size: 14px;
  }

  .contact-info-item div span {
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.65;
    word-break: keep-all;
  }
}

@media (max-width: 640px) {
  .services-frame .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .services-frame .service-card:last-child {
    grid-column: auto;
  }

  .services-frame .service-thumb {
    aspect-ratio: 1.8;
  }

  .services-frame .service-card:nth-child(1) .service-thumb img {
    object-position: center 10%;
  }

  .services-frame .service-card:nth-child(2) .service-thumb img {
    object-position: center 35%;
  }

  .services-frame .service-card:nth-child(3) .service-thumb img {
    object-position: center 15%;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .main-nav,
  .menu-toggle svg {
    transition: none;
  }
}

@media (max-width: 640px) {
  .cases-grid,
  .cases-grid.three-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Global resources cards */
.gc-resources .section-head {
  text-align: left;
  margin-inline: 0;
  margin-bottom: 28px;
}

.gc-resources .go-cards {
  gap: 16px;
}

.gc-resources .go-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: none;
  padding: clamp(22px, 2.5vw, 32px);
}

.resource-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.resource-label {
  display: block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gc-resources .go-card h3 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
}

.gc-resources .go-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .gc-resources .section-head {
    margin-bottom: 22px;
  }

  .gc-resources .go-cards {
    gap: 12px;
  }

  .gc-resources .go-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .service-page-hero .cta-pair {
    gap: 6px;
    padding-inline: 14px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    transition: background 0.25s var(--ease);
  }

  .service-page-hero .cta-pair:hover {
    background: var(--brand-soft);
  }

  .service-page-hero .cta-pair :is(.cta-pill, .cta-circle) {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
  }

  .service-page-hero .cta-circle {
    width: 16px;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand img {
    max-width: 135px;
  }

  .header-actions {
    gap: 6px;
  }

  .nav-cta {
    padding-inline: 12px;
  }
}

/* Remove the decorative line beside the home headline. */
.hero-headline .headline-line::after {
  display: none;
}

@media (max-width: 640px) {
  .industries-split .industry-stage {
    display: none;
  }

  .industries-split .industry-row:disabled {
    opacity: 1;
    cursor: default;
  }

  .industries-split .industry-row:disabled:hover,
  .industries-split .industry-row:disabled[aria-pressed="true"] {
    padding-left: 4px;
  }
}

@media (min-width: 641px) {
  .industries-split .industry-panel-body {
    display: none;
  }
}

.svc-overview .service-thumb:has(img[src*="service-kol-updated"]) img {
  object-position: center top;
}

@media (max-width: 640px) {
  .cases-track {
    align-items: flex-start;
  }

  .cases-track .case-card-body {
    padding: 18px;
    gap: 8px;
  }

  .cases-track .case-card-body > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .cases-track .case-card-foot {
    margin-top: 4px;
    padding-top: 4px;
  }
}

@media (max-width: 640px) {
  .cases-marquee.manual-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cases-marquee.manual-scroll::-webkit-scrollbar {
    display: none;
  }

  .cases-marquee.manual-scroll .cases-track {
    animation: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cases-marquee {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .stats-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .stats-grid.three .stat-item,
  .stats-grid.three .stat-item:first-child {
    min-width: 0;
    padding: 0 8px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .stats-grid.three .stat-item:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stats-grid.three .stat-value {
    padding: 7px 4px;
    font-size: clamp(19px, 5.4vw, 28px);
    white-space: nowrap;
  }

  .stats-grid.three .stat-label {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0;
  }
}

@media (max-width: 900px) {
  .section:has(.stats-grid.three) {
    padding-block: 40px;
  }

  .section:has(.stats-grid.three) .section-head {
    margin-bottom: 28px;
  }

  .stats-grid.three .stat-item,
  .stats-grid.three .stat-item:first-child {
    position: relative;
    border: 0;
    padding: 0 4px;
    text-align: center;
  }

  .stats-grid.three .stat-item + .stat-item::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 1px;
    height: 26px;
    background: var(--border);
  }

  .stats-grid.three .stat-value {
    justify-content: center;
    padding: 0;
    background: transparent;
    font-size: clamp(20px, 5.8vw, 26px);
  }

  .stats-grid.three .stat-label {
    min-height: 2.8em;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
    text-wrap: balance;
  }
}

.gc-stats {
  background: #fff;
}

.about-intro h2 em {
  color: var(--brand);
  font-style: normal;
}

@media (min-width: 901px) {
  .gc-stats .stat-item {
    padding-inline: 12px;
    text-align: center;
  }

  .about-intro .split-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(47%, 570px));
    column-gap: clamp(36px, 5vw, 72px);
  }

  .about-intro h2 {
    font-size: clamp(32px, 3.35vw, 48px);
  }

  .about-intro h2 > span {
    display: block;
  }
}

@media (max-width: 640px) {
  .cases-track {
    align-items: stretch;
  }

  .cases-track .case-card-body h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .cases-track .case-card-foot {
    margin-top: auto;
  }
}

@media (max-width: 640px) {
  .hero-desc {
    text-wrap: balance;
  }

  .hero-desc-break {
    display: none;
  }
}

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

.heading-accent em {
  color: var(--brand);
  font-style: normal;
}

@media (max-width: 380px) {
  .section-head .positioning-title {
    font-size: 25px;
  }
}

/* Ensure keyboard focus stays visible on both light and dark surfaces. */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #3032c5;
}

.partner-item {
  min-width: 0;
}

.partner-item img {
  max-width: min(124px, 100%);
}

.philosophy-frame p,
.section-lavender p {
  color: #62636b;
}

.band-card {
  background: rgba(255, 255, 255, 0.97);
}

.band-card p {
  color: #595a61;
}

@media (max-width: 380px) {
  .inner-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-hero-copy h1 .heading-phrase {
    white-space: normal;
  }
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #3032c5;
}

/* Keep the laptop visible when the GEO card is cropped on smaller screens. */
.service-thumb img[src*="service-geo-platforms"] {
  object-position: center 68%;
}

.award-photo-org,
.award-photo-name {
  background: rgba(0, 0, 0, 0.76);
  border-radius: 4px;
  padding: 3px 7px;
}

.mobile-service-overview {
  display: none !important;
}

@media (max-width: 900px) {
  .js-nav .navdrop:not(.open) .dropdown {
    display: none;
  }

  .js-nav .nav-chevron {
    display: inline-block;
  }

  .mobile-service-overview {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .services-frame .service-thumb img[src*="service-geo-platforms"] {
    object-position: center 47%;
  }
}

/* Keep service titles aligned and wrap at meaningful phrase boundaries. */
.services-frame .service-body {
  align-items: flex-start;
}

.services-frame .service-foot {
  align-items: center;
}

.services-frame .service-foot h3 {
  min-width: 0;
}

.services-frame .service-title-phrase {
  display: inline-block;
}

@media (min-width: 1101px) {
  .services-frame .service-foot {
    min-height: clamp(39px, 3.25vw, 52px);
  }

  .services-frame .service-foot h3 {
    font-size: clamp(15px, 1.25vw, 20px);
  }
}


/* Balance short paragraphs to avoid isolated words on the final line. */
main p,
main .section-head p {
  text-wrap: balance;
}

/* 404 */
.not-found .cta-pair {
  margin-top: 28px;
}

/* Phones: long English labels stay on one line inside their pill */
@media (max-width: 720px) {
  .pill-tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    white-space: nowrap;
  }

  /* the GEO "why" heading breaks after the comma on wider screens; on phones
     that forced break leaves a two-character third line */
  .philosophy-frame h2 br {
    display: none;
  }
}

/* Reading layout for the website terms and privacy policy. */
.legal-prose {
  max-width: 760px;
}

.legal-prose h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-block: 2rem 0.75rem;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

/* case card summary: clamp to three lines so long descriptions end with an ellipsis */
.case-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
