/* ==========================================================================
   Welling.Studio 2.0 — Global Design System
   Brand: Editorial Hospitality + Premium + Trust + Growth
   Logo Palette: Indigo-Blue → Violet → Coral-Red gradient
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Colors — extracted from logo gradient */
  --brand-deep:    #1a1947;       /* deep indigo (logo left edge) */
  --brand-indigo:  #3b3395;       /* mid-indigo */
  --brand-violet:  #6a3a9c;       /* violet */
  --brand-magenta: #b8428d;       /* pink-magenta */
  --brand-coral:   #ee5a52;       /* coral-red (logo right edge) */

  /* Gradient definitions */
  --grad-brand:    linear-gradient(135deg, #1a1947 0%, #3b3395 22%, #6a3a9c 48%, #b8428d 72%, #ee5a52 100%);
  --grad-brand-soft: linear-gradient(135deg, #6a3a9c 0%, #b8428d 100%);
  --grad-subtle:   linear-gradient(180deg, #faf8f5 0%, #f3eee8 100%);

  /* Neutrals — warm editorial */
  --ink-900:       #1c1a17;
  --ink-800:       #2a2724;
  --ink-700:       #454039;
  --ink-600:       #5d5750;
  --ink-500:       #807872;
  --ink-400:       #a59d96;
  --ink-300:       #c5bfb8;
  --ink-200:       #e3ddd6;
  --ink-100:       #f0ebe3;
  --ink-050:       #f8f5ef;
  --paper:         #fdfcf8;
  --pure-white:    #ffffff;

  /* Demand Role Colors */
  --demand-create:  #b8428d;     /* pink */
  --demand-capture: #3b3395;     /* indigo */
  --demand-convert: #1a1947;     /* deep */

  /* Semantic */
  --bg:            var(--paper);
  --fg:            var(--ink-900);
  --fg-soft:       var(--ink-700);
  --fg-muted:      var(--ink-500);
  --line:          rgba(28, 26, 23, 0.08);
  --line-strong:   rgba(28, 26, 23, 0.14);

  /* Typography */
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:    'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-display:  'Cormorant Garamond', 'Times New Roman', serif;

  /* Sizing */
  --container:     1280px;
  --container-md:  1080px;
  --container-sm:  880px;
  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  /* Spacing scale */
  --space-1:       4px;
  --space-2:       8px;
  --space-3:       12px;
  --space-4:       16px;
  --space-5:       24px;
  --space-6:       32px;
  --space-7:       48px;
  --space-8:       64px;
  --space-9:       96px;
  --space-10:      128px;
  --space-11:      160px;

  /* Shadows */
  --shadow-sm:     0 1px 2px rgba(28, 26, 23, 0.04), 0 1px 3px rgba(28, 26, 23, 0.05);
  --shadow:        0 4px 12px rgba(28, 26, 23, 0.05), 0 2px 4px rgba(28, 26, 23, 0.04);
  --shadow-md:     0 12px 32px rgba(28, 26, 23, 0.08), 0 4px 8px rgba(28, 26, 23, 0.04);
  --shadow-lg:     0 24px 60px rgba(28, 26, 23, 0.10), 0 8px 16px rgba(28, 26, 23, 0.05);

  /* Motion */
  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:      180ms;
  --dur:           320ms;
  --dur-slow:      560ms;

  /* Header height */
  --header-h:      76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-violet); }

::selection { background: var(--brand-violet); color: #fff; }

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
}

h1 { font-size: clamp(2.6rem, 5vw + 1rem, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.5vw + 0.6rem, 3.6rem); line-height: 1.08; }
h3 { font-size: clamp(1.4rem, 1.8vw + 0.6rem, 2.2rem); line-height: 1.18; }
h4 { font-size: clamp(1.15rem, 1.1vw + 0.5rem, 1.5rem); line-height: 1.3; font-weight: 500; }
h5 { font-size: 1.1rem; line-height: 1.4; font-weight: 500; }
h6 { font-size: 0.95rem; line-height: 1.4; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

p { color: var(--fg-soft); }
.lead { font-size: clamp(1.1rem, 1vw + 0.6rem, 1.4rem); line-height: 1.55; color: var(--fg); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
}
.eyebrow.brand-color { color: var(--brand-violet); }
.eyebrow.gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif { font-family: var(--font-serif); font-style: italic; }
.display { font-family: var(--font-display); }

/* All caps brand sentences */
.uppercase-h { text-transform: uppercase; letter-spacing: -0.025em; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 252, 248, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(253, 252, 248, 0.96);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-900);
  flex-shrink: 0;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--grad-brand);
  flex-shrink: 0;
}
.brand-text { line-height: 1; }
.brand-text small { display: block; font-size: 0.6rem; color: var(--fg-muted); letter-spacing: 0.22em; font-weight: 500; margin-top: 4px; }

