.team-section, .about-hero, .about-profiles, .about-contact { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
.team-section { padding-block: 96px; background: #f0ede7; scroll-margin-top: 120px; }
.team-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.team-heading h2 { max-width: 700px; margin-bottom: 16px; }
.team-heading p:last-child { max-width: 650px; margin-bottom: 0; color: var(--on-surface-variant); }
.team-link { display: inline-flex; align-items: center; gap: 16px; color: var(--secondary); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.team-heading > .team-link { flex-shrink: 0; margin-bottom: 5px; }
.team-link:hover { color: var(--primary); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.team-card { display: flex; flex-direction: column; min-width: 0; }
.team-portrait { aspect-ratio: 4 / 3; overflow: hidden; background: #dedbd4; }
.team-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.team-portrait--dr-torma-gergely img { object-position: 50% 16%; }
.team-monogram { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #252b28; color: #eadcc1; }
.team-monogram span { font-family: Georgia, serif; font-size: clamp(4rem, 8vw, 7rem); font-weight: 400; line-height: 1; }
.team-monogram::after { content: ''; width: 48px; height: 1px; background: #bba579; }
.team-card-body { display: flex; flex-direction: column; flex: 1; padding-top: 28px; }
.team-role { color: var(--secondary); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.team-card .team-role { margin-bottom: 12px; }
.team-card h3 { margin-bottom: 18px; font-size: 2rem; }
.team-card-body > p:not(.team-role) { color: var(--on-surface-variant); }
.team-card .team-link { margin-top: auto; align-self: start; }
.about-page .site-header { position: sticky; }
.about-hero { padding-block: 72px 64px; background: #f0ede7; border-bottom: 1px solid var(--line); }
.about-breadcrumb { display: flex; gap: 12px; margin-bottom: 40px; color: var(--on-surface-variant); font-size: .88rem; }
.about-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.about-hero h1 { max-width: 1000px; font-size: clamp(2.8rem, 5.5vw, 5rem); }
.about-lead { max-width: 760px; font-size: 1.15rem; color: var(--on-surface-variant); }
.about-jump-links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; }
.about-profiles { padding-block: 16px 80px; }
.bio-profile { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 100px); align-items: center; padding-block: 72px; border-bottom: 1px solid var(--line); scroll-margin-top: 115px; }
.bio-profile:last-child { border-bottom: 0; padding-bottom: 0; }
.bio-profile .team-portrait { aspect-ratio: 4 / 5; }
.bio-profile .team-portrait--dr-torma-gergely img { object-position: 50% 15%; }
.bio-profile { position: relative; }
.bio-legacy-anchor { position: absolute; top: 0; scroll-margin-top: 115px; }
.team-website { display: inline-flex; align-items: center; align-self: start; gap: 10px; margin-top: 18px; color: var(--secondary); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.team-website:hover { color: var(--primary); }
.team-website:focus-visible { outline: 2px solid var(--secondary); outline-offset: 6px; }
.bio-profile .team-monogram span { font-size: clamp(6rem, 12vw, 10rem); }
.bio-copy h2 { margin-bottom: 28px; }
.bio-copy > p:not(.team-role) { font-size: 1.08rem; color: var(--on-surface-variant); }
.bio-focus { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .85rem; color: var(--secondary); }
.about-contact { padding-block: 64px; background: #252b28; color: white; }
.about-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.about-contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.about-contact p { max-width: 650px; margin-bottom: 0; color: #e0e0d9; }
.about-contact .btn { flex-shrink: 0; background: var(--secondary-fixed); color: var(--on-secondary-fixed); }
.team-link:focus-visible, .about-page a:focus-visible { outline: 2px solid var(--secondary); outline-offset: 6px; }
/* Leave room for the additional navigation item on laptop screens. */
@media (min-width: 861px) {
    .has-team-nav .header-inner { gap: 18px; }
    .has-team-nav .main-nav { gap: clamp(14px, 1.7vw, 26px); font-size: .94rem; }
    .has-team-nav .brand-logo { max-width: 240px; height: auto; }
    .has-team-nav .header-cta { padding-inline: 18px; white-space: nowrap; }
}
@media (min-width: 861px) and (max-width: 1150px) {
    .has-team-nav .header-cta { display: none; }
}
@media (max-width: 860px) {
    .has-team-nav .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .has-team-nav .nav-toggle:focus-visible + .nav-button { outline: 2px solid var(--secondary); outline-offset: 4px; }
    .team-grid { gap: 22px; }
    .team-heading, .about-contact-inner { align-items: flex-start; flex-direction: column; }
    .team-card h3 { font-size: 1.65rem; }
    .bio-profile { gap: 32px; }
}
@media (max-width: 640px) {
    .team-section { padding-block: 64px; scroll-margin-top: 90px; }
    .team-grid { grid-template-columns: 1fr; gap: 48px; }
    .team-heading { margin-bottom: 36px; gap: 24px; }
    .team-card h3 { font-size: 2rem; }
    .team-monogram span { font-size: 6rem; }
    .about-hero { padding-block: 40px; }
    .about-breadcrumb { margin-bottom: 28px; }
    .about-jump-links { flex-direction: column; align-items: start; }
    .bio-profile { grid-template-columns: 1fr; padding-block: 48px; scroll-margin-top: 90px; }
    .bio-legacy-anchor { scroll-margin-top: 90px; }
    .bio-profile .team-portrait { aspect-ratio: 4 / 3; }
    .bio-profile .team-monogram { aspect-ratio: 2 / 1; }
    .about-contact .btn { width: 100%; }
}
