/* Prakant Consultancy: styles
   Palette: deep ocean navy, saffron, cool ice white.
   Saffron is used as a fill on navy and for buttons. On light backgrounds,
   small accent text uses the darker saffron-ink so it stays readable.
   Change the colours in :root to re-theme the whole site. */

:root {
  --navy: #0A2540;
  --navy-2: #12365E;
  --navy-ink: #061729;
  --saffron: #FFA62B;
  --saffron-hover: #FFB955;
  --saffron-ink: #A65200;
  --ice: #F2F6FB;
  --white: #FFFFFF;
  --line: #D3DEEB;
  --grid: rgba(10, 37, 64, 0.07);
  --text: #12253B;
  --muted: #4A5E75;
  --on-navy: #EAF1FA;
  --on-navy-muted: #AFC3DB;

  --font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  color: var(--navy);
}

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }
dd { margin: 0; }
a { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  box-shadow: 0 0 0 6px var(--saffron);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--saffron);
  color: var(--navy);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

section[id], footer [id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--saffron);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--navy); }

.site-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--navy-2); color: #fff; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-ink);
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--saffron);
  border-radius: 2px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--saffron); color: var(--navy); }
.btn-accent:hover { background: var(--saffron-hover); color: var(--navy); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/* Graph-paper grid that fades out toward the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 25%, transparent 80%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 70px);
  max-width: 14ch;
}
/* Saffron highlighter under the key phrase */
.hero h1 .mark {
  background: linear-gradient(transparent 62%, var(--saffron) 62%, var(--saffron) 92%, transparent 92%);
  padding: 0 4px;
  margin: 0 -4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 540px;
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}
.topic-row li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 4px;
}

/* Network graphic panel */

.hero-panel {
  position: relative;
  background: var(--navy);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 30px 60px rgba(10, 37, 64, 0.22);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  margin: 0 auto;
}
.hero-art-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-pulse 3.6s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.45; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(68px, 8.5vw, 112px) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 660px;
  margin-bottom: 52px;
}
.section-head h2,
.about-head h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; }
.section-head p:last-child { color: var(--muted); font-size: 18px; }

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 48px clamp(40px, 7vw, 96px);
  align-items: start;
}
.about-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.about-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.about-body > p { color: var(--muted); max-width: 62ch; }

.list-title { font-size: 21px; font-weight: 700; padding-top: 14px; }

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 32px;
}
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--saffron);
  border-radius: 3px;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
}

/* Commitments strip */

.commit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: clamp(48px, 6vw, 72px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.commit > div { padding: 28px 30px; border-right: 1px solid var(--line); }
.commit > div:last-child { border-right: 0; }
.commit dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 6px;
}
.commit dd { color: var(--muted); }

/* Services */

.svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 20px;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 60%);
  pointer-events: none;
}
.svc > * { position: relative; }

.svc-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(32px, 5vw, 64px);
}
.svc-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
}
.svc-main h3 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  color: #fff;
  max-width: 14ch;
}
.svc-desc { max-width: 52ch; font-size: 18px; color: var(--on-navy-muted); }
.svc-main .btn { margin-top: 8px; }

.svc-points {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy-2);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.svc-points li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 28px clamp(24px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.svc-points li:last-child { border-bottom: 0; }
.svc-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--saffron);
}
.svc-point-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 3px solid var(--navy);
  position: relative;
}
.steps li::before {
  content: "0" counter(step);
  order: -1;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--saffron-ink);
}
.steps li::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--saffron);
}
.steps h3 { font-size: 24px; font-weight: 700; }
.steps p { color: var(--muted); }

/* Engagement models */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.model {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.model:hover { border-color: var(--navy); transform: translateY(-3px); }
.model-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--saffron);
  padding: 4px 10px;
  border-radius: 3px;
}
.model h3 { font-size: 24px; font-weight: 700; }
.model p:last-child { color: var(--muted); }

/* Call to action */

.cta {
  background: var(--saffron);
  color: var(--navy);
  padding: clamp(56px, 7vw, 88px) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
}
.cta-copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; max-width: 18ch; }
.cta p { font-size: 18px; max-width: 540px; color: var(--navy); }
.cta .btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-ink); color: var(--on-navy-muted); padding-top: 72px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--saffron); color: var(--navy); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 330px; }

.footer-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 16px;
}

.site-footer li + li { margin-top: 10px; }
.site-footer a:not(.brand) { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.contact-list span {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 60px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { max-width: 18ch; }
  .hero-art { max-width: 360px; }
  .about { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .svc { grid-template-columns: 1fr; }
  .svc-points { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 26px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.open { display: block; }

  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 14px 0; font-size: 17px; }
  .site-nav .nav-cta { display: inline-block; margin-top: 18px; padding: 13px 22px; }
  .site-nav > ul > li:last-child { border-bottom: 0; }

  .commit > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .commit > div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn-row { width: 100%; }
}

/* ---------- Legal pages and footer legal links ---------- */

.footer-slim { padding-top: 0; }
.footer-slim .footer-bottom { margin-top: 0; border-top: 0; padding-top: 32px; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding-top: 4px;
  padding-bottom: 32px;
  font-size: 14px;
}
.footer-legal-links a,
.footer-home { color: var(--on-navy-muted); text-decoration: none; }
.footer-legal-links a:hover,
.footer-home:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-links a[aria-current="page"] { color: #fff; }

.legal-page { background: var(--white); padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.legal-wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; margin-bottom: 16px; }
.legal-updated { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.legal-meta { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-bottom: 36px; }

.legal-page h2 { font-size: 26px; font-weight: 600; margin: 40px 0 16px; }
.legal-page h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 17px; line-height: 1.8; }
.legal-page p { margin-bottom: 16px; }
.legal-page ul { margin: 0 0 16px; padding-left: 22px; }
.legal-page ul li { list-style: disc; margin-bottom: 10px; }
.legal-page a { color: var(--saffron-ink); }

.legal-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--saffron);
  border-radius: var(--radius);
  background: var(--ice);
  padding: 20px 22px;
  margin: 0 0 24px;
}
.legal-card p { margin: 0 0 4px; color: var(--text); font-size: 16px; line-height: 1.6; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .model { transition: none; }
  .model:hover { transform: none; }
  .hero-art-ring { animation: none; }
}
