/* Sublime Labs — content pages (about, careers, blog, legal)
   Loads after styles.css and reuses its tokens (--ink, --accent, --bg, etc.) */

.page { position: relative; overflow-x: clip; }

/* ---------- hero ---------- */
.page-hero { position: relative; padding: 76px 0 40px; text-align: center; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(34px, 4.8vw, 58px); font-weight: 700;
  letter-spacing: -0.02em; margin: 14px 0 0;
}
.page-lead {
  font-size: 19px; line-height: 1.6; color: var(--ink-60);
  max-width: 640px; margin: 18px auto 0;
}

/* decorative blurred slime-splat blobs behind the hero (pure CSS funk) */
.page-blob {
  position: absolute; top: 0; width: 300px; height: auto;
  opacity: .22; filter: blur(3px) saturate(1.1);
  pointer-events: none; z-index: 0; user-select: none;
  animation: blobFloat 11s ease-in-out infinite alternate;
}
.page-blob--a { left: -100px; top: -50px; width: 320px; }
.page-blob--b { right: -90px; top: 0; width: 220px; animation-delay: -4.5s; }
@keyframes blobFloat {
  from { transform: translateY(0) rotate(-2deg) scale(1); }
  to   { transform: translateY(20px) rotate(2deg) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .page-blob { animation: none; } }
.no-motion .page-blob { animation: none; }

/* the signature bouncing cube, recentred for page heroes */
.page-hero .slime-stage { margin: 6px auto 22px; }

/* ---------- generic sections ---------- */
.page-section { padding: 44px 0; }
.section-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.3px; }
.section-head p { color: var(--ink-60); margin-top: 12px; font-size: 17px; }

/* ---------- card grids (services, values, perks) ---------- */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.s-card {
  background: var(--card); border: 1px solid var(--ink-12); border-radius: var(--r-lg);
  padding: 26px; box-shadow: 0 24px 48px -30px rgba(27,42,31,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.s-card:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -28px rgba(27,42,31,.38); }
.s-ico {
  width: 50px; height: 50px; border-radius: 14px; background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.s-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.s-card p { color: var(--ink-60); font-size: 15.5px; }

/* ---------- stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat-row .stat { border-top: 1.5px solid var(--ink-12); padding-top: 22px; }
.stat-row .stat-num { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 56px); font-weight: 700; line-height: 1; color: var(--accent); }
.stat-row .stat-label { color: var(--ink-60); margin-top: 10px; font-size: 15.5px; }

/* ---------- two-column prose block (about story) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.split p { color: var(--ink-60); margin-bottom: 14px; }
.split-visual {
  background: var(--sage); border-radius: var(--r-lg); padding: 36px; position: relative; overflow: hidden;
  min-height: 260px; display: flex; align-items: center; justify-content: center;
}

/* ---------- careers roles ---------- */
.role-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.role {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--card); border: 1px solid var(--ink-12); border-radius: var(--r-md);
  padding: 20px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.role:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 18px 36px -26px rgba(27,42,31,.4); }
.role h3 { font-size: 18px; font-weight: 700; }
.role .role-meta { color: var(--ink-60); font-size: 14px; margin-top: 4px; }
.role .role-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--ink); flex-shrink: 0; }
.role .role-go .arr { transition: transform .18s ease; }
.role:hover .role-go .arr { transform: translateX(4px); }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  background: var(--card); border: 1px solid var(--ink-12); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -28px rgba(27,42,31,.38); }
.post-thumb { height: 158px; position: relative; }
.post-thumb.g1 { background: linear-gradient(135deg, #A8C922, #87A41C); }
.post-thumb.g2 { background: linear-gradient(135deg, #1B2A1F, #3a5a44); }
.post-thumb.g3 { background: linear-gradient(135deg, #D8E3C5, #A8C922); }
.post-thumb.g4 { background: linear-gradient(135deg, #C6F432, #A8C922); }
.post-thumb.g5 { background: linear-gradient(135deg, #87A41C, #1B2A1F); }
.post-thumb.g6 { background: linear-gradient(135deg, #FAF6ED, #D8E3C5); }
.post-thumb .post-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.post-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-body h3 { font-size: 18.5px; font-weight: 700; line-height: 1.25; }
.post-body p { color: var(--ink-60); font-size: 14.5px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-40); margin-top: 2px; }
.tag-pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 4px 11px; width: fit-content;
}
.post--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.post--featured .post-thumb { height: auto; min-height: 280px; }
.post--featured .post-body { padding: 36px 38px; gap: 12px; }
.post--featured .post-body h3 { font-size: clamp(24px, 2.6vw, 34px); }
.post--featured .post-body p { font-size: 16px; }

/* ---------- legal prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose > p:first-of-type { font-size: 18px; color: var(--ink-60); }
.prose h2 { font-size: 23px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.2px; }
.prose h3 { font-size: 17.5px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { color: rgba(27,42,31,.8); font-size: 16.5px; line-height: 1.72; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent); }
.prose a:hover { text-decoration-thickness: 2px; }
.legal-meta { font-size: 14.5px; color: var(--ink-40); margin-top: 4px; }
.callout {
  background: var(--sage); border-left: 4px solid var(--accent); border-radius: var(--r-md);
  padding: 18px 22px; margin: 18px 0 22px;
}
.callout p { margin: 0; color: var(--ink); font-size: 16px; }

/* ---------- page CTA band ---------- */
.page-cta { background: var(--ink); color: var(--bg); text-align: center; border-radius: 0; padding: 84px 0; margin-top: 24px; }
.page-cta h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -0.4px; }
.page-cta p { color: rgba(250,246,237,.7); font-size: 18px; margin: 14px auto 30px; max-width: 520px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .card-grid.cols-3, .post-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .post--featured { grid-template-columns: 1fr; }
  .post--featured .post-thumb { min-height: 200px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 52px 0 28px; }
  .card-grid.cols-2, .card-grid.cols-3, .post-grid, .stat-row { grid-template-columns: 1fr; }
  .stat-row { gap: 20px; }
  .role { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-cta { padding: 60px 0; }
  .page-blob { display: none; }
}
