/* Requested local polish. Load after page.css and the existing home styles. */

/* Header only: preserve the source SVG, its left alignment and footer sizing. */
.site-nav .brand-original img,
.detail-page .site-nav .brand img {
  width: 130px;
  height: auto;
  max-width: none;
  object-fit: contain;
}

/* Nine directions remain complete; each is a distinct, readable card. */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.capability-grid > article {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 27px 26px 24px;
  border: 1px solid #c6d3e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.capability-grid > article > h3 {
  min-width: 0;
  min-height: 2.5em;
  margin: 0 0 15px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.capability-grid > article > h3 > a {
  color: #2456b9;
  text-decoration: none;
  text-decoration-color: #a7bfe8;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: break-word;
}
.capability-grid > article > p {
  min-height: 4.8em;
  margin: 0 0 19px;
  color: #3d526c;
  font-size: 15px;
  line-height: 1.6;
  max-width: none;
}
.capability-grid > article > ul {
  list-style: none;
  margin: 0;
  padding: 17px 0 0;
  border-top: 1px solid #e5ebf4;
}
.capability-grid > article > ul > li {
  position: relative;
  padding-left: 15px;
  margin: 0 0 13px;
  color: #4b607a;
  font-size: 14px;
  line-height: 1.6;
}
.capability-grid > article > ul > li:last-child { margin-bottom: 0; }
.capability-grid > article > ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .64em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5c82cb;
}
.capability-grid > article > .direction-link {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: 22px;
  color: #2456b9;
  font-size: 14px;
  font-weight: 500;
}

