/* ============================================================
   CUBIC PIXEL — site.css (v0.28.0)
   Shared stylesheet for the redesigned public site (v4 handoff).
   Tokens, global chrome (header / mobile menu / footers), card
   and row hover systems, filter sidebars, article body styles,
   and all keyframes. Page templates in /templates/site keep the
   design's inline layout styles; everything stateful or hover-
   driven lives here as classes/attributes.
   ============================================================ */

:root {
  --accent: #C2410C;            /* single accent everywhere — themeable */
  --ink: #111111;
  --body: #333333;
  --secondary: #555555;
  --muted: #6E6E73;
  --faint: #86868B;
  --band: #F4F4F2;              /* matches the frosted header tint exactly */
  --band-alt: #ECECEA;
  --fill: #F1F1EF;              /* card fill / image fallback */
  --hairline: #E4E4E1;
  --hairline-2: #E0E0DC;
  --hairline-3: #EBEBE9;
  --input-border: #D6D6D2;
  --success: #0A8A5F;
  --dark-media: #101013;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.cp-band-page { background: var(--band); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 15%, transparent); }
input::placeholder, textarea::placeholder { color: #AEAEA9; }

/* ---------- keyframes ---------- */
@keyframes cpRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* v0.30: load-time clip-mask line rise for listing-page hero titles.
   Same visual mechanism as the scroll-triggered [data-line] reveals
   (text rising out of an overflow-hidden wrapper), but CSS-driven at
   load because these headings sit above the fold — the reveal JS
   correctly leaves in-viewport headings alone. Pure CSS also means it
   still plays with JS disabled, and reduced-motion disables it below. */
@keyframes cpMaskRise { from { transform: translateY(125%); } to { transform: translateY(0); } }
.cp-line-load { display: block; animation: cpMaskRise 0.9s var(--ease) 0.18s both; }
@media (prefers-reduced-motion: reduce) {
  .cp-line-load { animation: none; }
}
/* v0.30: hero video reel layers — sit above the hero photo, faded in by
   site.js once a clip can play through. Never block or replace the image
   until then. */
.cp-hero-clip {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.9s ease;
  pointer-events: none;
}
@keyframes cpPxBlink { 0%, 100% { opacity: 0; transform: translateY(5px); } 35%, 65% { opacity: 1; transform: translateY(0); } }
@keyframes cpScrollPx { 0% { transform: translateY(-8px); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }
@keyframes cpEq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.cp-rise   { animation: cpRise 0.8s var(--ease) both; }
.cp-rise-1 { animation: cpRise 0.7s var(--ease) 0.05s both; }
.cp-rise-2 { animation: cpRise 0.8s var(--ease) 0.18s both; }
.cp-rise-3 { animation: cpRise 0.8s var(--ease) 0.3s both; }
.cp-rise-4 { animation: cpRise 0.8s var(--ease) 0.4s both; }
.cp-rise-5 { animation: cpRise 0.8s var(--ease) 0.52s both; }
.cp-rise-hero { animation: cpRise 1s var(--ease) 0.3s both; }
@media (prefers-reduced-motion: reduce) {
  .cp-rise, .cp-rise-1, .cp-rise-2, .cp-rise-3, .cp-rise-4, .cp-rise-5, .cp-rise-hero { animation: none; }
  [data-scroll-pixel], [data-px] span { animation: none !important; }
}

/* ---------- generic hover helpers ---------- */
.cp-hover-accent { transition: color 0.3s ease; }
.cp-hover-accent:hover { color: var(--accent); }
.cp-link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink); transition: color 0.3s ease, gap 0.3s ease; }
.cp-link-arrow:hover { color: var(--accent); gap: 14px; }
.cp-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  color: #FFFFFF; background: var(--ink); padding: 16px 26px;
  border: 0; cursor: pointer; font-family: inherit;
  transition: background 0.25s ease;
}
.cp-btn:hover { background: var(--accent); color: #FFFFFF; }
a [data-arrow] { transition: color 0.3s ease; }
a:hover [data-arrow] { color: var(--accent) !important; }
.cp-store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--input-border); border-radius: 10px;
  padding: 9px 16px; transition: border-color 0.25s ease;
}
.cp-store-badge:hover { border-color: var(--ink); color: inherit; }