nav.main-nav { display: flex; align-items: center; gap: var(--space-2); flex: 1; justify-content: center; }
nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--dur) var(--ease);
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--ink-900);
}
nav.main-nav a.active::after {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--grad-brand);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--pure-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  min-width: 260px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--dur) var(--ease);
}
.has-dropdown:hover > .dropdown-panel,
.has-dropdown:focus-within > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 14px;
}
.dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--fg-soft);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--ink-050); color: var(--ink-900); }
.dropdown-panel a small { display: block; font-size: 0.78rem; color: var(--fg-muted); margin-top: 2px; font-weight: 400; }

.nav-cta { flex-shrink: 0; display: flex; align-items: center; gap: var(--space-3); }

/* Mobile menu trigger */
.menu-trigger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-trigger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink-900);
  position: relative;
  transition: all var(--dur) var(--ease);
}
.menu-trigger span::before, .menu-trigger span::after {
  content: ''; position: absolute;
  width: 22px; height: 1.5px;
  background: var(--ink-900);
  left: 0;
  transition: all var(--dur) var(--ease);
}
.menu-trigger span::before { top: -7px; }
.menu-trigger span::after { top: 7px; }
.menu-trigger.is-open span { background: transparent; }
.menu-trigger.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-trigger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  bottom: auto;
  height: auto;
  max-height: calc(100vh - var(--header-h)); 
  background: var(--paper);
  z-index: 90;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  overflow-y: auto;
  padding: var(--space-6) var(--space-5);
}
.mobile-drawer.is-open { transform: translateY(0); visibility: visible; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer nav a small { font-size: 0.8rem; color: var(--fg-muted); font-weight: 400; }
.mobile-drawer nav .sub-nav {
  margin-left: var(--space-5);
  border-top: 1px dashed var(--line);
}
.mobile-drawer nav .sub-nav a {
  padding: 12px;
  font-size: 1rem;
  color: var(--fg-soft);
  border-bottom: none;
}
.mobile-drawer .drawer-cta {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--brand-violet);
  color: var(--pure-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gradient {
  background: var(--grad-brand);
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
}
.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink-900);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.btn-gradient > * { position: relative; z-index: 1; }
.btn-gradient:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gradient:hover::before { opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-300);
}
.btn-outline:hover {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  padding: 10px 18px;
}
.btn-ghost:hover { background: var(--ink-050); }

.btn-light {
  background: var(--paper);
  color: var(--ink-900);
}
.btn-light:hover { background: var(--ink-900); color: var(--paper); }

