/* ============================================================
   private-sector.css — Private Sector page
   Uses ONLY existing design tokens from variables.css / colors.css
   ============================================================ */

/* ── HERO ── */
.ps-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--bg-base);
}

.ps-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 78% 30%, var(--accent-glow) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 15% 80%, rgba(55,62,72,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.ps-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-3xl);
  max-width: 760px;
}

.ps-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.2s forwards;
}

.ps-hero__sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.ps-hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

/* ── SCROLL REVEAL (page standard) ── */
.ps-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.ps-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SERVICE BLOCKS ── */
.ps-service {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-base), box-shadow var(--duration-base), transform var(--duration-base);
}

.ps-service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.ps-service:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(55, 62, 72, 0.08);
  transform: translateY(-2px);
}

.ps-service:hover::before { opacity: 1; }

.ps-service__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.ps-service__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  background: var(--bg-ghost);
  transition: border-color var(--duration-fast), transform var(--duration-base);
}

.ps-service:hover .ps-service__icon {
  border-color: var(--accent);
  transform: scale(1.05);
}

.ps-service__kicker {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.ps-service__title {
  font-family: var(--font-saira);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-primary);
  line-height: 1.15;
}

.ps-service__summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

/* ── EXPANDABLE CAPABILITIES ── */
.ps-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color var(--duration-fast), color var(--duration-fast);
}

.ps-expand-btn:hover,
.ps-expand-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.ps-expand-btn__chev {
  transition: transform var(--duration-base) var(--ease-out);
}

.ps-expand-btn[aria-expanded="true"] .ps-expand-btn__chev {
  transform: rotate(180deg);
}

.ps-expand {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out), margin 0.4s;
}

.ps-expand.is-open {
  max-height: 600px;
  opacity: 1;
  margin-top: var(--space-lg);
}

.ps-expand__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ── ADVISORY WORKFLOW ── */
.ps-flow {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.ps-flow__label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-accent);
  margin-bottom: var(--space-md);
}

.ps-flow__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.ps-flow__step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--bg-ghost);
  position: relative;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}

.ps-flow__step:hover { border-color: var(--accent); color: var(--accent); }

.ps-flow__step:not(:last-child)::after {
  content: '\2192';
  position: static;
  margin-left: var(--space-sm);
  color: var(--accent);
  opacity: 0.5;
}

/* ── METHODOLOGY TIMELINE ── */
.ps-method {
  background: transparent;
}

.ps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.ps-timeline__stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base);
}

.ps-timeline__stage:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(55, 62, 72, 0.08);
}

.ps-timeline__num {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.ps-timeline__name {
  font-family: var(--font-saira);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ── WHY NSIGNIS ── */
.ps-why {
  background: transparent;
}

.ps-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.ps-why__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
  transition: transform var(--duration-base), box-shadow var(--duration-base);
}

.ps-why__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(55, 62, 72, 0.08);
}

