/* ==========================================================================
   Page-level components — solutions / case-studies / about
   Reuses tokens, buttons, .head-ekg, .icon3d, .case-card, .method from the
   shared stylesheets; adds only what these interior pages need.
   ========================================================================== */

/* ---- Page hero (interior pages) ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(7rem, 5rem + 8vw, 11rem);
  padding-bottom: var(--space-section);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow {
  margin-bottom: var(--space-md);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-hero);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18ch;
  margin: 0;
}
.page-hero__sub {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 54ch;
}
.page-hero__cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
/* let the heartbeat cross the hero heading */
.page-hero .head-ekg {
  top: 42%;
}

/* ---- Generic intro / lead block ---- */
.lead-block {
  max-width: 60ch;
}
.lead-block h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead-block p {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  color: var(--muted);
}

/* ---- Solution detail blocks (alternating media / copy) ---- */
.solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: var(--space-2xl);
}
.solution + .solution {
  border-top: 1px solid var(--line);
}
.solution__body {
  max-width: 46ch;
}
.solution__icon {
  width: 76px;
  height: 76px;
  margin-bottom: var(--space-md);
}
.solution__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(30, 42, 51, 0.18));
}
.solution__body h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.solution__body > p {
  margin-top: var(--space-sm);
  color: var(--muted);
  font-size: var(--text-base);
}
.solution__cta {
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.solution__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-fast);
}
.solution__cta:hover svg {
  transform: translateX(3px);
}

/* visual panel on the opposite column */
.solution__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.solution__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solution:nth-child(even) .solution__media {
  order: -1;
}

@media (max-width: 820px) {
  .solution {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-block: var(--space-xl);
  }
  .solution:nth-child(even) .solution__media {
    order: 0;
  }
}

/* ---- Checklist (deliverables) ---- */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  display: grid;
  gap: 0.65rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--brand-ink);
}
.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--brand-green-600);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- "How we stack up" comparison ---- */
.stack__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.stack__col {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
}
.stack__col--them {
  background: var(--surface-2);
}
.stack__col--us {
  background: var(--brand-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.stack__col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}
.stack__col--them h3 {
  color: var(--muted);
}
.stack__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}
.stack__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.stack__col--them li {
  color: var(--muted);
}
.stack__ico {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stack__col--them .stack__ico {
  stroke: var(--line-strong);
}
.stack__col--us .stack__ico {
  stroke: var(--brand-green);
}
@media (max-width: 760px) {
  .stack__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Filter pills (case studies) ---- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.filter__pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand-ink);
  cursor: default;
}
.filter__pill--active {
  background: var(--brand-blue);
  border-color: transparent;
  color: #fff;
}

/* cases grid reuse + a wider gallery */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 900px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- About: story + values + team ---- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-story__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  position: relative;
}
.about-story__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 820px) {
  .about-story {
    grid-template-columns: 1fr;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--dur-normal) var(--ease-out-quint), box-shadow var(--dur-normal);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-md);
}
.value-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(30, 42, 51, 0.16));
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 0.4rem;
}
.value-card p {
  font-size: var(--text-sm);
  color: var(--muted);
}
@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.team-card {
  text-align: center;
}
.team-card__avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.team-card__avatar span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  color: var(--brand-blue);
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}
.team-card__role {
  font-size: var(--text-xs);
  color: var(--muted);
}
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Region / pricing strip ---- */
.region {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.region__item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.region__item b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-3xl);
  color: var(--brand-blue);
  line-height: 1;
}
.region__item span {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  color: var(--muted);
}
@media (max-width: 700px) {
  .region {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}
