/* The four formulation identities share the hero's Optima typography. */
.formulation-card .formulation-card-copy h3,
.home-page .formulation-card-heading h3 {
  font-family: 'Optima Hero', Optima, var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}

/* Keep the animal-nutrition story broad; each result is a distinct example. */
.evidence-story .feed-formulation-copy {
  max-width: 480px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Compact, shared result displays: a visual identity, a result, then context. */
.formulation-example {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, .85fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 38px;
  padding: 34px 38px;
  border: 0;
  border-radius: 18px;
  background: var(--canvas);
}
.home-page .nutrition-example {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: var(--surface);
}
.feed-example { margin-top: 72px; }
.example-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.example-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .01em;
}
.example-identity h3 {
  margin: 0;
  font-family: 'Optima Hero', Optima, var(--font-body);
  font-size: 1.4375rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}
.example-matcha-image {
  position: relative;
  display: block;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
}
.example-matcha-image > img {
  position: absolute;
  width: 290%;
  height: auto;
  max-width: none;
  left: -28%;
  top: -3%;
}
.example-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
}
.example-partner .partner-logo-crop { width: 62px; height: 62px; }
.example-partner .partner-logo--sat { height: 62px; }
.example-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-inline: 20px;
  text-align: center;
  border-inline: 1px solid var(--line);
}
.example-number {
  display: block;
  font-family: 'Optima Hero', Optima, var(--font-body);
  font-size: clamp(2.75rem, 4vw, 3.625rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.example-number > span { font-size: .58em; letter-spacing: -.01em; }
.example-result-label { max-width: 165px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.example-context { min-width: 0; }
.example-context > p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.example-context > p.example-conclusion { margin-bottom: 7px; color: var(--ink); font-size: 1rem; }
.example-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 13px;
  min-height: 30px;
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.5;
  text-decoration: none;
}
.example-link > span { font-size: 1.125rem; transition: transform .2s ease; }
.example-link:hover > span { transform: translate(2px, -2px); }
.example-link:focus-visible, .example-partner:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
/* Air between the chapters replaces the lines below these examples. */
.home-page main > .evidence-feature,
.home-page main > .co-create-section { border-top: 0; }

@media (max-width: 1150px) {
  .formulation-example { gap: 26px; padding: 30px 28px; grid-template-columns: minmax(0, 1fr) minmax(165px, .85fr) minmax(0, 1.3fr); }
  .example-identity { gap: 12px; }
  .example-identity h3 { font-size: 1.25rem; }
  .example-matcha-image, .example-partner { flex-basis: 60px; width: 60px; height: 60px; }
  .example-partner .partner-logo-crop { width: 54px; height: 54px; }
  .example-partner .partner-logo--sat { height: 54px; }
  .example-result { padding-inline: 14px; }
}
@media (max-width: 900px) {
  .formulation-example { grid-template-columns: 1fr 1fr; gap: 28px 32px; padding: 30px; }
  .home-page .nutrition-example { margin-top: 12px; }
  .feed-example { margin-top: 56px; }
  .example-identity { justify-content: center; }
  .example-result { border-inline: 0; border-left: 1px solid var(--line); }
  .example-context { grid-column: 1 / -1; max-width: 580px; justify-self: center; text-align: center; }
  .example-context > p { font-size: .9375rem; }
}
@media (max-width: 540px) {
  .formulation-example { padding: 28px 20px; gap: 26px 20px; border-radius: 14px; }
  .home-page .nutrition-example { margin-top: 16px; }
  .feed-example { margin-top: 48px; }
  .example-identity { flex-direction: column; gap: 12px; text-align: center; }
  .example-label { margin-bottom: 6px; font-size: .6875rem; }
  .example-identity h3 { font-size: 1.1875rem; }
  .example-result { padding-left: 18px; padding-right: 0; }
  .example-number { font-size: 2.75rem; }
  .example-result-label { font-size: .75rem; }
  .example-context > p { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .example-link > span { transition: none; }
}

/* Equal-weight next steps, anchored to the two edges of the portfolio. */
.home-page .portfolio-tools { justify-content: space-between; gap: 24px; }
.home-page .portfolio-tools > button { text-align: left; }
.pipeline-dialog {
  max-width: 720px;
  max-height: calc(100svh - 48px);
  padding: 64px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 0% 100%, #61a5cc12, transparent 65%),
    radial-gradient(ellipse at 100% 0%, #fdb41610, transparent 60%),
    var(--canvas);
  overscroll-behavior: contain;
}
.pipeline-dialog[open] { animation: pipeline-arrive .45s ease-out both; }
.pipeline-dialog .dialog-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  line-height: 1;
  border-radius: 50%;
  color: var(--muted);
}
.pipeline-dialog .dialog-close:hover { color: var(--ink); background: var(--surface); }
.pipeline-dialog .dialog-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pipeline-announcement {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-bottom: 22px;
  text-align: center;
}
.pipeline-accent {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #75a7bf, var(--brand-gold));
}
.pipeline-dialog h2 {
  margin: 0;
  font-family: 'Optima Hero', Optima, var(--font-body);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.pipeline-dialog .pipeline-period { color: var(--brand-gold); }
@keyframes pipeline-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 540px) {
  .home-page .portfolio-tools { flex-direction: column; align-items: flex-start; gap: 16px; }
  .home-page .portfolio-tools > [data-open-comparison] { align-self: flex-end; }
  .pipeline-dialog { padding: 52px 20px 32px; border-radius: 20px; max-height: calc(100svh - 24px); }
  .pipeline-announcement { min-height: 200px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-dialog[open] { animation: none; }
}