.ps-why__title {
  font-family: var(--font-saira);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.ps-why__text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── CONTACT CTA ── */
.ps-contact__box {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.ps-contact__box::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ps-contact__box .section__eyebrow { text-align: center; }
.ps-contact__box .section__heading { margin-inline: auto; }

.ps-contact__text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto var(--space-xl);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ps-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ps-hero { min-height: auto; padding-top: 72px; }
  .ps-hero__inner { padding-block: var(--space-2xl); }
  .ps-service { padding: var(--space-lg); }
  .ps-service__head { flex-direction: column; gap: var(--space-md); }
  .ps-expand.is-open { max-height: 900px; }
}

@media (max-width: 480px) {
  .ps-timeline { grid-template-columns: 1fr; }
  .ps-hero__actions { flex-direction: column; }
  .ps-hero__actions .btn { width: 100%; text-align: center; }
  .ps-contact__box { padding: var(--space-xl) var(--space-lg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ps-reveal { opacity: 1; transform: none; transition: none; }
  .ps-hero__heading, .ps-hero__sub, .ps-hero__actions { opacity: 1; animation: none; }
}

/* ── LAYERED ICON SYSTEM ─────────────────────────
   Custom semi-transparent marks: opacity layers create
   depth on the flat white surface, echoing intelligence
   "signal layers". Hover = layers tighten (opacity lift). */

.ps-icon { display: block; }

/* Service icon container: remove boxed look, let the mark breathe */
.ps-service__icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-subtle);
  background: transparent;
}

.ps-service:hover .ps-service__icon {
  border-color: var(--border);
  transform: none;
}

/* Layer-lift on hover: semi-transparent layers gain presence */
.ps-service__icon svg * { transition: opacity 0.35s var(--ease-out); }
.ps-service:hover .ps-service__icon svg *[opacity="0.10"],
.ps-service:hover .ps-service__icon svg *[opacity="0.07"]  { opacity: 0.2; }
.ps-service:hover .ps-service__icon svg *[opacity="0.15"],
.ps-service:hover .ps-service__icon svg *[opacity="0.16"],
.ps-service:hover .ps-service__icon svg *[opacity="0.18"]  { opacity: 0.3; }
.ps-service:hover .ps-service__icon svg *[opacity="0.25"]  { opacity: 0.4; }
.ps-service:hover .ps-service__icon svg *[opacity="0.35"]  { opacity: 0.55; }
.ps-service:hover .ps-service__icon svg *[opacity="0.45"]  { opacity: 0.65; }

/* Industry icons: SVG replaces the old text glyph */
.ps-industry__icon {
  width: 34px;
  height: 34px;
  margin-bottom: var(--space-md);
}

.ps-ind-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ps-ind-svg * { transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }

.ps-industry:hover .ps-industry__icon { transform: none; }
.ps-industry:hover .ps-ind-svg *[opacity="0.14"],
.ps-industry:hover .ps-ind-svg *[opacity="0.16"],
.ps-industry:hover .ps-ind-svg *[opacity="0.18"] { opacity: 0.3; }
.ps-industry:hover .ps-ind-svg *[opacity="0.2"],
.ps-industry:hover .ps-ind-svg *[opacity="0.22"] { opacity: 0.38; }
.ps-industry:hover .ps-ind-svg *[opacity="0.3"],
.ps-industry:hover .ps-ind-svg *[opacity="0.35"] { opacity: 0.5; }

/* ═══════════════════════════════════════
   HONEYCOMB — floating linked hexagons
   Wide row layout · slot-based positions via --tx/--ty
   Click: enlarge + random re-deal of the other cells.
═══════════════════════════════════════ */

.honeycomb {
  background: transparent;
  padding-block: var(--space-2xl);
  display: flex;
  justify-content: center;
  overflow: visible;
}

.honeycomb__stage { position: relative; }

.honeycomb__cell {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--accent);
  opacity: 0;
  transform: translate(var(--tx), var(--ty)) scale(0.6);
  transition:
    opacity 0.5s var(--ease-out) var(--enter-delay, 0s),
    transform 0.65s var(--ease-out),
    filter 0.35s var(--ease-out);
  /* slight float: soft ground shadow under every cell */
  filter: drop-shadow(0 6px 10px rgba(55, 62, 72, 0.10));
  will-change: transform;
}

.honeycomb__cell.is-in {
  opacity: 1;
  transform: translate(var(--tx), var(--ty)) scale(1);
  animation: hcBob var(--bob-dur, 0s) ease-in-out var(--bob-delay, 0s) infinite;
}

/* gentle hover-float; custom props keep slot position inside the keyframes */
@keyframes hcBob {
  0%, 100% { transform: translate(var(--tx), var(--ty)) translateY(0) scale(1); }
  50%      { transform: translate(var(--tx), var(--ty)) translateY(-5px) scale(1); }
}

.honeycomb__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* single outline — inner border removed */
.honeycomb__outer {
  fill: var(--bg-base);
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linejoin: round;
  transition: fill 0.3s var(--ease-out), stroke-width 0.3s;
}

.honeycomb__cell:hover { z-index: 3; }
.honeycomb__cell:hover .honeycomb__outer { stroke-width: 4.4; }
.honeycomb__cell:hover:not(.is-focus) {
  animation-play-state: paused;
  transform: translate(var(--tx), var(--ty)) scale(1.06);
  filter: drop-shadow(0 10px 16px rgba(55, 62, 72, 0.16));
}

.honeycomb__label {
  position: relative;
  z-index: 1;
  max-width: 66%;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  line-height: 1.4;
  color: var(--text-primary);
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: break-word;
  pointer-events: none;
}

/* ── Focus: enlarge; siblings glide to their new random slots ── */
.honeycomb__stage.has-focus .honeycomb__cell {
  animation: none;                 /* bob off → transform transition drives the glide */
}

.honeycomb__cell.is-focus {
  z-index: 10;
  transform: translate(var(--tx), var(--ty)) scale(2.1);
  filter: drop-shadow(0 16px 34px rgba(55, 62, 72, 0.24));
}

.honeycomb__cell.is-focus .honeycomb__outer { fill: var(--bg-card); stroke-width: 2.4; }
.honeycomb__cell.is-focus .honeycomb__label { font-size: 0.5rem; letter-spacing: 0.09em; }

.honeycomb__stage.has-focus .honeycomb__cell:not(.is-focus) {
  opacity: 0.34;
  filter: saturate(0.6) drop-shadow(0 4px 8px rgba(55, 62, 72, 0.08));
}

