.how-we-work {
  --ivory: #0d1b2a;
  --navy: #f7f5ef;
  --navy-soft: rgba(247, 245, 239, .68);
  --navy-faint: rgba(247, 245, 239, .18);
  background: var(--ivory);
  color: var(--navy);
  scroll-margin-top: 4.25rem;
  display: flex;
  align-items: center;
  min-height: 0;
}

.how-we-work__inner {
  width: var(--stage-width);
  margin-inline: auto;
  padding: clamp(3rem, 4vw, 4.5rem) var(--stage-inset) clamp(3rem, 4vw, 4.5rem);
}

.how-we-work h2 {
  margin: 0 0 clamp(2.75rem, 4vw, 4rem);
  color: var(--navy-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.how-we-work__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

.how-we-work__item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 1.25rem;
  min-width: 0;
  padding: clamp(1.5rem, 2.2vw, 2.25rem);
  border: 1px solid var(--navy-faint);
  border-radius: .3rem;
  background: rgba(246, 234, 221, .045);
  color: var(--navy);
}

.how-we-work__item > * {
  position: relative;
  z-index: 1;
}

/* Pointer-local border light only; no animated fill or automatic sweep. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .how-we-work[data-border-glow="true"] .how-we-work__item::before,
  .how-we-work[data-border-glow="true"] .how-we-work__item::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    will-change: opacity;
    opacity: var(--edge-strength, 0);
    transition: opacity 220ms ease-out;
  }
  .how-we-work[data-border-glow="true"] .how-we-work__item::before {
    padding: 1px;
    background: radial-gradient(280px circle at var(--edge-x) var(--edge-y), var(--card-edge-core, #f7f5ef) 8%, var(--gold) 48%, transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }
  .how-we-work[data-border-glow="true"] .how-we-work__item::after {
    inset: -7px;
    border: 7px solid transparent;
    background-clip: padding-box;
    box-shadow: inset 0 0 14px rgb(var(--card-glow-rgb, 232 180 81) / .7), 0 0 12px rgb(var(--card-glow-rgb, 232 180 81) / .25);
    mask-image: radial-gradient(280px circle at calc(var(--edge-x) + 6px) calc(var(--edge-y) + 6px), #000 15%, transparent);
  }
}

.how-we-work h3 {
  margin: 0;
  font-size: clamp(1.85rem, 2.35vw, 2.4rem);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.how-we-work__description {
  margin: 0;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.55;
}

.how-we-work__examples {
  margin: .4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--navy-faint);
  color: var(--navy-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* Keep each example and its separator together when the line wraps. */
.how-we-work__examples span { display: inline-block; }

.how-we-work__founder {
  scroll-margin-top: 7rem;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--navy-faint);
}
.how-we-work__founder-photo {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  padding: .75rem;
  border: 1px solid var(--navy-faint);
  border-radius: .3rem;
  color: var(--navy-soft);
  font-size: .75rem;
  text-align: center;
}
.how-we-work__founder-copy { max-width: 70ch; }
.how-we-work__founder-photo--portrait { display: block; width: 100%; height: auto; object-fit: cover; padding: 0; border: 0; }
.how-we-work .how-we-work__founder h3 { color: var(--navy-soft); font-size: .9rem; line-height: 1.4; letter-spacing: 0; }
.how-we-work__founder h3 span { color: var(--navy-soft); font-size: 1rem; font-weight: 400; }
.how-we-work__founder p { margin: .6rem 0 0; font-size: 1rem; line-height: 1.55; }
.how-we-work__founder .how-we-work__founder-name { margin-top: .35rem; font-size: 1.2rem; }
.how-we-work__founder .how-we-work__founder-credentials { color: var(--navy-soft); }
.how-we-work__founder .how-we-work__founder-links { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; margin-top: .75rem; font-size: .9rem; }
.how-we-work__founder-links a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy-faint); text-underline-offset: .25em; padding-block: .25rem; }
.how-we-work__founder-links a:hover { text-decoration-color: currentColor; }
.how-we-work__founder-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.founder-link-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 620px) {
  .how-we-work__founder { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .how-we-work__founder-profile { display: flex; align-items: center; gap: 1.25rem; }
  .how-we-work__founder-photo { width: 80px; flex: 0 0 80px; }
  .how-we-work__founder .how-we-work__founder-links { margin-top: 0; gap: .35rem; }
  .how-we-work__founder h3 span { display: block; }
}

@media (max-width: 1050px) {
  .how-we-work { min-height: 0; }
  .how-we-work__items { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .how-we-work__item { grid-template-rows: auto auto auto; grid-row: auto; row-gap: 1rem; }
  .how-we-work__description { max-width: 55ch; }
  .how-we-work__examples { margin-top: .3rem; }
}

@media (max-width: 620px) {
  .how-we-work h2 { font-size: .7rem; }
  .how-we-work { scroll-margin-top: 3.9rem; }
  .how-we-work__inner { padding: 2.5rem var(--page-pad) 4.5rem; }
}

/* Picture owns the responsive footprint; both formats use the same crop. */
.how-we-work__founder-picture { display: block; width: 128px; flex: 0 0 128px; }
@media (max-width: 620px) {
  .how-we-work__founder-picture { width: 80px; flex-basis: 80px; }
}
