/* ============================================
   Na Bai Network Technology — Site #14
   Blue-Black + Lime Green | Polaroid Hero
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0f172a;
  --accent: #84cc16;
  --accent2: #a3e635;
  --light: #f7fee7;
  --bg: #ffffff;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 60px; /* space for fixed contact bar */
}

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

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

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==============================================
   HERO — Polaroid Photo Stack (Pattern #14)
   ============================================== */
.hero {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px 2rem 100px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(132,204,22,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(163,230,53,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Polaroid Stack */
.polaroid-stack {
  position: relative;
  width: 380px;
  height: 300px;
  margin-bottom: 3rem;
}

.polaroid {
  position: absolute;
  width: 170px;
  background: #fffef9;
  border-radius: 3px;
  padding: 14px 14px 44px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.15),
    0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid:hover {
  transform: rotateZ(0deg) scale(1.06) !important;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.2),
    0 16px 48px rgba(0,0,0,0.35);
  z-index: 10 !important;
}

.polaroid .polaroid-emoji {
  font-size: 2.8rem;
  line-height: 1;
  user-select: none;
}

.polaroid .polaroid-label {
  font-family: 'Courier New', 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.polaroid .polaroid-tape {
  position: absolute;
  top: -10px;
  width: 50px;
  height: 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.p1 { top: 0; left: 10px; transform: rotateZ(-6deg); z-index: 1; }
.p2 { top: 18px; left: 105px; transform: rotateZ(4deg); z-index: 3; }
.p3 { top: 70px; left: 200px; transform: rotateZ(-3deg); z-index: 2; }

/* Hero Text */
.hero-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.hero-heading span {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--gray-400);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

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

.btn-accent:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132,204,22,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-500);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Section Padding */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==============================================
   SERVICES — Information Table (Pattern #14)
   ============================================== */
.services {
  background: var(--white);
}

.services-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.services-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.services-table thead th:first-child {
  border-top: 3px solid var(--accent);
}

.services-table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}
.services-table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.services-table td {
  padding: 18px 24px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-100);
}

.services-table tbody tr:nth-child(odd) {
  background: var(--white);
}

.services-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.services-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-lg);
}
.services-table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-lg) 0;
}