/* Three equivalent entry formats, with a restrained accent on full implementation. */
.engagement-section { background: #f1f5fb; }
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.format-grid > article {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 28px 26px 26px;
  border: 1px solid #c6d3e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.format-grid > article > h3 {
  max-width: none;
  margin: 0 0 16px;
  color: #17212d;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.format-grid > article > p {
  margin: 0 0 21px;
  color: #475d78;
  font-size: 15px;
  line-height: 1.6;
}
.format-grid > article > .format-fit {
  min-height: 0;
  margin-bottom: 23px;
  color: #315caa;
}
.format-grid > article > h4 {
  margin: 0 0 11px;
  padding-top: 20px;
  border-top: 1px solid #e1e9f4;
  color: #243a56;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.format-grid > article > .pill {
  align-self: flex-start;
  margin-top: auto;
  min-height: 46px;
}
.format-grid > article:nth-child(3) {
  border-color: #a8c0ed;
  background: #f7faff;
}
.format-grid > article:nth-child(3) > .pill {
  background: #245eea;
  color: #fff;
}

/* The scene and overlay share one uncropped rectangle; captions stay below it. */
.audience-studio { background: #d7e2f3; }
.audience-studio .studio-workflow {
  position: relative;
  width: min(1100px, calc(100% - 96px));
  max-width: 1100px;
  height: auto;
  aspect-ratio: 1672 / 940;
  margin: 28px auto 0;
  padding: 0;
  overflow: visible;
}
.audience-studio .studio-workflow > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.audience-studio .studio-workflow > .studio-light {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.audience-studio .studio-flow-caption {
  position: relative;
  width: min(1100px, calc(100% - 96px));
  margin: 24px auto 0;
  padding: 0 0 36px;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 24px;
  background: none;
}
.audience-studio .studio-flow-caption span {
  min-height: 32px;
  color: #2b466a;
  font-size: 14px;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .capability-grid > article > h3 > a:hover { color: #173e8c; text-decoration: underline; text-decoration-color: currentColor; }
  .capability-grid > article:hover { border-color: #a8bee0; }
}
.capability-grid > article:focus-within { border-color: #8caee9; }

@media (max-width: 1100px) {
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid > article { padding: 26px 24px 23px; }
  .format-grid > article { padding: 26px 23px 24px; }
  .format-grid > article > h3 { font-size: 23px; }
}
@media (max-width: 960px) {
  .format-grid { grid-template-columns: 1fr; gap: 20px; }
  .format-grid > article { padding: 27px; }
  .format-grid > article > h3 { font-size: 26px; }
  .format-grid > article > .pill { margin-top: auto; }
}
@media (max-width: 760px) {
  .site-nav .brand-original img,
  .detail-page .site-nav .brand img { width: 112px; height: auto; }
  .audience-studio .studio-workflow {
    width: calc(100% - 40px);
    max-width: none;
    height: auto;
    aspect-ratio: 1672 / 940;
    margin: 24px auto 0;
  }
  .audience-studio .studio-flow-caption {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 23px auto 0;
    padding-bottom: 30px;
  }
  .audience-studio .studio-flow-caption span,
  .audience-studio .studio-flow-caption span:nth-child(n) {
    justify-content: flex-start;
    min-height: 24px;
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .capability-grid { grid-template-columns: 1fr; gap: 18px; }
  .capability-grid > article { padding: 25px 23px 23px; }
  .capability-grid > article > h3 { min-height: 0; font-size: 23px; }
  .capability-grid > article > p { min-height: 0; }
  .capability-grid > article > p { font-size: 15px; }
  .capability-grid > article > .direction-link { font-size: 14px; }
  .format-grid > article { padding: 26px 23px 24px; }
  .format-grid > article > h3 { font-size: 25px; }
}
@media (max-width: 360px) {
  .site-nav .brand-original img,
  .detail-page .site-nav .brand img { width: 108px; height: auto; }
  .capability-grid > article { padding: 24px 21px 22px; }
  .capability-grid > article > h3 { font-size: 22px; }
  .format-grid > article { padding: 25px 21px 23px; }
  .format-grid > article > h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .audience-studio .studio-workflow > .studio-light { display: none; }
}

/* Keep comparable content on the same baseline in the three-column format row. */
@media (min-width: 1101px) {
  .format-grid > article > h3 { min-height: 2.48em; }
  .format-grid > article > .format-fit { min-height: 3.2em; }
  .format-grid > article > .format-fit + p { min-height: 8em; }
}
.audience-studio .studio-workflow {
  overflow: hidden;
  border-radius: 16px;
}

/* Very narrow phones: keep headings readable and the menu inside its header. */
.result-card { min-width: 0; }
@media (max-width: 760px) {
  .result-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .result-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .result-card { min-height: 210px; padding: 22px 24px; }
  .result-card h3 { font-size: 26px; }
  .detail-page .site-nav .nav-contact { display: none; }
}


/* Confirmed agent roles are easier to scan as a small project team. */
.case-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.case-agent-grid > article {
  min-width: 0;
  padding: 24px;
  border: 1px solid #c6d3e6;
  border-radius: 14px;
  background: #fff;
}
.detail-page .case-agent-grid h3 {
  margin: 0;
  color: #2456b9;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}
.detail-page .case-agent-grid p {
  margin: 14px 0 0;
  color: #475d78;
  font-size: 16px;
  line-height: 1.65;
}
@media (max-width: 560px) {
  .case-agent-grid { grid-template-columns: 1fr; gap: 14px; }
  .case-agent-grid > article { padding: 22px; }
}

/* Sticky detail headers must not inherit the homepage's horizontal offsets. */
.detail-page .site-nav { left: auto; right: auto; }


/* First-screen refinement: keep the approved composition and brand scale. */
.home-page .site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  top: 16px;
  height: 76px;
  gap: 24px;
  background: #fff;
  box-shadow: 0 8px 26px #17212d06;
}
.home-page .site-nav .brand-original { grid-column: 1; justify-self: start; }
.home-page .site-nav .desktop-nav { grid-column: 2; justify-self: center; gap: 4px; }
.home-page .site-nav .nav-actions { grid-column: 3; justify-self: end; gap: 10px; }
.home-page .desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.home-page .nav-actions .round-button {
  width: 44px;
  height: 44px;
  padding: 12px;
  background: #edf2fa;
  color: #294465;
}
.home-page .nav-contact { min-height: 44px; padding: 12px 19px; font-size: 13px; }
.home-page .hero {
  padding-top: 140px;
  min-height: 752px;
}
.home-page .hero h1 {
  max-width: 1020px;
  font-size: clamp(54px, 4.7vw, 66px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -.034em;
}
.home-page .hero-content > p {
  max-width: 620px;
  margin-top: 24px;
  color: #43566d;
  font-size: 18px;
  line-height: 1.55;
  text-wrap: balance;
}
.home-page .hero-actions { gap: 24px; margin-top: 28px; }
.home-page .hero-actions .pill {
  gap: 12px;
  min-height: 52px;
  padding: 15px 23px;
  font-size: 15px;
  line-height: 22px;
  background: #245eea;
  box-shadow: 0 7px 18px #245eea16;
  filter: none;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}
.home-page .hero-actions .pill .icon { width: 18px; height: 18px; }
.home-page .hero-secondary {
  min-height: 52px;
  padding: 10px 0;
  color: #344f70;
  font-size: 15px;
  line-height: 22px;
  text-underline-offset: 5px;
}
.home-page .hero-secondary .icon { width: 18px; height: 18px; }
.home-page .glass-stage.hero-glass {
  width: min(760px, 94vw);
  height: 312px;
  margin-top: 0;
}
@media (hover: hover) and (pointer: fine) {
  .home-page .desktop-nav a:hover { background: #edf2fa; color: #213b5d; }
  .home-page .nav-actions .round-button:hover { background: #dfe8f6; }
  .home-page .hero-actions .pill:hover { background: #194fd4; box-shadow: 0 9px 22px #245eea21; }
  .home-page .hero-secondary:hover { color: #174bb7; text-decoration: underline; }
}
.home-page .hero-actions .pill:active { transform: translateY(1px); }
@media (max-width: 1100px) {
  .home-page .site-nav { gap: 16px; }
  .home-page .desktop-nav a { padding-inline: 8px; font-size: 13px; }
  .home-page .nav-contact { padding-inline: 15px; }
  .home-page .hero h1 { font-size: 54px; }
}
@media (max-width: 900px) {
  .home-page .site-nav { display: flex; height: 72px; }
  .home-page .site-nav .desktop-nav { display: none; }
  .home-page .site-nav .nav-actions { margin-left: auto; }
  .home-page .hero h1 { font-size: 50px; }
}
@media (max-width: 760px) {
  .home-page .site-nav { top: 12px; height: 68px; gap: 16px; padding-inline: 15px; }
  .home-page .site-nav .nav-actions { gap: 8px; }
  .home-page .hero { padding-top: 122px; min-height: 714px; }
  .home-page .hero-content { padding-inline: 20px; }
  .home-page .hero h1 { font-size: clamp(31px, 9vw, 39px); line-height: 1.12; letter-spacing: -.03em; }
  .home-page .hero-content > p { max-width: 370px; margin-top: 22px; font-size: 16px; line-height: 1.6; }
  .home-page .hero-actions { flex-direction: column; gap: 8px; margin-top: 24px; }
  .home-page .hero-actions .pill { min-height: 50px; padding: 14px 23px; font-size: 14px; }
  .home-page .hero-secondary { min-height: 44px; padding: 10px 0; font-size: 14px; }
  .home-page .glass-stage.hero-glass { width: 100%; height: 252px; margin-top: 4px; }
}
@media (max-width: 360px) {
  .home-page .hero { padding-top: 115px; min-height: 700px; }
  .home-page .hero h1 { font-size: 30px; }
  .home-page .hero-content > p { font-size: 15px; }
  .home-page .hero-actions { margin-top: 22px; }
  .home-page .glass-stage.hero-glass { height: 228px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-actions .pill { transition: background-color 120ms linear; }
  .home-page .hero-actions .pill:active { transform: none; }
}

.home-page .hero-visual { position: relative; margin-top: 8px; }
.home-page .hero-visual .hero-glass { margin-top: 0; }
.home-page .hero-visual .hero-guide {
  top: calc(50% - 95px);
  left: 0;
  width: 100%;
  height: 190px;
  stroke: #9fb4d1a8;
}
.hero-flow-labels {
  position: absolute;
  z-index: 2;
  inset: calc(50% - 40px) 64px auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #536a86;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  pointer-events: none;
}
.hero-flow-labels > span { max-width: 220px; }
.hero-flow-labels > span:last-child { text-align: right; }
@media (max-width: 1100px) {
  .hero-flow-labels { inset-inline: 42px; }
  .hero-flow-labels > span { max-width: 170px; }
}
@media (max-width: 760px) {
  .home-page .hero-visual { margin-top: 4px; }
  .home-page .hero-visual .hero-guide { width: 180%; left: -40%; top: 30px; }
  .hero-flow-labels {
    position: relative;
    inset: auto;
    width: calc(100% - 40px);
    margin: 8px auto 0;
    padding-bottom: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    font-size: 12px;
    line-height: 1.5;
  }
  .hero-flow-labels > span { max-width: none; }

}