.honeycomb__cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .honeycomb { padding-block: var(--space-xl); }
  .honeycomb__label { font-size: 0.44rem; letter-spacing: 0.05em; }
  .honeycomb__cell.is-focus { transform: translate(var(--tx), var(--ty)) scale(2.3); }
  .honeycomb__cell.is-focus .honeycomb__label { font-size: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .honeycomb__cell {
    transition: opacity 0.01ms, transform 0.01ms, filter 0.01ms;
    opacity: 1;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════
   HEXAGON CONVERGENCE MINDMAP (advisory workflow)
═══════════════════════════════════════ */

.ps-hexflow {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.ps-hexflow__stage {
  position: relative;
  height: 400px;
  max-width: 560px;
  margin-inline: auto;
}

.ps-hexflow__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ps-hexflow__links line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 1.1s;
}

.ps-hexflow__stage.is-converged .ps-hexflow__links line { opacity: 0.22; }

.ps-hexflow__hex {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;
  height: 112px;
  margin: -56px 0 0 -64px;               /* center anchor */
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--accent);
  opacity: 0;
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.6);
  transition:
    transform 1.1s var(--ease-out),
    opacity 0.7s var(--ease-out);
  transition-delay: calc(var(--d) * 0.09s);
  will-change: transform, opacity;
}

.ps-hexflow__inner {
  position: absolute;
  inset: 1.5px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  transition: background var(--duration-base);
}

.ps-hexflow__inner span {
  font-family: var(--font-saira);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--text-primary);
}

.ps-hexflow__stage.is-converged .ps-hexflow__hex {
  opacity: 1;
  transform: translate(var(--fx), var(--fy)) rotate(0deg) scale(1);
}

.ps-hexflow__hex:hover .ps-hexflow__inner { background: var(--bg-ghost); }

/* ── Stage-pair interaction (click a stage → it + the next enlarge) ── */
.ps-hexflow__hex { cursor: pointer; }

.ps-hexflow__hex:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ps-hexflow__stage.is-converged .ps-hexflow__hex.is-active {
  transform: translate(var(--fx), var(--fy)) rotate(0deg) scale(1.28);
  z-index: 6;
  filter: drop-shadow(0 10px 22px rgba(55, 62, 72, 0.22));
}

.ps-hexflow__hex.is-active .ps-hexflow__inner { background: var(--bg-card); }
.ps-hexflow__hex.is-active .ps-hexflow__inner span { color: var(--text-primary); }

/* the "next" stage reads as the destination — subtle accent tint */
.ps-hexflow__hex.is-active-next .ps-hexflow__inner { background: var(--bg-ghost); }

/* dim the rest of the ring + soften base spokes while a pair is shown */
.ps-hexflow__stage.has-pair .ps-hexflow__hex:not(.is-active) { opacity: 0.35; }
.ps-hexflow__stage.has-pair .ps-hexflow__links line:not(.ps-hexflow__pairline) { opacity: 0.08; }
.ps-hexflow__stage.has-pair .ps-hexflow__core { opacity: 0.35; animation-play-state: paused; }

/* animated connector between the pair */
.ps-hexflow__pairline {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
  transition: stroke-dashoffset 0.55s var(--ease-out), opacity 0.2s;
}

.ps-hexflow__pairline.is-on { opacity: 0.85; }

/* Core: appears after convergence */
.ps-hexflow__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 91px;
  margin: -45.5px 0 0 -52px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.7s var(--ease-out) 1.25s, transform 0.8s var(--ease-out) 1.25s;
}

.ps-hexflow__core span {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
}

.ps-hexflow__stage.is-converged .ps-hexflow__core {
  opacity: 1;
  transform: scale(1);
  animation: corePulse 3.2s ease-in-out 2.2s infinite;
}

@keyframes corePulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(55,62,72,0)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 14px rgba(55,62,72,0.28)); transform: scale(1.035); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .ps-hexflow__stage { height: 330px; }
  .ps-hexflow__hex   { width: 96px; height: 84px; margin: -42px 0 0 -48px; }
  .ps-hexflow__inner span { font-size: 0.6rem; }
  .ps-hexflow__core  { width: 80px; height: 70px; margin: -35px 0 0 -40px; }
  .ps-hexflow__core span { font-size: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-hexflow__hex, .ps-hexflow__core { transition: none; opacity: 1;
    transform: translate(var(--fx), var(--fy)) scale(1); }
  .ps-hexflow__core { transform: scale(1); animation: none; }
  .ps-hexflow__links line { opacity: 0.22; transition: none; }
}

/* ── Hero "Explore Services": black/white on hover & press ── */
.ps-hero__actions .btn--outline:hover,
.ps-hero__actions .btn--outline:active,
.ps-hero__actions .btn--outline:focus-visible {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}
