body { height: auto; overflow: auto; }

/* ============================================================
   OUR WORK — glass card grid
   White canvas, subtle frosted-glass cards in the landing-page
   idiom (clay visual header + text body), full-width expansion
   panels, gold reserved for numerals, tags, and glow.
   ============================================================ */

.cse-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}

/* ── Hero — white, with a faint gold aura ── */
.cse-hero {
  position: relative;
  margin-bottom: 64px;
}
.cse-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -120px;
  width: 560px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.10), transparent 70%);
  pointer-events: none;
}
.cse-eyebrow {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.cse-h1 {
  position: relative;
  font-size: clamp(38px, 6.5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 22px;
}
.cse-lede {
  position: relative;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 62ch;
}

/* Gold gradient text — same treatment as the landing "with your Kyn." */
.cse-gold {
  background: linear-gradient(120deg, #C9A84C 0%, #A07828 60%, #C9961A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .cse-gold {
  background: linear-gradient(120deg, #F0CC60 0%, #D4AF37 60%, #B8930A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Regional footprint map ── */
.cse-map {
  margin-bottom: 72px;
}
.cse-map-h {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 28px;
}
.cse-map-svg {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}
.cse-map-dot {
  fill: var(--text-subtle);
  opacity: 0.28;
}
.cse-map-city {
  fill: #d4af37;
  stroke: color-mix(in srgb, #d4af37 60%, var(--text));
  stroke-width: 1;
}
.cse-map-ring {
  fill: none;
  stroke: #d4af37;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: cse-ping 2.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
@keyframes cse-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  75% { transform: scale(2.3); opacity: 0; }
  100% { transform: scale(2.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cse-map-ring { animation: none; opacity: 0.5; }
}
.cse-map-label {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* ── Grid ── */
.cse-grid {
  display: flex;
  flex-direction: column;
}
.cse-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cse-row + .cse-panel { margin-top: 0; }
.cse-grid .cse-row:not(:first-child) { margin-top: 18px; }

/* ── Cards — subtle frosted glass ── */
.cse-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 30px -18px rgba(46, 42, 31, 0.25);
  transition: box-shadow 0.24s var(--ease), transform 0.24s var(--ease), border-color 0.24s var(--ease);
  scroll-margin-top: 96px;
}
.cse-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 44px -20px rgba(46, 42, 31, 0.30),
    0 6px 20px -12px rgba(212, 175, 55, 0.25);
}
.cse-card--open {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 3px rgba(212, 175, 55, 0.14),
    0 18px 44px -20px rgba(46, 42, 31, 0.28);
}

/* Visual header — landing-page clay tints */
.cse-card-visual {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.cse-card-visual--a { background: #F5F5F5; color: #736B45; }
.cse-card-visual--b { background: #2E2A1F; color: rgba(212, 175, 55, 0.85); }
.cse-card-visual--c { background: #736B45; color: rgba(255, 245, 210, 0.9); }

.cse-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px 15px;
  flex: 1;
}
.cse-card-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.cse-card-tag {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cse-card-title { margin: 0; }
.cse-card-title button {
  all: unset;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--text);
  display: block;
}
/* Stretch the click target across the whole card */
.cse-card-title button::after {
  content: '';
  position: absolute;
  inset: 0;
}
.cse-card-title button:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 18px;
}
.cse-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cse-card-stat {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.cse-card-stat b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-right: 3px;
}
.cse-card-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  flex-shrink: 0;
  transition: transform 0.24s var(--ease), color 0.24s var(--ease), background 0.24s var(--ease);
}
.cse-card-chevron svg { width: 11px; height: 11px; }
.cse-card--open .cse-card-chevron {
  transform: rotate(180deg);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

/* ── Expansion panel — full width below the row ── */
.cse-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease), margin-top 0.34s var(--ease);
}
.cse-panel--open {
  grid-template-rows: 1fr;
  margin-top: 14px;
}
.cse-panel-clip { overflow: hidden; min-height: 0; }
.cse-panel-inner {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 18px;
  padding: 28px 32px 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 14px 40px -22px rgba(46, 42, 31, 0.28),
    0 4px 18px -12px rgba(212, 175, 55, 0.18);
  margin-bottom: 4px;
}
.cse-panel-lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 0 22px;
}
.cse-panel-stats {
  display: flex;
  gap: 32px;
  padding: 16px 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.cse-panel-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cse-panel-stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cse-panel-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.cse-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.cse-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
}
.cse-product { min-width: 0; }
.cse-product-dept {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.cse-product-name {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3px;
}
.cse-product-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Architecture diagram (lead-gen panel) ── */
.cse-flow-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 12px;
  overflow-x: auto;
  background: var(--bg);
  margin-top: 26px;
}
.cse-flow-labels {
  display: grid;
  grid-template-columns: 92px 154px 180px 140px auto;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 8px;
  min-width: 700px;
}
.cse-flow-svg {
  width: 100%;
  min-width: 700px;
  height: auto;
  color: var(--text);
}

/* ── FAQ ── */
.cse-faq {
  margin-top: 110px;
  padding-bottom: 72px;
  max-width: 820px;
}
.cse-faq-title {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}
.cse-faq-item {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cse-faq-item:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-color: var(--border);
}
.cse-faq-q {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 7px;
}
.cse-faq-a {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 66ch;
  margin: 0;
}
.cse-faq-links {
  margin-top: 24px;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.cse-faq-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── Responsive ── */
@media (max-width: 920px) {
  .cse-row { grid-template-columns: 1fr 1fr; }
  .cse-products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cse-page { padding-top: 96px; }
  .cse-row { grid-template-columns: 1fr; }
  .cse-products { grid-template-columns: 1fr; }
  .cse-panel-inner { padding: 22px 20px 24px; }
  .cse-panel-stats { gap: 20px; }
  .cse-hero { margin-bottom: 44px; }
  .cse-map { margin-bottom: 52px; }
  .cse-map-label { font-size: 16px; }
}