.btn-large { padding: 18px 34px; font-size: 0.98rem; }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Decorative ---------- */
.divider-dot {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-muted);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.divider-dot::before, .divider-dot::after {
  content: '';
  width: 32px; height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.brand-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

/* ---------- Cards ---------- */
.card {
  background: var(--pure-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Service cards */
.service-card {
  position: relative;
  background: var(--pure-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-card .demand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  margin-bottom: var(--space-4);
}
.demand-tag.create { background: rgba(184, 66, 141, 0.1); color: var(--demand-create); }
.demand-tag.capture { background: rgba(59, 51, 149, 0.1); color: var(--demand-capture); }
.demand-tag.convert { background: rgba(26, 25, 71, 0.1); color: var(--demand-convert); }
.demand-tag.both { background: linear-gradient(135deg, rgba(184, 66, 141, 0.1), rgba(59, 51, 149, 0.1)); color: var(--brand-violet); }

.service-card h3 { margin-bottom: var(--space-3); font-size: 1.5rem; }
.service-card .benefit { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--fg); margin-bottom: var(--space-4); line-height: 1.5; }
.service-card .scope { font-size: 0.92rem; color: var(--fg-soft); margin-bottom: var(--space-5); }
.service-card .card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.service-card .card-link .arrow { transition: transform var(--dur) var(--ease); }
.service-card:hover .card-link .arrow { transform: translateX(6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 var(--space-9);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-soft);
  margin-bottom: var(--space-5);
}
.hero-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw + 1rem, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}
.hero h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero p.lead {
  font-size: clamp(1.1rem, 1.2vw + 0.4rem, 1.45rem);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 560px;
  margin-bottom: var(--space-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  color: var(--fg-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.hero-meta strong { color: var(--ink-900); font-weight: 600; }

/* Hero Visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-100);
}
.hero-visual .visual-canvas {
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0.95;
}
.hero-visual .visual-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero-resort.svg') center/cover;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.hero-visual .label {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.hero-visual .label small {
  display: block;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-visual .corner-mark {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}

/* Decorative star icon */
.star-mark {
  width: 16px; height: 16px;
  display: inline-block;
  background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3 6.5L22 10l-5 5 1 7.5L12 19.5 6 22.5 7 15 2 10l7-1.5z'/></svg>") no-repeat center;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3 6.5L22 10l-5 5 1 7.5L12 19.5 6 22.5 7 15 2 10l7-1.5z'/></svg>") no-repeat center;
  -webkit-mask-size: contain; mask-size: contain;
}

/* ---------- Demand Model Section ---------- */
.demand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.demand-card {
  background: var(--pure-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  position: relative;
}
.demand-card.create { border-top: 3px solid var(--demand-create); }
.demand-card.capture { border-top: 3px solid var(--demand-capture); }
.demand-card .label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.demand-card.create .label-tag { background: rgba(184, 66, 141, 0.1); color: var(--demand-create); }
.demand-card.capture .label-tag { background: rgba(59, 51, 149, 0.1); color: var(--demand-capture); }
.demand-card h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.demand-card .summary {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-soft);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: var(--space-5);
}
.demand-card .row {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}
.demand-card .row h6 { color: var(--fg-muted); margin-bottom: var(--space-3); font-size: 0.7rem; }
.demand-card .example-list { display: flex; flex-wrap: wrap; gap: 8px; }
.demand-card .example-list span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--fg-soft);
}
.demand-card .priority {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--fg-soft);
}
.demand-card .priority strong { color: var(--ink-900); font-weight: 500; }
.demand-card .journey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--ink-050);
  margin-top: var(--space-3);
}
.demand-card.create .journey { background: rgba(184, 66, 141, 0.08); }
.demand-card.capture .journey { background: rgba(59, 51, 149, 0.08); }

/* ---------- Editorial Block ---------- */
.editorial-block {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--line);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: center;
}
.editorial-grid.flip { grid-template-columns: 1.2fr 1fr; }

.editorial-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 0.4rem, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}
.editorial-quote .accent { font-style: italic; color: var(--brand-violet); }
.editorial-quote-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--brand-coral);
  margin-bottom: -12px;
}

.editorial-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-100);
}

/* ---------- Stats / Numbers ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-7) 0;
}
.stat-row .stat .number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw + 0.5rem, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: var(--space-2);
}
.stat-row .stat .number .accent { color: var(--brand-violet); font-style: italic; }
.stat-row .stat .label { color: var(--fg-muted); font-size: 0.85rem; }

/* ---------- 6-Dimension Matrix Grid ---------- */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.matrix-cell {
  background: var(--pure-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5);
  position: relative;
  transition: all var(--dur) var(--ease);
  cursor: default;
  overflow: hidden;
}
.matrix-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: 0;
}
.matrix-cell > * { position: relative; z-index: 1; }
.matrix-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.matrix-cell .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--brand-violet);
  display: block;
  margin-bottom: var(--space-3);
}
.matrix-cell h4 { font-size: 1.25rem; margin-bottom: var(--space-3); font-family: var(--font-display); font-weight: 500; }
.matrix-cell p { font-size: 0.92rem; color: var(--fg-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: var(--space-9) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand { color: var(--paper); margin-bottom: var(--space-4); }
.footer-brand .brand-text small { color: var(--ink-400); }
.footer-brand p { color: var(--ink-400); margin-bottom: var(--space-5); }
.footer-brand .footer-statement {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--paper);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-top: var(--space-4);
}

.footer-col h5 {
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--ink-300); font-size: 0.92rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-size: 0.85rem;
  color: var(--ink-500);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom .legal { display: flex; gap: var(--space-5); }
.footer-bottom .legal a:hover { color: var(--paper); }

/* ---------- CTA Section ---------- */
.cta-block {
  background: var(--ink-900);
  color: var(--paper);
  padding: var(--space-9) 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0.4;
  filter: blur(80px);
}
.cta-block::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0.3;
  filter: blur(100px);
}
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.cta-block h2 {
  color: var(--paper);
  font-size: clamp(2.4rem, 4vw + 0.5rem, 4.4rem);
  margin-bottom: var(--space-4);
  line-height: 1.05;
}
.cta-block p {
  color: var(--ink-200);
  font-size: 1.15rem;
  margin-bottom: var(--space-6);
}
.cta-block .deco-line {
  width: 64px; height: 2px;
  background: var(--grad-brand);
  margin-bottom: var(--space-5);
}
.cta-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
}
.cta-form h4 { color: var(--paper); font-size: 1.4rem; margin-bottom: var(--space-4); }
.cta-form input, .cta-form select, .cta-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  transition: all var(--dur) var(--ease);
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.cta-form select option { color: var(--ink-900); }
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  outline: none;
  border-color: var(--brand-coral);
  background: rgba(255,255,255,0.08);
}
.cta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 80;
  box-shadow: var(--shadow-md);
}
.sticky-cta .btn { width: 100%; }