.services-table .svc-name {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.services-table .svc-outcome {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Mobile: cards */
.services-cards {
  display: none;
}

/* ==============================================
   ABOUT — Team Card Grid (Pattern #14)
   ============================================== */
.about {
  background: var(--gray-50);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.team-avatar.av1 { background: #1e40af; }
.team-avatar.av2 { background: #0d9488; }
.team-avatar.av3 { background: #7c3aed; }
.team-avatar.av4 { background: #b45309; }

.team-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==============================================
   INDUSTRIES — Geographic Pins (Pattern #14)
   ============================================== */
.industries {
  background: var(--white);
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: 480px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

/* Map grid lines */
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Map subtle terrain shapes */
.map-terrain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-terrain::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 200px;
  height: 140px;
  background: rgba(132,204,22,0.06);
  border-radius: 40% 60% 50% 50%;
  transform: rotate(-10deg);
}

.map-terrain::after {
  content: '';
  position: absolute;
  bottom: 15%;
  right: 20%;
  width: 180px;
  height: 120px;
  background: rgba(132,204,22,0.04);
  border-radius: 50% 40% 60% 45%;
  transform: rotate(15deg);
}

/* Map pins */
.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transition: transform 0.3s ease;
}

.map-pin:hover {
  transform: scale(1.15);
}

.pin-marker {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(132,204,22,0.35);
  position: relative;
  z-index: 2;
}

.pin-marker::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  transform: rotate(45deg);
}

.pin-city {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 12px;
  text-align: center;
  line-height: 1.3;
}

.pin-city small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.68rem;
}

/* Pin positions */
.pin-shanghai  { top: 42%; left: 58%; }
.pin-beijing   { top: 22%; left: 52%; }
.pin-shenzhen  { top: 72%; left: 42%; }
.pin-guangzhou { top: 68%; left: 35%; }
.pin-hangzhou  { top: 52%; left: 55%; }
.pin-nanjing   { top: 38%; left: 50%; }

/* Map label */
.map-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==============================================
   APPROACH — Agile Sprint Board (Pattern #14)
   ============================================== */
.approach {
  background: var(--gray-100);
}

.sprint-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sprint-column {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sprint-col-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sprint-col-header .count {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.sprint-col-header.bg-backlog { background: var(--text-secondary); }
.sprint-col-header.bg-progress { background: var(--primary); }
.sprint-col-header.bg-done { background: #166534; }

.sprint-cards {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sprint-card {
  background: var(--gray-50);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid var(--gray-300);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sprint-column:first-child .sprint-card {
  border-left-color: #f59e0b;
}

.sprint-column:nth-child(2) .sprint-card {
  border-left-color: #3b82f6;
}

.sprint-column:last-child .sprint-card {
  border-left-color: var(--accent);
}

.sprint-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.sprint-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ==============================================
   CTA — Referral / Resources (Pattern #14)
   ============================================== */
.cta-section {
  background: var(--light);
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.resource-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.resource-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.resource-link:hover {
  gap: 12px;
}

.resource-link .arrow {
  transition: transform var(--transition);
}

.resource-link:hover .arrow {
  transform: translateX(4px);
}

/* ==============================================
   CONTACT — Fixed Bottom Bar (Pattern #14)
   ============================================== */
.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  border-top: 3px solid var(--accent);
  padding: 10px 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 1000;
  font-size: 0.88rem;
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-300);
  white-space: nowrap;
}

.contact-bar-item .cb-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-bar-item a {
  color: var(--gray-300);
  transition: color var(--transition);
}

.contact-bar-item a:hover {
  color: var(--accent);
}

.contact-bar-btn {
  background: var(--accent);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.contact-bar-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(132,204,22,0.3);
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--primary);
  color: var(--gray-400);
  padding: 3rem 2rem 5rem; /* extra bottom padding for contact bar */
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--gray-500);
  line-height: 1.6;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ==============================================
   DOCUMENT PAGES (Privacy & Terms)
   ============================================== */
.doc-page {
  padding: 120px 2rem 120px;
  max-width: 800px;
  margin: 0 auto;
}

.doc-page h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.doc-page .doc-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.doc-page .doc-company {
  background: var(--gray-50);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-page .doc-company strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.doc-page h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary);
}

.doc-page h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-secondary);
}

.doc-page p,
.doc-page li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.doc-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.doc-page ul li {
  margin-bottom: 0.4rem;
}

/* ==============================================
   DRIFT ANIMATIONS
   ============================================== */
.drift {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.drift.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.drift-delay-1 { transition-delay: 0.1s; }
.drift-delay-2 { transition-delay: 0.2s; }
.drift-delay-3 { transition-delay: 0.3s; }
.drift-delay-4 { transition-delay: 0.4s; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 100px 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .polaroid-stack {
    width: 300px;
    height: 260px;
  }

  .polaroid {
    width: 140px;
    padding: 10px 10px 36px;
  }

  .polaroid .polaroid-emoji {
    font-size: 2.2rem;
  }

  .polaroid .polaroid-label {
    font-size: 0.7rem;
  }

  .p1 { left: 0; }
  .p2 { left: 80px; }
  .p3 { left: 160px; top: 60px; }

  /* Services: table → cards */
  .services-table-wrap {
    display: none;
  }

  .services-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .svc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
  }

  .svc-card:nth-child(1) {
    border-top: 3px solid var(--accent);
  }

  .svc-card .svc-card-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .svc-card .svc-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
  }

  .svc-card .svc-card-outcome {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  /* Map */
  .map-container {
    height: 380px;
  }

  .pin-marker {
    width: 32px;
    height: 32px;
  }

  .pin-marker::before {
    width: 10px;
    height: 10px;
  }

  .pin-city {
    font-size: 0.7rem;
  }

  /* Sprint board */
  .sprint-board {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .resource-links {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  /* Contact bar */
  .contact-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 10px 1rem;
    font-size: 0.78rem;
    justify-content: center;
    text-align: center;
  }

  .contact-bar-btn {
    font-size: 0.78rem;
    padding: 6px 16px;
  }

  body {
    padding-bottom: 80px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .polaroid-stack {
    width: 260px;
    height: 230px;
  }

  .polaroid {
    width: 120px;
    padding: 8px 8px 30px;
  }

  .polaroid .polaroid-emoji {
    font-size: 1.8rem;
  }

  .polaroid .polaroid-label {
    font-size: 0.65rem;
  }

  .p1 { left: 0; }
  .p2 { left: 65px; }
  .p3 { left: 130px; top: 55px; }

  .hero {
    padding: 120px 1rem 80px;
  }

  .hero-heading {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .resource-links {
    max-width: 100%;
  }

  .map-container {
    height: 320px;
  }

  .pin-shanghai  { top: 42%; left: 62%; }
  .pin-beijing   { top: 18%; left: 55%; }
  .pin-shenzhen  { top: 74%; left: 40%; }
  .pin-guangzhou { top: 68%; left: 32%; }
  .pin-hangzhou  { top: 52%; left: 58%; }
  .pin-nanjing   { top: 34%; left: 52%; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .drift {
    transition: none;
    opacity: 1;
    transform: none;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
