/* Reusable company portfolio. Add a [data-product-card] item; no product-count rules. */
.portfolio-home { font-size: 1rem; }
.portfolio-home .company-brand small { font-size: .875rem; letter-spacing: 0; }
.portfolio-home .company-header nav { font-size: 1rem; align-items: center; gap: 1.5rem; }
.portfolio-home .company-header { position: relative; z-index: 20; }
.portfolio-home .company-eyebrow { font-size: .875rem; }
.portfolio-home .company-lead { max-width: 560px; font-size: 1.0625rem; }
.portfolio-home .company-actions .company-button { font-size: 1rem; justify-content: center; }
.portfolio-home .company-hero { grid-template-columns: 1.12fr 1fr; gap: 3rem; padding-block: 3rem; min-height: 360px; }
.portfolio-home .company-intro h1 { font-size: clamp(2.4rem, 3.8vw, 3.4rem); }
.company-purpose { border: 1px solid #ccdee5; border-radius: 18px; padding: 2rem; background: linear-gradient(140deg,#e6f2f6,#eff7ef); position: relative; overflow: hidden; }
.company-purpose::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid #b4d2d5; border-radius: 50%; right: -75px; bottom: -80px; pointer-events: none; }
.company-purpose > p { font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 0 0 1.5rem; color: #193c50; }
.company-purpose ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.company-purpose li { padding: .7rem 0; border-bottom: 1px solid #c9dfe0; color: #315c66; font-size: 1rem; }
.company-purpose li:last-child { border: 0; }
.company-purpose strong { display: block; margin-bottom: .15rem; color: #173e4f; }
.products-menu { position: relative; }
.products-menu summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; gap: .6rem; align-items: center; padding: .5rem 0; font-weight: 600; }
.products-menu summary::-webkit-details-marker { display: none; }
.products-menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -4px; }
.products-menu[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.company-header .products-menu .products-menu-links { position: absolute; top: calc(100% + .4rem); right: 0; min-width: 245px; max-width: calc(100vw - 40px); padding: .6rem; display: grid; gap: 0; background: #fff; border: 1px solid #cbdee4; box-shadow: 0 12px 32px #173e4f1a; border-radius: 10px; }
.products-menu-links a { padding: .8rem 1rem !important; border-radius: 5px; white-space: nowrap; }
.products-menu-links a:hover { background: #eef5f5; }
.portfolio-section { padding-top: 1rem; padding-bottom: 3rem; }
.portfolio-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1rem; }
.portfolio-heading h2 { margin: .4rem 0; font-size: clamp(1.7rem,3vw,2.2rem); line-height: 1.25; letter-spacing: -.02em; }
.portfolio-heading p { margin: .4rem 0; }
.portfolio-controls { display: flex; gap: .65rem; flex: none; }
.portfolio-controls[hidden] { display: none; }
.portfolio-controls button { width: 46px; height: 46px; border: 1px solid #9fbcc7; border-radius: 50%; background: #fff; color: #234f62; cursor: pointer; display: grid; place-items: center; }
.portfolio-controls svg { width: 20px; height: 20px; }
.portfolio-controls button:hover:not(:disabled) { background: #eaf3f4; border-color: #356977; }
.portfolio-controls button:disabled { opacity: .4; cursor: default; }
.portfolio-help { color: #526d79; margin: 0 0 .8rem; font-size: .875rem; }
.portfolio-track { --portfolio-gap: 22px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--portfolio-gap)) / 3); align-items: stretch; gap: var(--portfolio-gap); list-style: none; margin: 0; padding: 4px 0 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #91b4be #e6eff2; }
.portfolio-card { --product-ink: #235f7d; --product-soft: #edf5fa; display: flex; flex-direction: column; min-width: 0; gap: 1rem; scroll-snap-align: start; padding: 1.4rem; border: 1px solid #d3e1e7; border-top: 4px solid var(--product-ink); border-radius: 12px; background: #fff; }
.portfolio-card.whatif { --product-ink: #0b735b; --product-soft: #edf5e7; }
.portfolio-card.littlesignal { --product-ink: #0f5f5b; --product-soft: #f3f7f6; }
.product-identity { display: flex; align-items: center; gap: .8rem; min-height: 64px; }
.product-identity img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.product-identity h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 .25rem; color: var(--product-ink); overflow-wrap: anywhere; }
.product-attribution { font-size: .875rem; line-height: 1.3; margin: 0; color: #5b707b; }
.product-status { font-size: .875rem; line-height: 1.4; color: var(--product-ink); background: var(--product-soft); padding: .4rem .6rem; border-radius: 4px; margin: 0; min-height: 2.1rem; }
.portfolio-art { height: 165px; margin: 0; border: 1px solid #dbe6ea; border-radius: 7px; overflow: hidden; background: var(--product-soft); }
.portfolio-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portfolio-art .dashboard-art { object-position: center 38%; }
.portfolio-art .illustration-art { object-fit: contain; }
.portfolio-tagline { font-size: 1.125rem; line-height: 1.45; font-weight: 700; color: var(--product-ink); margin: 0; min-height: 3em; }
.portfolio-description { font-size: 1rem; line-height: 1.65; margin: 0 0 .25rem; color: #4d6573; flex: 1; }
.portfolio-cta { display: inline-flex; justify-content: center; align-items: center; padding: .8rem .6rem; min-height: 48px; border: 1px solid var(--product-ink); border-radius: 6px; background: var(--product-ink); color: #fff; font-size: .9375rem; font-weight: 700; line-height: 1.4; text-align: center; margin-top: auto; }
.portfolio-cta:hover { filter: brightness(.9); }
.portfolio-position { color: #526d79; font-size: .875rem; min-height: 1.5em; margin: .5rem 0 0; }
.portfolio-position:empty { display: none; }
.portfolio-home .footer { font-size: .9375rem; }
.portfolio-home .footer-inner { font-size: .875rem; }
@media (max-width: 1179px) {
  .portfolio-track { grid-auto-columns: calc((100% - var(--portfolio-gap)) / 2); }
  .portfolio-home .company-hero { gap: 1.5rem; }
  .company-purpose { padding: 1.5rem; }
}
@media (max-width: 699px) {
  .portfolio-home .company-header { flex-wrap: wrap; padding-block: 1rem; gap: .75rem; }
  .portfolio-home .company-header nav { font-size: .9375rem; gap: 1.25rem; }
  .portfolio-home .company-header nav > a { display: inline; }
  .portfolio-home .company-brand { font-size: 1.0625rem; }
  .portfolio-home .company-brand small { font-size: .875rem; display: block; }
  .portfolio-home .company-hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 1.75rem; }
  .portfolio-home .company-actions { flex-direction: row; }
  .company-purpose { padding: 1.3rem; }
  .company-purpose > p { font-size: 1.2rem; margin-bottom: .6rem; }
  .company-purpose li { padding-block: .5rem; }
  .portfolio-track { --portfolio-gap: 16px; grid-auto-columns: 86%; }
  .portfolio-card { padding: 1.1rem; }
  .portfolio-heading { align-items: center; }
  .portfolio-heading .company-eyebrow { font-size: .875rem; }
  .portfolio-controls { gap: .4rem; }
  .portfolio-controls button { width: 42px; height: 42px; }
  .product-identity h3 { font-size: 1.35rem; }
  .product-identity { min-height: 72px; }
  .portfolio-art { height: 155px; }
}
@media (prefers-reduced-motion: reduce) { .portfolio-track { scroll-behavior: auto !important; } }

/* Share content rows across an arbitrary number of cards, including longer future names. */
@supports (grid-template-rows: subgrid) {
  .portfolio-track { grid-template-rows: repeat(6, auto); }
  .portfolio-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 1rem; }
  .portfolio-description { align-self: start; }
}
/* Let native keyboard focus reveal a CTA fully, even when JavaScript is disabled. */
.portfolio-track:focus-within:not(:focus) { scroll-snap-type: none; }
