/* PIVOT Business Consulting
   Layout: navy hero and navy "proof" bands alternate with off-white reading sections;
   mono labels and figures echo the PIVOT wordmark. Single brand look (light page, navy bands). */
:root {
  --navy: #0B1320;
  --navy-2: #142033;
  --navy-3: #1F2E46;
  --offwhite: #F3F6FA;
  --white: #FFFFFF;
  --charcoal: #2E2E2E;
  --slate: #5A6475;
  --line: #D9E0EA;
  --line-dark: rgba(255, 255, 255, 0.14);
  --teal: #2A7C76;
  --teal-dark: #21635E;
  --teal-light: #5FB3AC;
  --on-navy: #E6ECF4;
  --on-navy-muted: #A9B4C4;

  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);

  --radius: 6px;
  --maxw: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; color: var(--navy); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 780px; }

/* Labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow-light, .eyebrow-light a { color: var(--teal-light); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: 600 var(--step-0)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--step--1); }
.btn-accent { background: var(--teal); color: var(--white); }
.btn-accent:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--teal-light); color: var(--white); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy); border-bottom: 1px solid var(--line-dark);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--on-navy); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:hover { color: var(--teal-light); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.lang a { font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 9px; color: var(--on-navy-muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--navy-3); color: var(--white); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); width: 42px; height: 40px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--white); margin: auto; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }

@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-dark);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav a { padding: 12px 0; font-size: var(--step-0); border-top: 1px solid var(--line-dark); }
  .nav-open .nav { display: flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) { .header-cta { display: none; } .brand img { width: 130px; } }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding-block: 72px 56px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%;
  border: 64px solid rgba(95,179,172,.06); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1, .page-hero h1 { color: var(--white); }
.hero-lead { font-size: var(--step-1); color: var(--on-navy-muted); margin-top: 22px; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.industry-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.industry-list li { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy); border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; }
.portrait {
  margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, var(--navy-3), var(--navy-2) 70%);
  border: 1px solid var(--line-dark); display: grid; place-items: center; align-content: center; gap: 18px;
}
.portrait-mark { width: 96px; opacity: .22; }
.portrait figcaption { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); }

.proof { margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); position: relative; z-index: 1; }
.proof div { padding: 24px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.proof dd { order: -1; }
.proof div + div { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.proof dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); color: var(--teal-light); line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof dt { font-size: var(--step--1); color: var(--on-navy-muted); }

.page-hero { background: var(--navy); color: var(--on-navy); padding-block: 64px 56px; }

/* Sections */
.section { padding-block: 88px; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 720px; }
.section-lead { font-size: var(--step-1); color: var(--slate); margin-top: 14px; }
.section-navy .section-lead { color: var(--on-navy-muted); }
.link-arrow { font-weight: 600; text-decoration: none; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 30px;
  display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px;
}
.service:first-child, .service:last-child { grid-column: 1 / -1; border-top: 4px solid var(--teal); }
.service:first-child .ticks, .service:last-child .ticks { columns: 2; column-gap: 32px; }
.service-head { display: flex; gap: 16px; align-items: flex-start; }
.service-num { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--teal); border: 1.5px solid var(--teal); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.service-lead { margin-top: 6px; color: var(--slate); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service:first-child .ticks, .service:last-child .ticks { display: block; }
.service:first-child .ticks li, .service:last-child .ticks li { break-inside: avoid; margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-50%); }
.service-meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: var(--step--1); }
.service-meta strong { color: var(--navy); font-weight: 600; }
.backed { color: var(--slate); }
.scoped { margin-top: 32px; font-weight: 500; color: var(--navy); }
.scoped a { font-weight: 600; margin-left: 6px; text-decoration: none; }

/* Results */
.results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.result { border-top: 2px solid var(--teal-light); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.result-figure { font-family: var(--font-mono); font-weight: 700; font-size: var(--step-2); color: var(--white); line-height: 1.2; }
.result p:last-child { color: var(--on-navy-muted); font-size: var(--step--1); }
.partners { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.partners-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.partners li { font-weight: 600; color: var(--white); font-size: var(--step-1); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 28px 30px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 10px; align-content: start; }
.step-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.step p { color: var(--slate); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 28px; width: 14px; color: var(--teal); font-weight: 700; text-align: center; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-copy { display: grid; gap: 18px; }
.about-copy .eyebrow { margin-bottom: -4px; }
.about-copy p { max-width: 64ch; }
.creds { margin: 0; background: var(--offwhite); border-radius: 10px; padding: 8px 28px; }
.creds div { padding: 18px 0; display: grid; gap: 4px; }
.creds div + div { border-top: 1px solid var(--line); }
.creds dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.creds dd { margin: 0; font-size: var(--step--1); color: var(--charcoal); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.post-card h3 { font-size: var(--step-1); line-height: 1.35; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal); }
.post-card p:last-child { color: var(--slate); font-size: var(--step--1); }
.post-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate); letter-spacing: .04em; }
.post-date-light { color: var(--on-navy-muted); margin-top: 18px; }
.prose { font-size: var(--step-1); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-cta { margin-top: 3em !important; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; padding: 26px; display: grid; gap: 16px; justify-items: start; font-size: var(--step-0); }
.post-cta strong { color: var(--navy); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; color: var(--navy); font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--slate); max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact .section-lead { margin-bottom: 28px; }
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list div:first-child { border-top: 1px solid var(--line-dark); }
.contact-list dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-muted); padding-top: 3px; }
.contact-list dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.contact-list a { color: var(--white); }
.contact-list a:hover { color: var(--teal-light); }
.muted { color: var(--on-navy-muted); font-style: italic; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); border-top: 1px solid var(--line-dark); padding-block: 48px 28px; font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand { display: grid; gap: 14px; max-width: 360px; }
.footer-brand img { width: 170px; }
.footer-links, .footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { color: var(--teal-light); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .faq-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .portrait { aspect-ratio: 16 / 9; max-height: 320px; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof div:nth-child(3) { border-left: 0; padding-left: 0; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service:first-child .ticks, .service:last-child .ticks { columns: 1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:not(:last-child)::after { content: "↓"; right: auto; left: 28px; top: auto; bottom: -22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 48px 44px; }
  .results { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 22px; }
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-actions .btn { width: 100%; }
}

.about-side { display: grid; gap: 16px; }
.leader { display: grid; gap: 2px; padding: 22px 28px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; }
.leader-label, .creds-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.leader strong { color: var(--navy); font-size: var(--step-1); font-weight: 600; }
.leader span:last-child { color: var(--slate); font-size: var(--step--1); }
.creds-title { margin-top: 8px; color: var(--slate); }