/* ---------- fixed header ---------- */
.cp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(244, 244, 242, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
.cp-header.is-scrolled { border-bottom-color: var(--hairline); }
.cp-header-inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 clamp(20px, 4vw, 48px); height: 72px;
}
.cp-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.cp-nav a { color: var(--ink); transition: color 0.3s ease; }
.cp-nav a:hover, .cp-nav a.is-active { color: var(--accent); }
.cp-header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  color: #FFFFFF; background: var(--ink); padding: 13px 22px;
  flex-shrink: 0; transition: background 0.25s ease;
}
.cp-header-cta:hover { background: var(--accent); color: #FFFFFF; }
.cp-menu-btn {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.cp-menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); }

/* ---------- mobile menu ---------- */
.cp-mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 89;
  background: rgba(244, 244, 242, 0.97);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  display: none; flex-direction: column;
  padding: 8px clamp(20px, 5vw, 32px) 24px;
  box-shadow: 0 24px 48px -24px rgba(17, 17, 17, 0.18);
}
.cp-mobile-menu.is-open { display: flex; }
.cp-mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--ink); border-bottom: 1px solid var(--hairline);
}
.cp-mobile-menu a.is-active { color: var(--accent); }
.cp-mobile-menu a.cp-mobile-cta {
  display: inline-flex; justify-content: center; gap: 10px; margin-top: 20px;
  color: #FFFFFF; background: var(--ink); padding: 16px 22px; border-bottom: 0;
}

/* ---------- reading progress ---------- */
.cp-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: left; transform: scaleX(0);
  z-index: 100;
}

/* ---------- slim footer ---------- */
.cp-footer-slim { margin-top: clamp(64px, 10vh, 110px); border-top: 1px solid var(--hairline-3); padding: 32px clamp(20px, 4vw, 48px); }
.cp-footer-slim.cp-footer-tight { margin-top: 0; }
.cp-footer-slim-inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 12px; color: var(--muted);
}
.cp-footer-slim-inner a { color: var(--muted); transition: color 0.3s ease; }
.cp-footer-slim-inner a:hover { color: var(--accent); }
.cp-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- image slots ---------- */
.cp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-img.cp-img-right { object-position: right center; }  /* right-anchored hero crops */
.cp-img-empty { position: absolute; inset: 0; background: var(--fill); }

