/* ============================================================
   SPOCS — client-attraction sections + dedicated pages
   Builds on spocs.css / editorial.css tokens (navy, gold, Marcellus)
   ============================================================ */

/* ---------- shared section scaffolding ---------- */
.x-sec { background: #081629; }
.x-sec:nth-of-type(even) { background: #0a1c33; }
.x-head { max-width: 780px; margin-bottom: 36px; }
.x-head h2, .x-sec h2 {
  font-family: var(--ff-disp); font-weight: 400; color: #ECF1F7;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; margin: 0;
  text-wrap: balance;
}
.x-head p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: rgba(236,241,247,0.66); max-width: 640px; }
.x-head-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.x-head-row p { margin-top: 0; }
.x-head .ed-eye, .x-sec .ed-eye { margin-bottom: 12px; }
.x-lead { margin-top: 16px; font-size: 16px; line-height: 1.7; color: rgba(236,241,247,0.7); max-width: 600px; }
.x-sub { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 16px; }
.x-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: rgba(236,241,247,0.5); }
.x-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.x-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 14.5px; min-height: 44px; }
.x-link .arrow { transition: transform .2s; }
.x-link:hover .arrow, a:hover > .x-link .arrow { transform: translateX(4px); }
.x-sec .btn-ed-line { padding: 14px 24px; }

/* placeholders that need SPOCS input — remove the class once real content is in */
.ph {
  color: rgba(236,241,247,0.78);
  background: rgba(200,164,77,0.10);
  border-bottom: 1px dashed rgba(200,164,77,0.7);
  padding: 0 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.tick-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.55; color: rgba(236,241,247,0.86); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px);
}