/* ---------- Form Page Specific ---------- */
.form-page-hero {
  padding: calc(var(--header-h) + 80px) 0 var(--space-7);
  border-bottom: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-8);
  align-items: flex-start;
}
.ga-form {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ga-form .field {
  margin-bottom: var(--space-4);
}
.ga-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--fg);
}
.ga-form label .req { color: var(--brand-coral); }
.ga-form input, .ga-form select, .ga-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: all var(--dur) var(--ease);
  font-size: 0.95rem;
}
.ga-form textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.ga-form input:focus, .ga-form select:focus, .ga-form textarea:focus {
  outline: none;
  border-color: var(--brand-violet);
  background: white;
  box-shadow: 0 0 0 3px rgba(106, 58, 156, 0.1);
}
.ga-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.ga-form .submit-row {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.ga-form .micro-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 380px;
}
.ga-form fieldset { min-width: 0; }
.ga-form .form-stage { margin: 0; padding: 0; }
.ga-form .check-group, .ga-form .radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ga-form label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--fg-soft);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  margin-bottom: 0;
  line-height: 1.4;
}
.ga-form label.check:hover { border-color: var(--brand-violet); }
.ga-form label.check input {
  width: auto;
  margin: 0;
  accent-color: var(--brand-violet);
  flex-shrink: 0;
}
.ga-form .field .err-msg {
  display: none;
  color: var(--brand-coral);
  font-size: 0.8rem;
  margin-top: 6px;
}
.ga-form .field.has-error input,
.ga-form .field.has-error select,
.ga-form .field.has-error textarea {
  border-color: var(--brand-coral);
}
.ga-form .field.has-error .err-msg { display: block; }

.ga-form .form-success {
  display: none;
  background: linear-gradient(135deg, rgba(184, 66, 141, 0.08), rgba(59, 51, 149, 0.08));
  border: 1px solid var(--brand-violet);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  text-align: center;
}
.ga-form .form-success.is-active { display: block; }
.ga-form .form-success h3 { margin-bottom: var(--space-3); }
.ga-form .form-success p { color: var(--fg-soft); }
.ga-form .form-success .icon { font-size: 3rem; line-height: 1; margin-bottom: var(--space-4); }

.aside-list .aside-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  transition: all var(--dur) var(--ease);
}
.aside-list .aside-item:hover { border-color: var(--brand-violet); }
.aside-list .aside-item h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}
.aside-list .aside-item p { font-size: 0.92rem; color: var(--fg-soft); margin: 0; }

/* ---------- Insight Card ---------- */
.insight-card {
  display: block;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--pure-white);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.insight-card .topic-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-violet);
  margin-bottom: var(--space-3);
}
.insight-card .topic-tag.create { color: var(--demand-create); }
.insight-card .topic-tag.capture { color: var(--demand-capture); }
.insight-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: var(--space-3);
}
.insight-card .excerpt {
  color: var(--fg-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: var(--space-4);
}
.insight-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--fg-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.featured-insight {
  background: var(--ink-900);
  color: var(--paper);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.featured-insight::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0.3;
  filter: blur(50px);
}
.featured-insight .topic-tag {
  color: var(--brand-coral);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.featured-insight h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw + 0.5rem, 2.6rem);
  color: var(--paper);
  line-height: 1.18;
  margin-bottom: var(--space-4);
}
.featured-insight p { color: var(--ink-200); margin-bottom: var(--space-5); }
.featured-insight .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-4);
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.featured-insight .meta-row .meta-info { font-size: 0.85rem; color: var(--ink-300); }