/* ---------- collection-page hero (beige band) ---------- */
.cp-hero-fade {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: clamp(120px, 22vw, 340px);
  background: linear-gradient(to right, #F4F4F2 0%, rgba(244, 244, 242, 0.85) 30%, rgba(244, 244, 242, 0) 100%);
  pointer-events: none; z-index: 2;
}
.cp-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; }
.cp-breadcrumb a { display: inline-flex; align-items: center; color: var(--faint); transition: color 0.3s ease; }
.cp-breadcrumb a:hover { color: var(--accent); }
.cp-breadcrumb .cp-crumb-sep { color: #C7C7C2; }
.cp-breadcrumb .cp-crumb-here { color: var(--accent); }

/* ---------- product / blog-teaser card (bordered) ---------- */
.cp-card {
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--hairline-3);
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cp-card:hover { border-color: var(--input-border); transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(17, 17, 17, 0.18); color: inherit; }
.cp-card[data-nav="true"] { cursor: pointer; }
.cp-card [data-card-thumb] { transition: transform 0.6s var(--ease); will-change: transform; }
.cp-card[data-nav="true"]:hover [data-card-thumb] { transform: scale(1.05); }
.cp-card h3 { transition: color 0.3s ease; }
.cp-card[data-nav="true"]:hover h3 { color: var(--accent); }
.cp-card [data-card-arrow] { transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.cp-card[data-nav="true"]:hover [data-card-arrow] { color: var(--accent); transform: translateX(4px); }
.cp-card[data-nav="true"]:hover .cp-arrow-circle { background: transparent; border: 1px solid var(--accent); }

.cp-arrow-circle {
  width: 34px; height: 34px; border-radius: 50%; box-sizing: border-box;
  border: 1px solid transparent;
  background: var(--band-alt); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.cp-pill-soon {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--faint); background: var(--band);
  padding: 5px 12px; border-radius: 999px;
}
.cp-pill-soon .cp-dot { width: 6px; height: 6px; border-radius: 50%; background: #AEAEB2; }
.cp-pill-available {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--success); background: rgba(10, 138, 95, 0.1);
  padding: 5px 12px; border-radius: 999px;
}
.cp-pill-available .cp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ---------- work card (borderless, lift) ---------- */
.cp-workcard {
  display: flex; flex-direction: column; gap: 14px;
  color: inherit;
  transition: transform 0.3s ease;
}
.cp-workcard:hover { transform: translateY(-4px); color: inherit; }
.cp-workcard[data-nav="true"] { cursor: pointer; }
.cp-workcard [data-card-thumb] { transition: transform 0.7s var(--ease); will-change: transform; }
.cp-workcard[data-nav="true"]:hover [data-card-thumb] { transform: scale(1.07); }
.cp-workcard h3 { transition: color 0.3s ease; }
.cp-workcard[data-nav="true"]:hover h3 { color: var(--accent); }
.cp-workcard [data-card-arrow] { transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.cp-workcard[data-nav="true"]:hover [data-card-arrow] { color: var(--accent); transform: translateX(4px); }
.cp-workcard[data-nav="true"]:hover .cp-arrow-circle { background: transparent; border: 1px solid var(--accent); }
/* "VIEW CASE →" pill that follows the cursor over navigable work cards */
.cp-case-pill {
  position: fixed; z-index: 80; pointer-events: none;
  background: var(--ink); color: #FFFFFF;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  padding: 9px 16px; border-radius: 999px;
  transform: translate(-50%, -130%);
  opacity: 0; transition: opacity 0.2s ease;
  white-space: nowrap;
}
.cp-case-pill.is-visible { opacity: 1; }
@media (hover: none) { .cp-case-pill { display: none; } }

/* ---------- blog entry rows ---------- */
.cp-entry-row {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto;
  align-items: center; gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--hairline-2);
  padding: clamp(24px, 3vw, 36px) clamp(8px, 1vw, 16px);
  cursor: pointer; transition: background 0.3s ease;
}
.cp-entry-row:hover { background: #FAFAF8; }
.cp-entry-row [data-entry-thumb] { transition: transform 0.6s var(--ease); will-change: transform; }
.cp-entry-row:hover [data-entry-thumb] { transform: scale(1.06); }
.cp-entry-row h2 { transition: color 0.3s ease; }
.cp-entry-row:hover h2 { color: var(--accent); }
.cp-entry-row .cp-entry-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--band-alt); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cp-entry-row:hover .cp-entry-arrow { background: var(--accent); color: #FFFFFF; transform: translateX(4px); }
.cp-entry-row.is-hidden { display: none; }
.cp-tag-pill {
  border: 1px solid var(--input-border); background: transparent;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--secondary);
  cursor: pointer; font-family: inherit;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cp-tag-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- filter sidebar (blog + playground) ---------- */
.cp-side-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 64px); align-items: start;
  transition: grid-template-columns 0.5s var(--ease);
}
.cp-side-layout.is-collapsed { grid-template-columns: 56px 1fr; }
.cp-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: hidden; overflow-y: auto; }
.cp-side-toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; min-height: 30px; }
.is-collapsed .cp-side-toggle-row { justify-content: center; }
.cp-side-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--faint);
  white-space: nowrap; overflow: hidden; max-width: 120px; opacity: 1;
  transition: max-width 0.45s var(--ease), opacity 0.3s ease;
}
.is-collapsed .cp-side-label { max-width: 0; opacity: 0; }
.cp-side-toggle {
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--faint);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0;
  transition: color 0.25s ease, background 0.25s ease;
}
.cp-side-toggle:hover { color: var(--accent); background: rgba(17, 17, 17, 0.05); }
.cp-side-toggle .cp-pane-fill { opacity: 1; transition: opacity 0.3s ease; }
.is-collapsed .cp-side-toggle .cp-pane-fill { opacity: 0; }
.cp-side-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 auto; }
.is-collapsed.has-filter .cp-side-dot { display: block; }
.cp-side-content { width: 260px; opacity: 1; pointer-events: auto; transition: opacity 0.3s ease; }
.is-collapsed .cp-side-content { opacity: 0; pointer-events: none; }
.cp-side-item {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  padding: 11px 14px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 500; cursor: pointer; text-align: left;
  transition: background 0.25s ease, color 0.25s ease; font-family: inherit;
}
.cp-side-item.cp-side-all { padding: 12px 14px; font-weight: 600; }
.cp-side-item.is-active { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.cp-side-item .cp-side-count { opacity: 0.65; }
.cp-side-item .cp-side-grow { flex: 1; }
.cp-side-divider { border-top: 1px solid var(--hairline-2); margin: 20px 0; }
.cp-side-group-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  box-sizing: border-box; padding: 0 2px; border: 0; background: transparent;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--faint);
  cursor: pointer; font-family: inherit; margin-bottom: 10px;
  transition: color 0.25s ease;
}
.cp-side-group-btn:hover { color: var(--ink); }
.cp-side-group-btn svg { transition: transform 0.35s var(--ease); }
.cp-side-group-btn.is-closed svg { transform: rotate(-90deg); }
.cp-side-group { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.45s var(--ease); }
.cp-side-group.is-closed { grid-template-rows: 0fr; }
.cp-side-group > div { overflow: hidden; min-height: 0; }
.cp-side-list { display: flex; flex-direction: column; padding-bottom: 2px; }
.cp-tag-search {
  display: block; width: 100%; box-sizing: border-box; margin-bottom: 10px;
  padding: 10px 14px; border: 1px solid var(--input-border); background: #FFFFFF;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink);
  outline: none; font-family: inherit;
}
.cp-tag-search::placeholder { letter-spacing: 0.08em; }
.cp-show-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 10px 14px; border: 0; background: transparent; color: var(--accent);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  cursor: pointer; font-family: inherit;
}
.cp-sort-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink);
  cursor: pointer; font-family: inherit; transition: color 0.25s ease;
}
.cp-sort-btn:hover { color: var(--accent); }
.cp-count-label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--faint); }

