/* ================= CONNEX — services page styles ================= */

.svc-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--border); }
.svc-hero .hero-pill { margin-bottom: 22px; }
.svc-hero h1 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; max-width: 24ch; text-wrap: balance; }
.svc-hero h1 em { font-style: italic; }
.svc-hero .hero-sub { max-width: 56ch; }

.phil { padding: 64px 0; border-bottom: 1px solid var(--border); }
.phil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.phil-big { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.phil-big em { font-style: italic; color: var(--accent-deep); }
.phil p { font-size: 15.5px; color: var(--slate); line-height: 1.65; }
.phil p + p { margin-top: 12px; }

/* ---- layer detail rows ---- */
.layer-row { padding: 72px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.layer-row:last-of-type { border-bottom: none; }
.layer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.lr-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); display: flex; align-items: center; gap: 12px; }
.lr-num::after { content: ''; width: 36px; height: 1px; background: var(--border); }
.layer-row h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; margin-top: 14px; max-width: 26ch; text-wrap: balance; }
.lr-oneline { margin-top: 12px; font-size: 16.5px; color: var(--slate); max-width: 52ch; }
.lr-block { margin-top: 24px; }
.lr-block h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.lr-block p { margin-top: 6px; font-size: 14.5px; color: var(--slate); line-height: 1.6; max-width: 56ch; }
.lr-cta { margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
/* right column spec card */
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.spec-head { padding: 13px 20px; border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.spec ul { list-style: none; padding: 8px 20px; }
.spec li { padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--slate); display: flex; gap: 11px; align-items: baseline; }
.spec li:last-child { border-bottom: none; }
.spec li::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex-shrink: 0; position: relative; top: -1px; }
.spec-out { padding: 14px 20px; border-top: 1px solid var(--border); background: #F8FAFC; font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }
.spec-out b { color: var(--navy); font-weight: 600; }
.spec-fit { padding: 12px 20px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.spec-fit b { color: var(--navy); font-weight: 600; }

/* ---- compact verticals ---- */
.vert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.vert { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s, transform 0.2s; }
.vert:hover { border-color: #C7D2DD; transform: translateY(-2px); }
.vert b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.vert span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ---- engagement options ---- */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; align-items: stretch; }
.eng { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
.eng.featured { border-color: var(--navy); box-shadow: var(--shadow-float); }
.eng .eng-flag { position: absolute; top: -11px; left: 28px; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; }
.eng .eng-step { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }
.eng h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.018em; margin-top: 10px; }
.eng .eng-desc { font-size: 14px; color: var(--slate); line-height: 1.6; margin-top: 10px; }
.eng dl { margin-top: 18px; border-top: 1px solid var(--border-soft); flex: 1; }
.eng dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 14px; }
.eng dd { margin: 4px 0 0; font-size: 13.5px; color: var(--slate); line-height: 1.55; }
.eng .btn { margin-top: 24px; width: 100%; }

@media (max-width: 960px) {
  .phil-grid, .layer-grid { grid-template-columns: 1fr; gap: 32px; }
  .vert-grid, .eng-grid { grid-template-columns: 1fr 1fr; }
  .layer-row { padding: 56px 0; }
}
@media (max-width: 640px) {
  .vert-grid, .eng-grid { grid-template-columns: 1fr; }
  .eng.featured { order: -1; }
}
