/* A² Pulse Advisors — v2 consulting redesign */

:root {
  --bg: #f9f6f1;
  --bg-elevated: #fffefb;
  --ink: #14151a;
  --ink-soft: #3d3f4a;
  --muted: #6b6d7a;
  --line: #e2ddd4;
  --accent: #9a3412;
  --accent-hover: #7c2d12;
  --accent-soft: #fff1e7;
  --dark: #0e0f12;
  --dark-soft: #a8abb8;
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 20px 50px rgba(20, 21, 26, 0.08);
  --header-h: 4.5rem;
  --max: 1080px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.top__logo img {
  height: clamp(48px, 7vw, 58px);
  width: auto;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.75rem;
}

.top__links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.top__links a:hover,
.top__links a[aria-current="page"] {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff !important;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn--light {
  background: #fff;
  color: var(--ink) !important;
}

.btn--light:hover {
  background: var(--accent-soft);
  color: var(--accent-hover) !important;
}

/* Mobile */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.top.is-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top.is-open .burger span:nth-child(2) {
  opacity: 0;
}

.top.is-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.burger span {
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 820px) {
  /*
   * backdrop-filter on .top creates a containing block in WebKit/Safari, so
   * position:fixed children are laid out inside the short header bar and the
   * flyout menu is clipped (often only the first link visible). Drop blur on
   * narrow viewports so the overlay can cover the full viewport.
   */
  .top {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(247, 244, 239, 0.97);
  }

  .burger {
    display: flex;
  }

  .top__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s, visibility 0.25s;
    overflow-y: auto;
  }

  .top.is-open .top__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .top__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .top__nav .btn--primary {
    margin-top: 0.25rem;
    align-self: flex-start;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__kicker--plain {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  line-height: 1.45;
  max-width: 36rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero__support {
  font-size: clamp(1.08rem, 2.1vw, 1.22rem);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 1.1rem;
  max-width: 42ch;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__lockup {
  margin: 0 0 1.15rem;
  max-width: min(100%, 420px);
}

.hero__lockup img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  background: var(--line);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Website_Header_Image.png is 600×400 (3:2); square crop cuts sides (robot). */
.hero__visual--header-photo {
  aspect-ratio: 3 / 2;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--dark {
  background: var(--dark);
  color: var(--dark-soft);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #f4f4f6;
}

.section--dark .section__lead {
  color: var(--dark-soft);
}

.legal-page .section__lead {
  color: var(--dark-soft);
}

.section--tint {
  background: var(--accent-soft);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__head.center {
  margin-inline: auto;
  text-align: center;
}

.section__head.center .section__lead {
  margin-inline: auto;
}

.section__lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 4px 20px rgba(20, 21, 26, 0.04);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.section--dark .card__num {
  color: #fdba74;
}

.card p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* Cards with top imagery (pillar / services) */
.card--media {
  padding: 0;
  overflow: hidden;
}

.card--media .card__media {
  aspect-ratio: 16 / 10;
  background: var(--line);
  overflow: hidden;
}

.card--media .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--media .card__body {
  padding: 1rem 1.35rem 1.4rem;
}

.card--media .card__num {
  margin-bottom: 0.5rem;
}

/* Inline figure in split sections */
.content-figure {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--line);
}

.content-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Approach page image strip */
.section--flush-top {
  padding-top: 0;
}

.approach-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .approach-strip {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}

.approach-strip__cell {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
  box-shadow: 0 4px 20px rgba(20, 21, 26, 0.06);
}

.approach-strip__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section__figure-wide {
  max-width: 42rem;
  margin: 0 auto 2rem;
  aspect-ratio: 21 / 9;
}

@media (max-width: 640px) {
  .section__figure-wide {
    aspect-ratio: 16 / 10;
  }
}

.section--dark .card p {
  color: #c4c6d0;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split__prose h2,
.split__prose h3 {
  margin-bottom: 1rem;
}

.split__prose h3 {
  font-size: 1.2rem;
  margin-top: 0;
}

.split__prose p {
  color: var(--muted);
}

/* About — leadership list + repeatable profiles */
.about-leadership-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.about-person {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.about-person:last-of-type {
  margin-bottom: 0;
}

.about-person__head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.about-person__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.about-person__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.about-person__media {
  margin-bottom: 2rem;
}

.about-person__body.split__prose h2,
.about-person__body.split__prose h3,
.about-person__body.split__prose h4 {
  color: var(--ink);
}

.about-person__body h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.pullquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 1.35rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* CTA band */
.cta {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--dark) 0%, #1a1b22 100%);
  border-radius: var(--radius-lg);
  color: var(--dark-soft);
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}

/* Page hero small */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 50ch;
}

.page-hero__sub {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Prose article */
.article {
  padding: 2.5rem 0 4rem;
  max-width: 42rem;
}

.article h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
}

.article h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
}

.article p,
.article li {
  color: var(--muted);
}

.article ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 560px;
  margin-top: 2rem;
}

@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h3 {
  margin-bottom: 0.35rem;
}

/* Footer */
.foot {
  background: var(--dark);
  color: var(--dark-soft);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.foot a {
  color: #e8e9ed;
  text-decoration: none;
}

.foot a:hover {
  color: #fdba74;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem 1.5rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

@media (max-width: 800px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

.foot__logo img {
  width: min(100%, 280px);
  height: auto;
}

.foot__col h2 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b8e9a;
  margin: 0 0 0.85rem;
}

.foot__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot__col li {
  margin-bottom: 0.4rem;
}

.foot__col a {
  font-size: 0.9rem;
}

.foot__bottom {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: #8b8e9a;
}

.foot__taglines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  max-width: min(28rem, 100%);
  text-align: right;
}

.foot__tagline {
  line-height: 1.45;
}

.foot__tagline--primary {
  font-style: italic;
  font-weight: 500;
  color: #c8cad3;
}

.foot__tagline--secondary {
  font-style: italic;
  font-size: 0.88rem;
  color: #a8abb8;
}

@media (max-width: 640px) {
  .foot__taglines {
    align-items: flex-start;
    text-align: left;
  }
}

.partners-stack {
  max-width: min(36rem, 100%);
}

.partner-card h3 {
  margin-top: 0;
}

.partner-card__link-row {
  margin-bottom: 1rem;
}

.partner-card__site-link {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
}

.partner-card__site-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* Live site preview — mini “browser” frame */
.partner-preview {
  margin-top: 0.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.partner-preview:hover {
  box-shadow: 0 24px 56px rgba(20, 21, 26, 0.12);
  transform: translateY(-2px);
}

.partner-preview--linked {
  display: block;
  color: inherit;
  text-decoration: none;
}

.partner-preview--linked:hover .partner-preview__url-bar {
  color: var(--ink-soft);
}

.partner-preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #eceae6 0%, #e0ddd7 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.partner-preview__dots {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.partner-preview__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c4c0ba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.partner-preview__dots span:nth-child(1) {
  background: #e07a6e;
}

.partner-preview__dots span:nth-child(2) {
  background: #d4b04a;
}

.partner-preview__dots span:nth-child(3) {
  background: #7cb87c;
}

.partner-preview__url-bar {
  flex: 1;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.partner-preview__frame {
  position: relative;
  width: 100%;
  height: min(320px, 52vw);
  min-height: 220px;
  background: var(--line);
}

.partner-preview__frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  object-fit: cover;
  object-position: top center;
}

.partner-preview__hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 640px) {
  .partner-preview__frame {
    height: 360px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legal */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.legal-block {
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #f4f4f6;
  margin: 0 0 0.65rem;
}

.legal-block p,
.legal-block li {
  color: #b8bac4;
  font-size: 0.95rem;
}

.legal-block a {
  color: #fdba74;
}

.legal-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
