/* People first, followed by the experience behind the product. */
/* Keep the shared navigation geometry, with a stable surface over portraits. */
@media (min-width: 641px) {
  body[data-jadey-page="about-us"] .site-header {
    --nav-ink: #202124;
    --nav-muted: #56595e;
    background: var(--bg-canvas);
    mix-blend-mode: normal;
    isolation: isolate;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body[data-jadey-page="about-us"] .site-header-glass { display: none; }
  body[data-jadey-page="about-us"] .site-header .brand::before { opacity: 0; }
  body[data-jadey-page="about-us"] .site-header .brand img { opacity: 1; }
  body[data-jadey-page="about-us"] .site-header :is(a, button):focus-visible { outline-color: var(--nav-ink); }
}
.about-shell { width: min(1320px, calc(100% - var(--page-padding) * 2)); margin-inline: auto; }
.about-hero--title .about-shell,
.about-section--team .about-shell { max-width: 1120px; }
.about-heading .eyebrow {
  margin: 0 0 24px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.about-heading :is(h1, h2, h3, h4) {
  margin: 0;
  color: var(--fg-default);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.about-heading h1 { max-width: none; font-size: clamp(40px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -0.045em; }
.about-heading h1 strong { color: var(--orange-500); font-weight: inherit; }
.about-heading h2 { max-width: 27ch; font-size: clamp(36px, 3.8vw, 56px); }
.about-heading h3 { max-width: 24ch; font-size: clamp(28px, 2.6vw, 38px); }
.about-copy { min-width: 0; color: var(--fg-muted); font-size: 18px; line-height: 1.7; text-align: left; }
.about-copy p { margin: 0 0 1.2em; }
.about-copy > :last-child { margin-bottom: 0; }
.about-copy a { text-underline-offset: 0.2em; }
.about-hero { scroll-margin-top: var(--jd-page-header-height, 88px); padding-block: clamp(56px, 6vw, 88px) 56px; }
.about-hero__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.about-hero__copy { font-size: clamp(18px, 1.4vw, 21px); }
.about-hero--title { padding-bottom: clamp(48px, 5vw, 72px); }
.about-hero--title .about-hero__layout { grid-template-columns: minmax(0, 1fr); }
.about-section { position: relative; padding-block: clamp(64px, 7vw, 104px); }
.about-section, .about-article, .about-anchor, .about-section .timeline-item { scroll-margin-top: 128px; }
.about-section:focus, .about-article:focus { outline: none; }
.about-anchor { position: absolute; top: 0; left: 0; }
.about-section > .about-shell > .about-heading { margin-bottom: 48px; }
.about-founder__layout { display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.about-founder__portrait { width: min(100%, 360px); margin: 0; }
.about-founder__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-founder__portrait figcaption { margin-top: 20px; color: var(--fg-default); font-size: 16px; line-height: 1.5; }
.about-founder__layout .about-copy { max-width: 65ch; }
/* Editorial portrait gallery: one format, one baseline, no oversized avatar tiles. */
.about-section--team { padding-top: 0; }
.about-section--team > .about-shell > .about-heading { margin-bottom: 32px; }
.about-team__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.about-team__intro { max-width: 65ch; margin-bottom: 40px; }
.about-team__intro img { display: block; width: 100%; height: auto; margin-block: 32px; }
.about-team-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 64px 32px;
}
.about-person { min-width: 0; scroll-margin-top: 128px; }
.about-person__portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--ink-50);
  background-image: url("../img/about-us/team-background-light.webp");
  background-size: cover;
  background-position: center 32%;
}
[data-theme="dark"] .about-person__portrait {
  background-color: var(--ink-600);
  background-image: url("../img/about-us/team-background-dark.webp");
}
.about-person__portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(var(--portrait-scale, 1));
  transform-origin: center bottom;
}
/* Preserve the complete source width, including Max and Tom's arms. */
.about-person:is(#sonja, #tanja) { --portrait-scale: 0.94; }
/* Enlarge the complete frame, never the cutout inside it. Source-edge crops
   stay flush with the frame and the visible image area stays identical. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .about-person__portrait {
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 380ms ease;
  }
  .about-person__portrait:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 12px 24px rgb(20 24 30 / 0.13);
  }
}
.about-person__portrait:has(.about-person__initials)::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto;
  height: 1px;
  background: var(--ink-200);
}
.about-person__initials {
  padding: 24px;
  color: var(--ink-400);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.about-person h3 { margin: 20px 0 6px; color: var(--fg-default); font-family: var(--font-display); font-size: clamp(18px, 1.5vw, 21px); font-weight: 400; line-height: 1.15; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.about-person__role { max-width: 28ch; margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.5; text-wrap: balance; }
.about-person:has(.about-person__initials) .about-person__role { color: var(--fg-subtle); }
.about-person__bio { max-width: 34ch; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-default); font-size: 15px; line-height: 1.65; }
.about-person__bio:empty { display: none; }
.about-person__bio a { color: var(--fg-default); }
.about-person__bio a:hover { color: var(--orange-500); }
.about-person__bio a:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 4px; }
.about-section--our-story { border-top: 1px solid var(--border-default); background: var(--ink-25); }
.about-section--our-story > .about-shell > .about-heading { margin-bottom: 24px; }
.about-story__intro { max-width: 72ch; }
.about-origins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; margin-top: 56px; }
.about-article { min-width: 0; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.about-article .about-heading { margin-bottom: 20px; }
.about-article .about-heading .eyebrow { margin-bottom: 16px; }
.about-origins .about-heading h3 { max-width: 28ch; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.14; }
.about-origins .about-copy { font-size: 16px; line-height: 1.65; }
.about-experience { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border-strong); scroll-margin-top: 128px; }
.about-experience > .about-heading h3 { max-width: none; font-size: clamp(28px, 3vw, 38px); }
.about-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 64px; margin-top: 32px; }
.about-projects .about-heading h4 { max-width: 32ch; font-size: 24px; line-height: 1.2; }
.about-projects .about-copy { font-size: 16px; line-height: 1.65; }
/* Retain the article variant used by older Markdown previews. */
.about-article--closing { margin-top: 64px; }
.about-article--closing .about-copy { max-width: 90ch; }

@media (max-width: 1000px) {
  .about-hero__layout, .about-founder__layout { gap: 40px; }
  .about-founder__layout { grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1fr); }
  .about-origins, .about-projects { gap: 36px; }
  .about-origins .about-heading h3 { min-height: 0; max-width: none; }
  .about-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .about-hero--title .about-shell,
  .about-section--team .about-shell { max-width: 720px; }
}
@media (max-width: 760px) {
  .about-hero { padding-block: 48px; }
  .about-hero__layout, .about-founder__layout { grid-template-columns: 1fr; gap: 32px; }
  .about-heading h1 { max-width: 16ch; font-size: clamp(38px, 7vw, 52px); }
  .about-hero--title { padding-bottom: 40px; }
  .about-section { padding-block: 48px 64px; }
  .about-section > .about-shell > .about-heading { margin-bottom: 32px; }
  .about-copy { font-size: 17px; }
  .about-founder__portrait { width: min(100%, 320px); }
  .about-founder__layout .about-copy { max-width: none; }
  .about-section--team { padding-top: 0; }
  .about-section--team > .about-shell > .about-heading { margin: 0; }
  .about-team__intro { margin: 0; font-size: 17px; }
  .about-origins, .about-projects { grid-template-columns: 1fr; gap: 32px; }
  .about-origins { margin-top: 36px; }
  .about-experience { margin-top: 48px; padding-top: 36px; }
}
@media (max-width: 520px) {
  .about-team-grid { gap: 36px 20px; }
  .about-person__initials { padding: 16px; font-size: 32px; }
  .about-person__portrait:has(.about-person__initials)::before { inset: 16px 16px auto; }
  .about-person h3 { margin-top: 14px; font-size: 18px; line-height: 1.2; overflow-wrap: normal; }
  .about-person__role { font-size: 13px; text-wrap: pretty; }
  .about-person__bio { font-size: 14px; }
}
@media (max-width: 350px) {
  .about-team-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-person__role { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
