/* pages.css — see docs/PLAN.md for the owner. Tokens only: var(--…) from styles.css, no new colours or fonts. */

/* Start: featured case cards (.scase). The case image fills the 4:3 box from site.css; the tint shows while it loads. */
.scase__img{background:var(--surface-tint)}
.scase__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* The service pill already holds the top-left corner and its longest label ("Skräddarsydda system & integrationer")
   reaches past the middle of a phone-width card, so the demo tag sits bottom-right here instead of top-right. */
.scase__img .demotag{top:auto;bottom:14px;right:14px}

/* Om oss: the founder bio paragraph sits above the dl.bio rows. */
.founder__txt .bio{margin-top:18px}

/* Om oss: descriptive title under the mono role line (from the old site's team cards). */
.founder__txt .role{margin-bottom:6px}
.founder__txt p.founder__sub{font-size:15px;color:var(--text-faint);margin:0 0 14px}

/* Om oss: founders as full-width cards. Collapsed: photo + name, role and a short intro.
   "Visa bakgrund" (native <details>, works without JS) opens the résumé rows in two columns. */
.founders{grid-template-columns:minmax(0,1fr)}
.founder--cv{grid-template-columns:200px minmax(0,1fr)}
.founder--cv>img{align-self:start;width:100%;height:auto;min-height:0;aspect-ratio:4/5}
.founder--cv .founder__txt{padding:32px 40px 30px}
.founder--cv .founder__intro>p:last-child{margin-top:4px;max-width:64ch}
.founder__more{margin-top:20px}
.founder__more>summary{display:inline-flex;align-items:center;gap:10px;list-style:none;cursor:pointer;font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--forest);padding:6px 0}
.founder__more>summary::-webkit-details-marker{display:none}
.founder__more>summary::before{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid var(--border-strong);border-radius:var(--radius-pill);font-size:14px;line-height:1;letter-spacing:0;transition:transform var(--duration-base) var(--ease-standard)}
.founder__more[open]>summary::before{content:"\2212"}
.founder__more>summary:hover{color:var(--forest-deep)}
.founder__more>summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:4px;border-radius:4px}
.founder__more-close,.founder__more[open] .founder__more-open{display:none}
.founder__more[open] .founder__more-close{display:inline}
.founder__cv{margin-top:18px;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;align-content:start}
.founder__cv .bio__row{align-content:start}
.founder__cv dd{font-size:15px;color:var(--text-body)}
.founder__more[open] .founder__cv{animation:founder-cv-in var(--duration-base) var(--ease-standard)}
@keyframes founder-cv-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.founder__more[open] .founder__cv{animation:none}.founder__more>summary::before{transition:none}}
@media (max-width:1000px){
  .founder--cv{grid-template-columns:minmax(0,1fr)}
  .founder--cv>img{aspect-ratio:4/3}
  .founder--cv .founder__txt{padding:26px 24px 24px}
  .founder__cv{grid-template-columns:minmax(0,1fr)}
}
