/* =========================================================================
   Kuumba — Services overview components (services/index.html only)
   Loaded after main.css and pages.css. Reuses the home page's .svc card
   visuals (blurred twin image, slow drift, de-blur on hover) in a grid.
   Order: 1 overview hero + group index · 2 service groups + cards ·
   3 three rules · 4 "one memory" band
   ========================================================================= */

/* ---------- 1. Overview hero ---------- */
.ov-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; }
.ov-hero__title { max-width: 15ch; }
.ov-hero .phero__sub { max-width: 50ch; }

.ov-index { border-top: 1px solid var(--line); }
.ov-index__row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 20px; align-items: center; gap: 4px 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease-out);
}
.ov-index__row:hover { background: rgba(28, 26, 24, .025); }
.ov-index__n { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-index__name { display: grid; gap: 2px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; }
.ov-index__name small { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.ov-index__count { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ov-index__row .ic { width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); transition: transform .35s var(--ease-out), color .3s; }
.ov-index__row:hover .ic { color: var(--ink); transform: rotate(90deg) translateX(3px); }

.ov-hero__media { min-height: 0; margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 1280 / 420; }
.ov-hero__media .phero__img { object-position: 50% 60%; }

@media (max-width: 900px) {
  .ov-hero__grid { grid-template-columns: 1fr; }
  .ov-hero__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .ov-index__row { grid-template-columns: 28px minmax(0, 1fr) 18px; }
  .ov-index__count { display: none; }
}

/* ---------- 2. Service groups ---------- */
.ov-groups { padding-top: clamp(40px, 5vw, 72px); }
.ov-group {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px clamp(32px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.ov-group:first-child { border-top: 0; padding-top: 0; }
.ov-group__head { position: sticky; top: 112px; align-self: start; }
.ov-group__head .eyebrow { margin-bottom: 16px; }
.ov-group__head .eyebrow b { font-weight: 500; color: var(--ink); }
.ov-group__title { font-size: clamp(30px, 2.7vw, 40px); line-height: 1.12; }
.ov-group__head .lede { margin-top: 18px; font-size: 16px; }

.ov-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ov-cards > li { min-width: 0; }
.ov-cards .svc { width: 100%; height: auto; aspect-ratio: 5 / 7; scroll-snap-align: none; user-select: auto; -webkit-user-select: auto; }
.ov-cards .svc__text h3 { font-size: clamp(22px, 1.8vw, 24px); }

/* one-line pain → outcome on each card */
.ov-po { display: grid; gap: 8px; margin-top: 12px; max-width: 28ch; }
.svc__text .ov-po { font-size: 15px; line-height: 21px; }
.ov-po__from { color: rgba(255, 255, 255, .74); }
.ov-po__to { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: #fff; }
.ov-po__to .ic { width: 16px; height: 16px; margin-top: 3px; }

/* quiet text tile that fills the spare slot in a group */
.ov-note {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 24px; border-radius: var(--r-lg); background: var(--sunken);
}
.ov-note__k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ov-note__k .ic { width: 16px; height: 16px; }
.ov-note p:not(.ov-note__k) { font-size: 16px; line-height: 1.5; color: #3A3835; text-wrap: pretty; }
.ov-note--wide { grid-column: span 2; }

@media (max-width: 1000px) {
  .ov-group { grid-template-columns: 1fr; }
  .ov-group__head { position: static; max-width: 640px; }
  .ov-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-note--wide { grid-column: auto; }
}
@media (max-width: 600px) {
  .ov-cards { grid-template-columns: 1fr; gap: 14px; }
  .ov-cards .svc { aspect-ratio: auto; height: 300px; }
  .ov-note { padding: 20px; }
}

/* ---------- 3. Three rules ---------- */
.ov-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ov-ways li { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ov-ways__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--sunken); }
.ov-ways li:first-child .ov-ways__icon { background: var(--accent-soft); color: #4B33D6; }
.ov-ways li:last-child .ov-ways__icon { background: var(--ink); color: #fff; }
.ov-ways h3 { font-size: clamp(21px, 1.6vw, 24px); line-height: 1.22; font-weight: 400; letter-spacing: -0.02em; }
.ov-ways p { color: var(--muted); text-wrap: pretty; }
@media (max-width: 900px) { .ov-ways { grid-template-columns: 1fr; gap: 14px; } .ov-ways li { padding: 24px 20px; } }

/* ---------- 4. "One memory" band (Kuumba Work) ---------- */
.ov-memory {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px);
  padding: clamp(32px, 5vw, 72px); border-radius: var(--r-xl);
  background: var(--n-ground); color: #E8E5DF;
}
.ov-memory .eyebrow { color: var(--n-muted); }
.ov-memory__lede { margin-top: 24px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.56; color: var(--n-text); max-width: 50ch; text-wrap: pretty; }
.ov-memory__fact { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; line-height: 1.55; color: var(--n-muted); max-width: 50ch; }
.ov-memory__fact b { font-weight: 500; color: #E8E5DF; }
.ov-memory .link-arrow { margin-top: 20px; }
.ov-memory :focus-visible { outline-color: #fff; }

.ov-flow { align-self: start; }
.ov-flow__stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ov-flow__stages li {
  position: relative; display: grid; gap: 2px; justify-items: center; padding: 14px 6px;
  border-radius: var(--r-md); background: var(--n-card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: 15px; font-weight: 500; text-align: center;
}
.ov-flow__stages small { font-size: 12px; font-weight: 400; color: var(--n-muted); font-variant-numeric: tabular-nums; }
.ov-flow__stages li::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(155, 132, 244, .7)); }
.ov-flow__core {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 4px 14px;
  margin-top: 28px; padding: 18px 20px; border-radius: var(--r-lg);
  background: linear-gradient(115deg, rgba(107, 78, 255, .26), rgba(201, 184, 232, .1)); box-shadow: inset 0 0 0 1px rgba(155, 132, 244, .45);
}
.ov-flow__core .brand__tile { width: 36px; height: 36px; grid-row: span 2; }
.ov-flow__core b { font-size: 18px; font-weight: 500; color: #fff; }
.ov-flow__core span { font-size: 14px; line-height: 20px; color: var(--n-text); }

.ov-caps { margin-top: 28px; display: grid; }
.ov-caps li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 15px; line-height: 1.5; color: var(--n-text); }
.ov-caps li:first-child { border-top: 0; }
.ov-caps .lg { margin-top: 8px; }
.ov-caps .lg--next { box-shadow: inset 0 0 0 1.5px var(--n-muted); }
.ov-caps .tag { margin-left: 6px; vertical-align: 1px; height: 20px; font-size: 11px; background: rgba(255, 255, 255, .08); color: var(--n-text); }
.ov-memory__note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--n-muted); }

@media (max-width: 1000px) { .ov-memory { grid-template-columns: 1fr; border-radius: var(--r-lg); } }
@media (max-width: 520px) {
  .ov-memory { padding: 28px 20px; }
  .ov-flow__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-flow__stages li:nth-child(-n+2)::after { display: none; }
}