/* ---------- playground masonry gallery ---------- */
.cp-pg-grid { column-count: 3; column-gap: 24px; font-size: 0; }
@media (max-width: 1280px) { .cp-pg-grid { column-count: 2; } }
@media (max-width: 640px)  { .cp-pg-grid { column-count: 1; } }
.cp-tile { break-inside: avoid; margin-bottom: 24px; display: inline-block; width: 100%; vertical-align: top; font-size: 16px; }
.cp-tile.is-hidden { display: none; }
.cp-tile[data-has-page="true"]  { cursor: pointer; }
.cp-tile[data-has-page="false"] { cursor: default; }
.cp-tile [data-tile-frame] { position: relative; background: var(--fill); border-radius: 14px; overflow: hidden; transition: box-shadow 0.35s ease; }
.cp-tile [data-tile-thumb] { position: absolute; inset: 0; transition: transform 0.6s var(--ease); will-change: transform; }
.cp-tile h3 { transition: color 0.3s ease; }
.cp-tile[data-has-page="true"]:hover [data-tile-frame] { box-shadow: 0 22px 44px -20px rgba(17, 17, 17, 0.28); }
.cp-tile[data-has-page="true"]:hover [data-tile-thumb] { transform: scale(1.05); }
.cp-tile[data-has-page="true"]:hover h3 { color: var(--accent); }
.cp-tile [data-tile-arrow] { transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, background 0.3s ease; }
.cp-tile[data-has-page="true"]:hover [data-tile-arrow] { background: transparent; border: 1px solid var(--accent); color: var(--accent); transform: translateX(4px); }
.cp-type-btn {
  border: 0; background: transparent; padding: 0;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent);
  cursor: pointer; font-family: inherit;
}
.cp-play-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--ink); color: #FFFFFF; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background 0.25s ease;
}
.cp-play-btn.is-playing { background: var(--accent); }
.cp-eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.cp-eq.is-playing { display: flex; }
.cp-eq span { width: 3px; height: 16px; background: var(--accent); transform-origin: bottom; animation: cpEq 0.9s ease-in-out infinite; }
.cp-eq span:nth-child(2) { animation-duration: 0.7s; animation-delay: 0.15s; }
.cp-eq span:nth-child(3) { animation-duration: 1.1s; animation-delay: 0.3s; }