/* ---------- Topic Filter ---------- */
.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-4);
}
.topic-filter button {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-soft);
  background: transparent;
  border: 1px solid var(--line);
  transition: all var(--dur) var(--ease);
}
.topic-filter button:hover, .topic-filter button.is-active {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-5);
}
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: var(--space-6); }
.faq-item {
  border-top: 1px solid var(--line);
  padding: var(--space-5) 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
}
.faq-q .toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink-050);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--fg);
  transition: all var(--dur) var(--ease);
}
.faq-item.is-open .faq-q .toggle { background: var(--ink-900); color: var(--paper); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.faq-a-inner { padding: var(--space-4) 0; color: var(--fg-soft); font-size: 1rem; line-height: 1.65; }
.faq-item.is-open .faq-a { max-height: 600px; }

/* ---------- Comparison Table ---------- */
.compare-table {
  margin: var(--space-6) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: var(--space-5);
  border-right: 1px solid var(--line);
}
.compare-row > div:last-child { border-right: none; }
.compare-row.head > div { background: var(--ink-900); color: var(--paper); padding: var(--space-3) var(--space-5); }
.compare-row.head h6 { font-size: 0.78rem; letter-spacing: 0.2em; }
.compare-row ul { font-size: 0.95rem; color: var(--fg-soft); }
.compare-row ul li { padding: 4px 0; }
.compare-row ul li::before { content: '— '; color: var(--fg-muted); margin-right: 8px; }

/* ---------- Process Steps ---------- */
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.process-step {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--space-4);
}
.process-step .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brand-violet);
  font-style: italic;
  display: block;
  margin-bottom: var(--space-3);
}
.process-step h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}
.process-step p { font-size: 0.9rem; color: var(--fg-soft); }
.process-line-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
}

/* ---------- Animated entry ---------- */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Quote / Pull Quote ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw + 0.4rem, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-7) 0;
}
.pull-quote .accent { font-style: italic; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Split Layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

/* ---------- Two Markets Split ---------- */
.market-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.market-card {
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.market-card.global { background: linear-gradient(135deg, #f5f3ee, #efeae0); }
.market-card.china { background: linear-gradient(135deg, #f0eaf9, #e9def4); }
.market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.market-card h3 { font-size: 1.6rem; margin-bottom: var(--space-3); }
.market-card p { color: var(--fg-soft); margin-bottom: var(--space-5); }
.market-card .platform-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--space-5);
}
.market-card .platform-list span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.6);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Service Detail Page ---------- */
.service-detail-hero {
  padding: calc(var(--header-h) + 80px) 0 var(--space-7);
  border-bottom: 1px solid var(--line);
}
.service-detail-hero .hero-tag {
  margin-bottom: var(--space-5);
}
.service-detail-hero h1 {
  font-size: clamp(2.4rem, 5vw + 0.5rem, 5rem);
  margin-bottom: var(--space-4);
}
.service-detail-hero .lead { max-width: 800px; }

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: var(--space-5);
}
.scope-list li {
  padding: var(--space-3) var(--space-4);
  background: var(--ink-050);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.scope-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-violet);
  flex-shrink: 0;
}

.bestfit-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: var(--space-4);
}
.bestfit-list li {
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Insights Topic Pills ---------- */
.topic-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: var(--space-5);
}
.topic-pills .pill {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.topic-pills .pill:hover { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

/* ---------- China specific ---------- */
.china-platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  background: var(--pure-white);
}
.china-platform-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 8px; }
.china-platform-card .small { font-size: 0.82rem; color: var(--brand-violet); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }

/* ---------- Case Card ---------- */
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  background: var(--pure-white);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card .case-visual {
  aspect-ratio: 16/10;
  background: var(--grad-brand);
  position: relative;
  overflow: hidden;
}
.case-card .case-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero-resort.svg') center/cover;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.case-card .case-body { padding: var(--space-5); }
.case-card .demand-tag { margin-bottom: var(--space-3); }
.case-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.3; margin-bottom: var(--space-3); }
.case-card p { font-size: 0.92rem; color: var(--fg-soft); margin-bottom: var(--space-4); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

/* ---------- Animations on View ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .accent, .hero h1 { animation-delay: 0.1s; }
  [data-anim]:nth-child(2) { transition-delay: 0.06s; }
  [data-anim]:nth-child(3) { transition-delay: 0.12s; }
  [data-anim]:nth-child(4) { transition-delay: 0.18s; }
  [data-anim]:nth-child(5) { transition-delay: 0.24s; }
}

/* ---------- Sticky utility ---------- */
.sticky-side {
  position: sticky; top: calc(var(--header-h) + var(--space-5));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  nav.main-nav { display: none; }
  .menu-trigger { display: flex; }
  .nav-cta .btn-outline { display: none; }

  .hero-grid, .editorial-grid, .editorial-grid.flip, .cta-grid, .split, .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .demand-grid, .market-split { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .process-line { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-right: none; border-bottom: 1px solid var(--line); }
  .compare-row > div:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  /* 保证小屏字号可读：用 clamp 下限而非纯 vw */
  h1 { font-size: clamp(2.2rem, 9vw + 0.5rem, 3.4rem); line-height: 1.05; }
  h2 { font-size: clamp(1.7rem, 7vw + 0.3rem, 2.4rem); }
  h3 { font-size: clamp(1.35rem, 5vw + 0.4rem, 1.9rem); }
  .hero h1 { font-size: clamp(2.4rem, 10vw + 0.5rem, 3.6rem); }
  .lead { font-size: 1.05rem; }

  section { padding: clamp(48px, 14vw, 72px) 0; }

  .matrix-grid { grid-template-columns: 1fr; }
  .insight-grid, .case-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .process-line { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .ga-form .field-row { grid-template-columns: 1fr; }
  .ga-form .check-group, .ga-form .radio-group { grid-template-columns: 1fr; }
  .scope-list { grid-template-columns: 1fr; }
  .cta-form .form-row { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }

  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: var(--space-7); }

  /* 服务详情页 / 表单页 hero 顶部 padding 收紧 */
  .service-detail-hero, .form-page-hero { padding-top: calc(var(--header-h) + 48px); }
  .service-detail-hero h1 { font-size: clamp(2.2rem, 9vw + 0.5rem, 3.4rem); }

  .pull-quote { padding: var(--space-5) 0; font-size: clamp(1.4rem, 6vw, 2rem); }

  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .submit-row { flex-direction: column; align-items: stretch; }

  /* hero-meta 移动端换行更自然 */
  .hero-meta { gap: var(--space-3); font-size: 0.8rem; line-height: 1.5; }
  .hero-meta > span:not(:first-child)::before { content: ''; margin-right: var(--space-3); }

  /* hero-visual 缩小高度，避免窄屏过长 */
  .hero-visual { aspect-ratio: 4 / 3; }
  .hero-visual .label { bottom: 16px; left: 16px; right: 16px; font-size: 0.78rem; }
  .hero-visual .corner-mark { top: 16px; right: 16px; width: 40px; height: 40px; }

  /* 触摸目标：所有交互元素不小于 44px */
  .btn { min-height: 44px; }
  nav.main-nav a, .mobile-drawer nav a { min-height: 44px; }
  .faq-q { min-height: 44px; }
  .topic-filter button, .topic-pills .pill { min-height: 40px; }

  /* 防止 iOS 输入框自动缩放：字号 ≥16px */
  .ga-form input, .ga-form select, .ga-form textarea,
  .cta-form input, .cta-form select, .cta-form textarea { font-size: 16px; }

  /* 表格横向滚动保护，避免内容溢出 */
  .compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-row { min-width: 480px; }

  /* 多列分隔符网格改为纵向 */
  .breadcrumb { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .container, .container-md, .container-sm { padding: 0 20px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.85rem; }

  /* 更紧凑的移动端间距 */
  .brand-text { font-size: 0.85rem; }
  .brand-text small { font-size: 0.55rem; }

  /* hero-visual 在超窄屏进一步缩小 */
  .hero-visual { aspect-ratio: 1 / 1; }

  /* stat-row 在超窄屏保持两列但缩小间距 */
  .stat-row { gap: var(--space-3); }

  /* 按钮全宽 */
  .hero-actions .btn { width: 100%; }

  /* 超窄屏 header 只保留 logo + 汉堡菜单，CTA 移入 drawer */
  .nav-cta .btn { display: none; }
  .nav-cta { gap: 0; }

  /* sticky-cta 移动端按钮 */
  .sticky-cta { padding: var(--space-3) var(--space-4); }

  /* 表单在超窄屏收紧内边距 */
  .ga-form { padding: var(--space-5); }
  .ga-form label.check { padding: 10px 12px; font-size: 0.88rem; }
  .featured-insight { padding: var(--space-5); }
  .market-card, .case-card .case-body { padding: var(--space-5); }
}