/* ---------- about & leadership ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.about-points { display: grid; gap: 0; }
.ap-item { padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.ap-item:first-child { border-top: 0; padding-top: 0; }
.ap-k { display: block; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ap-item p { font-size: 15.5px; line-height: 1.65; color: rgba(236,241,247,0.82); margin: 0; }
.about-points .x-link { margin-top: 10px; }

.lead-card {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px;
  padding: 28px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(200,164,77,0.07), rgba(13,32,64,0.6));
  border: 1px solid rgba(200,164,77,0.22);
}
.lead-portrait {
  aspect-ratio: 4 / 5; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #0b1d36; border: 1px dashed rgba(200,164,77,0.4); color: rgba(200,164,77,0.6);
}
.lead-portrait svg { width: 56px; height: 56px; }
.lead-portrait span { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,241,247,0.45); text-align: center; padding: 0 10px; }
.lead-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.lead-body h3 { font-family: var(--ff-disp); font-weight: 400; font-size: 26px; color: #ECF1F7; margin: 0 0 6px; }
.lead-role { font-size: 14px; color: var(--gold); margin: 0 0 14px; }
.lead-body p { font-size: 15px; line-height: 1.65; color: rgba(236,241,247,0.75); margin: 0 0 12px; }
.lead-card-wide { grid-template-columns: 220px minmax(0, 1fr); max-width: 980px; }

/* ---------- services (4 practices) ---------- */
.svc4-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc4-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 14px; border-radius: 10px;
  background: rgba(13,32,64,0.55); border: 1px solid rgba(255,255,255,0.08);
  color: inherit; text-decoration: none;
  transition: border-color .25s, transform .25s, background .25s;
}
.svc4-card:hover { border-color: rgba(200,164,77,0.45); background: rgba(13,32,64,0.85); transform: translateY(-3px); }
.svc4-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.svc4-vis { display: block; aspect-ratio: 200 / 96; margin: -4px -4px 8px; border-radius: 6px; overflow: hidden; background: #0b1d36; border: 1px solid rgba(200,164,77,0.12); }
.svc4-vis svg { width: 100%; height: 100%; display: block; }
.svc4-vis .v-grid path { stroke: rgba(255,255,255,0.05); stroke-width: 1; fill: none; }
.svc4-vis .v-line { stroke: var(--gold); stroke-width: 2; fill: none; stroke-linecap: round; }
.svc4-vis .v-track { stroke: rgba(255,255,255,0.15); stroke-width: 2; }
.svc4-vis .v-dots circle { fill: #2BB8C4; }
.svc4-vis .v-bars rect { fill: rgba(200,164,77,0.55); }
.svc4-vis .v-open { fill: #0b1d36; stroke: rgba(255,255,255,0.4); stroke-width: 1.5; }
.svc4-vis .v-net path { stroke: rgba(236,241,247,0.3); stroke-width: 1; fill: none; }
.svc4-vis .v-hub { fill: var(--gold); }
.svc4-vis .v-ring { fill: none; stroke: rgba(200,164,77,0.45); stroke-width: 1.2; }
.svc4-vis .v-needle { fill: var(--gold); }
.svc4-n { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .18em; color: rgba(200,164,77,0.8); }
.svc4-card h3 { font-family: var(--ff-disp); font-weight: 400; font-size: 21px; line-height: 1.2; color: #ECF1F7; margin: 0; }
.svc4-card p { font-size: 14.5px; line-height: 1.6; color: rgba(236,241,247,0.68); margin: 0; flex: 1; }
.svc4-sec .x-actions { justify-content: flex-start; }

/* ---------- technology ---------- */
.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.tech-vis { aspect-ratio: 1 / 0.86; max-width: 560px; width: 100%; justify-self: end; }
.tech-vis svg { width: 100%; height: 100%; display: block; }
.tv-orbit { fill: none; stroke: rgba(200,164,77,0.25); stroke-width: 1; }
.tv-orbit.dash { stroke-dasharray: 3 6; }
.tv-core { fill: #0e2347; stroke: var(--gold); stroke-width: 1.5; }
.tv-node { fill: #0b1d36; stroke: #2BB8C4; stroke-width: 1.4; }
.tv-node.g { stroke: var(--gold); }
.tv-link { stroke: rgba(236,241,247,0.18); stroke-width: 1; fill: none; }
.tv-flow { stroke: #2BB8C4; stroke-width: 1.4; fill: none; stroke-dasharray: 2 7; stroke-linecap: round; }
.tv-lbl { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .2em; fill: rgba(236,241,247,0.62); }
.tv-lbl.g { fill: var(--gold); }
.tv-core-t { font-family: var(--ff-disp); font-size: 15px; letter-spacing: .3em; fill: #ECF1F7; }
@media (prefers-reduced-motion: no-preference) {
  .tech-vis.in .tv-spin { animation: tvSpin 60s linear infinite; transform-origin: 280px 240px; }
  .tech-vis.in .tv-spin.rev { animation-direction: reverse; animation-duration: 90s; }
  .tech-vis.in .tv-flow { animation: tvFlow 2.6s linear infinite; }
  .tech-vis.in .tv-pulse { animation: tvPulse 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes tvSpin { to { transform: rotate(360deg); } }
@keyframes tvFlow { to { stroke-dashoffset: -90; } }
@keyframes tvPulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- south india ---------- */
.region-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.region-map {
  max-width: 560px; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%), linear-gradient(to bottom, transparent 0, #000 6%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 5%), linear-gradient(to bottom, transparent 0, #000 6%);
          mask-composite: intersect;
}
.region-map svg { width: 100%; height: auto; display: block; }
.rm-rest { fill: rgba(236,241,247,0.04); stroke: rgba(236,241,247,0.2); stroke-width: .5; vector-effect: non-scaling-stroke; }
.rm-state { fill: rgba(200,164,77,0.24); stroke: var(--gold); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .25s; }
.rm-state.on, .rm-state:hover { fill: rgba(200,164,77,0.6); }
.rm-py { fill: rgba(200,164,77,0.4); stroke: none; }
.rm-lbl { font-family: var(--ff-body, sans-serif); font-size: 7px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: #ECF1F7; paint-order: stroke; stroke: rgba(4,16,31,0.85); stroke-width: 2px; pointer-events: none; }
.rm-loc-frame { fill: rgba(4,16,31,0.6); stroke: rgba(200,164,77,0.3); stroke-width: .6; }
.rm-loc-cap { font-family: var(--ff-mono); font-size: 4.6px; letter-spacing: .2em; fill: rgba(236,241,247,0.55); }
.state-list { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid rgba(255,255,255,0.08); }
.state-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: default;
  transition: background .2s, padding .2s;
}
.state-list li.on { background: rgba(200,164,77,0.07); padding-left: 12px; }
.st-name { font-family: var(--ff-disp); font-size: 19px; color: #ECF1F7; }
.st-seats { font-size: 13.5px; color: rgba(236,241,247,0.6); }
.st-seats b { color: var(--gold); font-weight: 600; }

/* ---------- proof of capability ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.proof-item { background: #0a1c33; padding: 26px 24px; }
.proof-sec .proof-item { background: #081629; }
.proof-item h3 { font-family: var(--ff-disp); font-weight: 400; font-size: 20px; color: #ECF1F7; margin: 0 0 10px; }
.proof-item p { font-size: 14.5px; line-height: 1.65; color: rgba(236,241,247,0.68); margin: 0; }
.proof-lower { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.engage-types ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.engage-types li { padding: 14px 16px; border: 1px solid rgba(200,164,77,0.2); border-radius: 8px; font-size: 14.5px; color: rgba(236,241,247,0.85); background: rgba(200,164,77,0.04); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); font-size: 14px; color: rgba(236,241,247,0.82); }

/* ---------- engagement process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(200,164,77,0.15)); }
.step { position: relative; padding-top: 64px; }
.step-n {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #0b1d36; border: 1px solid var(--gold);
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; color: var(--gold);
}
.step h3 { font-family: var(--ff-disp); font-weight: 400; font-size: 20px; line-height: 1.25; color: #ECF1F7; margin: 0 0 8px; }
.step p { font-size: 14.5px; line-height: 1.6; color: rgba(236,241,247,0.66); margin: 0; }

/* ---------- consultation form tweaks ---------- */
.cform .req { color: var(--gold); }
.cform .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: rgba(236,241,247,0.45); }
.cform .freq-note { margin: 2px 0 12px; font-size: 12px; color: rgba(236,241,247,0.45); }
.cform .freq-note span { color: var(--gold); }
.cform .btn-lg { white-space: normal; text-align: center; justify-content: center; }
.cform select.is-preset { border-color: var(--gold); }

/* ---------- dedicated pages ---------- */
.page-hero {
  position: relative; overflow: hidden; margin-top: var(--nav-h);
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(0,140,160,0.07), transparent 65%),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(200,164,77,0.06), transparent 60%),
    #081629;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.page-hero-in { position: relative; padding-top: 52px; padding-bottom: 56px; max-width: 980px; margin-left: 0; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(236,241,247,0.5); margin-bottom: 22px; }
.crumbs a { color: rgba(236,241,247,0.7); }
.crumbs a:hover { color: var(--gold); }
.page-h1 { font-family: var(--ff-disp); font-weight: 400; color: #ECF1F7; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; margin: 0; text-wrap: balance; }
.subpage .nav-links a[aria-current="page"], .nav-links a[aria-current="page"] { color: var(--gold); }

.pvm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pvm { padding: 24px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(13,32,64,0.5); }
.pvm p { font-size: 15.5px; line-height: 1.65; color: rgba(236,241,247,0.82); margin: 0; }

.covers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cover-item { padding: 24px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(13,32,64,0.45); }
.cover-item .svc4-n { display: block; margin-bottom: 10px; }
.cover-item h3 { font-family: var(--ff-disp); font-weight: 400; font-size: 20px; color: #ECF1F7; margin: 0 0 8px; }
.cover-item p { font-size: 14.5px; line-height: 1.65; color: rgba(236,241,247,0.68); margin: 0; }

.moments-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.moments-aside { padding: 26px; border-radius: 10px; border: 1px solid rgba(200,164,77,0.22); background: rgba(200,164,77,0.05); }
.moments-aside p { font-size: 15px; line-height: 1.65; color: rgba(236,241,247,0.78); margin: 0; }
.moments-aside .tick-list { margin-top: 0; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); color: #ECF1F7; min-height: 72px; transition: border-color .2s, background .2s; }
.related-card:hover { border-color: rgba(200,164,77,0.5); background: rgba(200,164,77,0.05); }
.related-t { flex: 1; font-family: var(--ff-disp); font-size: 18px; line-height: 1.25; }
.related-card .arrow { color: var(--gold); }

.cta-band { background: linear-gradient(160deg, #0d2040 0%, #081629 100%) !important; }
.cta-band-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band-in p { margin-top: 10px; color: rgba(236,241,247,0.62); font-size: 15px; }

.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ins-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(13,32,64,0.45); }
.ins-tag { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ins-card h3 { font-family: var(--ff-disp); font-weight: 400; font-size: 21px; line-height: 1.25; color: #ECF1F7; margin: 0; }
.ins-card p { font-size: 14.5px; line-height: 1.6; color: rgba(236,241,247,0.66); margin: 0; flex: 1; }
.ins-soon { align-self: flex-start; font-size: 12px; letter-spacing: .06em; color: rgba(236,241,247,0.5); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 4px 12px; }

.foot-bot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot-top .col a { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .svc4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers-grid, .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .x-head-row, .about-grid, .tech-grid, .region-grid, .proof-lower, .moments-grid { grid-template-columns: 1fr; gap: 28px; }
  .tech-vis { justify-self: center; max-width: 460px; }
  .region-map { max-width: 440px; justify-self: center; }
  .related-grid { grid-template-columns: 1fr; }
  .pvm-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 21.5px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(200,164,77,0.15)); }
  .step { padding: 0 0 26px 66px; min-height: 44px; }
  .step:last-child { padding-bottom: 0; }
  .step-n { top: -2px; }
}
@media (max-width: 760px) {
  .x-head { margin-bottom: 26px; }
  .svc4-grid, .proof-grid, .covers-grid, .ins-grid { grid-template-columns: 1fr; }
  .lead-card, .lead-card-wide { grid-template-columns: 1fr; padding: 20px; }
  .lead-portrait { aspect-ratio: auto; height: 140px; flex-direction: row; }
  .engage-types ul { grid-template-columns: 1fr; }
  .svc4-vis { max-height: 120px; }
  .page-hero { margin-top: 0; }
  .page-hero-in { padding-top: 32px; padding-bottom: 40px; }
  .page-hero .hero-ed-cta .btn { width: 100%; justify-content: center; }
  .cta-band-in .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .x-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* WhatsApp: the dummy development number never shows on the live site.
   Once a real number replaces 919999999999 in the link, the button appears everywhere. */
.wa-float[href*="919999999999"] { display: none; }
html.is-local .wa-float[href*="919999999999"] { display: grid; }
html.is-local .wa-float[href*="919999999999"]::after {
  content: "DEV"; position: absolute; top: -6px; right: -6px; font: 600 9px/1 var(--ff-mono, monospace);
  background: #C8A44D; color: #0B1F3A; padding: 3px 4px; border-radius: 3px;
}

/* ============================================================
   NAV LINKS — interactive states + fluid sizing
   hover: brighten + gold underline · keyboard focus ring ·
   current page / current homepage section: gold + underline
   ============================================================ */
.nav-links { gap: clamp(4px, 1.2vw, 18px); }
.nav-links a:not(.nav-links-cta) {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 clamp(8px, 0.7vw, 12px);
  font-size: clamp(14px, 1.05vw, 16px);
  border-radius: 6px;
  color: rgba(236,241,247,0.72);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:not(.nav-links-cta)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--gold);
  transition: left .25s ease, right .25s ease;
}
.nav-links a:not(.nav-links-cta):hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a:not(.nav-links-cta):hover::after { left: clamp(8px, 0.7vw, 12px); right: clamp(8px, 0.7vw, 12px); }
.nav-links a:not(.nav-links-cta):active { background: rgba(200,164,77,0.12); }
.nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-links a[aria-current="page"], .nav-links a.is-current { color: var(--gold) !important; }
.nav-links a[aria-current="page"]::after, .nav-links a.is-current::after { left: clamp(8px, 0.7vw, 12px); right: clamp(8px, 0.7vw, 12px); }

/* hamburger panel (tablet / phone) */
@media (max-width: 1024px) {
  .nav-links { gap: 0; }
  .nav-links a:not(.nav-links-cta) { font-size: 16px; min-height: 52px; padding: 0 12px; border-radius: 0; }
  .nav-links a:not(.nav-links-cta)::after { left: 0 !important; right: auto !important; top: 12px; bottom: 12px; width: 3px; height: auto; opacity: 0; transition: opacity .2s; }
  .nav-links a:not(.nav-links-cta):hover::after,
  .nav-links a[aria-current="page"]::after,
  .nav-links a.is-current::after { opacity: 1; }
  .nav-links .nav-links-cta { min-height: 52px; display: flex; align-items: center; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a, .nav-links a::after { transition: none !important; }
}