/* ---------- showcase / detail player bar ---------- */
.cp-player-bar {
  display: flex; align-items: center; gap: 16px; margin-top: 16px;
  background: var(--band); border-radius: 999px; padding: 10px 20px 10px 10px;
}
.cp-player-bar .cp-play-btn { width: 44px; height: 44px; font-size: 14px; }
.cp-player-track { margin-top: 6px; height: 3px; background: #DDDDD8; border-radius: 999px; overflow: hidden; }
.cp-player-track > div { width: 0%; height: 100%; background: var(--accent); transition: width 0.2s linear; }

/* ---------- reveal system ---------- */
/* Elements are authored VISIBLE; site.js only hides ones below the
   fold when the animation can actually run — content never stays
   blank if JS fails. */
[data-reveal].cp-pre-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
[data-reveal].cp-revealed { opacity: 1; transform: translateY(0); }
.cp-lines span[data-line] { display: block; }
/* v0.30.6: padding-bottom gives descenders (y g p j) room inside the
   clip mask — overflow crops at the padding edge, so tails render; the
   negative margin cancels the layout gain so headings measure exactly
   as before. Hidden lines now translate 125% (see cpMaskRise + site.js)
   to stay fully concealed despite the taller mask. */
.cp-line-mask { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }

/* ---------- article / case-study / showcase / product bodies ---------- */
.cp-article-body { font-size: 17px; line-height: 1.8; color: var(--body); }
.cp-article-body > p:first-child {
  font-size: 21px; line-height: 1.6; color: var(--ink);
  font-weight: 500; letter-spacing: -0.008em;
}
.cp-article-body p { margin: 0 0 26px 0; }
.cp-article-body h2 { margin: 44px 0 16px 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.cp-article-body h3 { margin: 36px 0 14px 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.cp-article-body a { color: var(--accent); font-weight: 500; }
.cp-article-body blockquote {
  margin: 40px 0; padding: 26px 30px;
  border-left: 2px solid var(--accent); background: var(--band);
  font-size: 22px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.45; color: var(--ink);
}
.cp-article-body blockquote p { margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
/* v0.29 late addition: articles use LIGHT code blocks (never a dark
   theme on the blog). The playground showcase keeps the dark treatment
   via .cp-code-dark on its article wrapper. */
.cp-article-body pre {
  margin: 36px 0; padding: 24px 28px;
  background: #F6F6F4; color: #333333; border: 1px solid #E4E4E1; border-radius: 14px; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; line-height: 1.7;
}
.cp-article-body.cp-code-dark pre {
  background: var(--ink); color: #E8E8E3; border: 0;
}
.cp-article-body pre code { background: transparent; color: inherit; padding: 0; }
.cp-article-body code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.9em; background: var(--fill); padding: 2px 6px; border-radius: 6px;
}
.cp-article-body img { display: block; width: 100%; height: auto; border-radius: 14px; }
.cp-article-body figure { margin: 36px 0; }
.cp-article-body figcaption { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--faint); text-align: center; }
.cp-article-body figcaption strong { font-weight: 600; color: #6E6E73; }
/* v0.29: comment form inputs (rounded 10px per the article design). */
.cp-cinput {
  box-sizing: border-box; width: 100%; padding: 12px 14px;
  border: 1px solid #D6D6D2; border-radius: 10px; background: #FFFFFF;
  font-size: 14px; line-height: 1.6; color: var(--ink); outline: none;
  font-family: inherit; resize: vertical; transition: border-color 0.25s ease;
}
.cp-cinput:focus { border-color: var(--accent); }
.cp-article-body ul, .cp-article-body ol { margin: 0 0 26px 0; padding-left: 24px; }
.cp-article-body li { margin-bottom: 8px; }
.cp-article-body hr { border: 0; border-top: 1px solid var(--hairline-2); margin: 40px 0; }
.cp-article-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.cp-article-body th, .cp-article-body td { border: 1px solid var(--hairline-2); padding: 10px 14px; text-align: left; }
.cp-article-body th { background: var(--band); font-weight: 600; }

/* ---------- article prev / next cards ---------- */
.cp-neighbor:hover { border-color: var(--input-border) !important; transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(17, 17, 17, 0.16); color: inherit; }

/* ---------- values (About) ---------- */
[data-value] { opacity: 0.3; will-change: opacity; }
[data-value] [data-value-bar] { transform: scaleX(0); transform-origin: left; }
@media (prefers-reduced-motion: reduce) {
  [data-value] { opacity: 1 !important; }
  [data-value] [data-value-bar] { transform: scaleX(1) !important; }
}

/* ---------- contact form ---------- */
.cp-input {
  box-sizing: border-box; width: 100%; padding: 14px 16px;
  border: 1px solid var(--input-border); border-radius: 10px;
  background: #FFFFFF; font-size: 15px; color: var(--ink);
  outline: none; font-family: inherit;
  transition: border-color 0.25s ease;
}
.cp-input:focus { border-color: var(--accent); }
textarea.cp-input { line-height: 1.6; resize: vertical; }
.cp-field-label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--faint); }
.cp-topic-pill {
  border: 1px solid var(--input-border); background: transparent; color: var(--ink);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: all 0.25s ease;
}
.cp-topic-pill:hover { border-color: var(--accent); color: var(--accent); }
.cp-topic-pill.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.cp-form-error { font-size: 13px; color: var(--accent); font-weight: 500; }
.cp-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- shared responsive chrome ---------- */
@media (max-width: 900px) {
  .cp-nav { display: none !important; }
  .cp-menu-btn { display: inline-flex !important; }
  .cp-header-cta { display: none !important; }
  .cp-side-layout, .cp-side-layout.is-collapsed { grid-template-columns: 1fr !important; }
  .cp-sidebar { position: static !important; max-height: none !important; }
  .cp-side-toggle-row { display: none !important; }
  .cp-side-content, .is-collapsed .cp-side-content { width: auto !important; opacity: 1 !important; pointer-events: auto !important; }
  .cp-side-dot { display: none !important; }
}
@media (min-width: 901px) {
  .cp-mobile-menu { display: none !important; }
}
@media (max-width: 640px) {
  .cp-entry-row { grid-template-columns: 1fr !important; }
  .cp-entry-row .cp-entry-arrow { display: none !important; }
}

/* v0.33: shared quiet utility links (product CTA + support/privacy nav) */
.cp-util-link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: #555555; transition: color 0.3s ease, gap 0.3s ease; }
.cp-util-link:hover { color: var(--accent); gap: 12px; }
.cp-util-link-lg { gap: 10px; }
.cp-util-link-lg:hover { gap: 14px; }
/* v0.33: arrow gap slide for links whose color must stay as authored */
.cp-gap-slide { transition: color 0.3s ease, gap 0.3s ease; }
.cp-gap-slide:hover { gap: 12px !important; }

/* v0.33.2: coming-soon product cards render monochrome so unavailability
   reads at a glance. Slight brightness lift keeps dark artwork from
   turning into a gray slab; the card chrome (pill, text) is already
   neutral, so only the artwork needs desaturating. */
.cp-card-mono { filter: grayscale(1) brightness(1.04); }
