/* ==========================================================================
   PCM3 — Design tokens
   ========================================================================== */
:root {
  --ink: #17131e;
  --ink-soft: #4a4453;
  --muted: #79738280;
  --muted-solid: #79738f;
  --bg: #ffffff;
  --bg-alt: #f7f5fa;
  --bg-deep: #170f22;
  --bg-deep-alt: #221733;
  --primary: #3f2a5c;
  --primary-dark: #2a1c3f;
  --primary-light: #6b4a95;
  --accent: #c8973f;
  --accent-light: #e7cd94;
  --border: #e8e4f0;
  --white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(23, 19, 30, .06), 0 1px 4px rgba(23, 19, 30, .06);
  --shadow-md: 0 10px 30px rgba(23, 19, 30, .10);
  --shadow-lg: 0 24px 60px rgba(23, 19, 30, .18);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 640px) {
  .container { padding-inline: 32px; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--muted-solid);
  max-width: 62ch;
}

.section { padding-block: clamp(56px, 6vw + 24px, 112px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.text-center { text-align: center; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-light); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary-light); color: var(--primary); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { letter-spacing: -0.01em; }
.brand-name small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted-solid);
  text-transform: uppercase;
  margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.main-nav a.active { color: var(--primary); background: var(--bg-alt); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta .btn span.hide-mobile { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(200,151,63,.25), transparent 60%),
    linear-gradient(155deg, var(--bg-deep-alt), var(--bg-deep) 65%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: clamp(72px, 10vw, 148px);
  max-width: 760px;
}
.hero-inner.wide { max-width: 900px; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 1.9rem + 2.6vw, 3.6rem);
  margin-bottom: 20px;
}
.hero .lede { color: rgba(255,255,255,.78); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.page-hero .hero-inner { padding-block: clamp(56px, 7vw, 96px); }

/* stat strip inside hero */
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.14);
  max-width: 980px;
}
.hero-stat .num {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero-stat .num span { color: var(--accent); }
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,.62);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}
.icon-tile svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--muted-solid); }

/* stat blocks (light section) */
.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.stat-card .num {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  font-weight: 800;
  color: var(--primary);
}
.stat-card .label { font-size: 0.85rem; color: var(--muted-solid); margin-top: 6px; }

/* ==========================================================================
   Timeline (About / History)
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item .year {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

/* ==========================================================================
   Pull quote / values
   ========================================================================== */
.pull-quote {
  position: relative;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.team-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--primary-light), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.team-name { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.team-title { font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-top: 2px; }
.team-card p { font-size: 0.93rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-mark { font-size: 2.4rem; color: var(--accent); line-height: 1; font-weight: 800; font-family: Georgia, serif; }
.quote-card blockquote { font-size: 0.98rem; color: var(--ink-soft); font-style: italic; flex-grow: 1; }
.quote-attr { font-size: 0.87rem; }
.quote-attr .org { font-weight: 800; color: var(--ink); display: block; }
.quote-attr .person { color: var(--muted-solid); }

/* ==========================================================================
   Tags / chips
   ========================================================================== */
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ==========================================================================
   Services list page
   ========================================================================== */
.service-list {
  display: grid;
  gap: 12px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.service-list li:last-child { border-bottom: 0; }
.service-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); width: 18px; height: 18px; }

/* ==========================================================================
   Clients directory
   ========================================================================== */
.client-search {
  position: relative;
  max-width: 420px;
  margin-bottom: 12px;
}
.client-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.client-search input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
}
.client-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-solid);
}
.client-count { font-size: 0.85rem; color: var(--muted-solid); margin-bottom: 32px; }

.client-grid {
  columns: 3 220px;
  column-gap: 32px;
}
.client-item {
  break-inside: avoid;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.client-item.is-hidden { display: none; }
@media (max-width: 640px) { .client-grid { columns: 1; } }

.no-results {
  display: none;
  padding: 40px 0;
  text-align: center;
  color: var(--muted-solid);
}
.no-results.show { display: block; }

/* ==========================================================================
   Sub nav (About page in-page tabs)
   ========================================================================== */
.subnav {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: rgba(247,245,250,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.subnav-row { display: flex; gap: 6px; padding-block: 10px; overflow-x: auto; }
.subnav a {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.subnav a:hover, .subnav a.active { background: var(--primary); color: var(--white); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-row { display: flex; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .icon-tile { margin-bottom: 0; background: var(--white); }
.contact-row h4 { font-size: 0.95rem; color: var(--ink); margin-bottom: 3px; }
.contact-row p, .contact-row a { font-size: 0.93rem; color: var(--muted-solid); }
.contact-row a:hover { color: var(--primary); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.form-note { font-size: 0.82rem; color: var(--muted-solid); margin-top: 14px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(155deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.65); }
.footer-top { padding-block: 64px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
