.team-main {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.team-main .eyebrow {
    letter-spacing: 0;
}

.team-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
    align-items: end;
    gap: 2rem;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--line-strong);
}

.team-page-header h1 {
    margin: 0.8rem 0 0;
    max-width: 850px;
    font-size: 6.5rem;
    line-height: 0.92;
    letter-spacing: 0;
}

.team-page-header h1 span {
    color: var(--muted);
}

.team-page-header > p {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid #b7ef55;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.team-composer-band,
.team-archive-band {
    padding: 2.5rem 0;
}

.team-composer-band {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
    gap: 2rem;
    border-bottom: 1px solid var(--line);
}

.team-section-label span,
.team-archive-heading > span,
.team-story-expertise {
    color: #b7ef55;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.team-section-label h2,
.team-archive-heading h2 {
    margin: 0.55rem 0 0;
    letter-spacing: 0;
}

.team-editor {
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: 1.35rem;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(14, 14, 14, 0.9);
}

.team-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.team-editor textarea {
    width: 100%;
    min-height: 7rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    line-height: 1.6;
    outline: none;
    resize: vertical;
}

.team-editor textarea:focus {
    border-color: rgba(183, 239, 85, 0.55);
    box-shadow: 0 0 0 4px rgba(183, 239, 85, 0.07);
}

.team-editor .team-biography-input {
    min-height: 18rem;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.92rem;
}

.team-archive-heading {
    display: grid;
    grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.team-archive-heading h2 {
    font-size: 3.5rem;
}

.team-entry-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-load-more {
    display: block;
    margin: 1.25rem auto 0;
}

.team-load-more[hidden] {
    display: none;
}

.team-entry {
    display: grid;
    grid-template-columns: 84px minmax(250px, 0.75fr) minmax(0, 1fr);
    min-height: 310px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(12, 12, 12, 0.92);
}

.team-entry-index {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.35rem;
    border-right: 1px solid var(--line);
    color: var(--dim);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
}

.team-entry-media {
    position: relative;
    display: block;
    min-height: 310px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: #101010;
}

.team-entry-media img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.team-entry:hover .team-entry-media img {
    transform: scale(1.025);
}

.team-entry-placeholder {
    height: 100%;
    min-height: 310px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, transparent 47%, rgba(183, 239, 85, 0.12) 48%, rgba(183, 239, 85, 0.12) 52%, transparent 53%),
        #0d0d0d;
    background-size: 48px 48px;
}

.team-entry-placeholder img {
    width: min(42%, 130px);
    height: auto;
    min-height: 0;
    object-fit: contain;
    filter: grayscale(1);
}

.team-picture-count {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    background: rgba(5, 5, 5, 0.82);
    color: var(--text);
    font-size: 0.76rem;
}

.team-entry-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    min-width: 0;
    padding: 1.5rem;
}

.team-entry-copy h2 {
    margin: 0.45rem 0 0;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.team-entry-expertise {
    margin: 0;
    color: #7de3ff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.team-entry-introduction {
    margin: 1rem 0 0;
    color: var(--muted);
    font-style: italic;
    line-height: 1.7;
}

.team-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(125, 227, 255, 0.28);
    border-radius: 4px;
    color: #c8f5ff;
    background: rgba(125, 227, 255, 0.06);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.team-tag.is-category {
    border-color: rgba(183, 239, 85, 0.34);
    color: #dcff9f;
    background: rgba(183, 239, 85, 0.07);
}

.team-entry-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.team-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    color: var(--dim);
    font-size: 0.8rem;
}

.team-entry-meta a,
.team-story-byline a,
.team-linked-profile {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.team-read-more {
    flex: 0 0 auto;
    min-height: 2.8rem;
    padding: 0.78rem 1rem;
    border: 1px solid #b7ef55;
    border-radius: 4px;
    color: #080808;
    background: #b7ef55;
    font-weight: 800;
}

.team-read-more:hover,
.team-read-more:focus-visible {
    background: #d1ff7e;
}

.team-story-main {
    max-width: 1050px;
}

.team-story {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-story-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line-strong);
}

.team-back-link {
    display: inline-flex;
    margin-bottom: 2.25rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.team-story-header h1 {
    margin: 0.7rem 0 0;
    max-width: 920px;
    font-size: 7rem;
    line-height: 0.9;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.team-story-introduction {
    margin: 1.5rem 0 0;
    max-width: 850px;
    color: #bdbdbd;
    font-size: 1.5rem;
    line-height: 1.7;
    font-style: italic;
}

.team-story-header .team-tag-row {
    margin-top: 1.5rem;
}

.team-story-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    margin-top: 1.35rem;
    color: var(--dim);
    font-size: 0.88rem;
}

.team-linked-profile {
    display: inline-flex;
    margin-top: 1rem;
}

.team-story-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 0.65rem;
}

.team-story-picture {
    grid-column: span 6;
    grid-row: span 2;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    overflow: hidden;
    background: #0b0b0b;
    cursor: zoom-in;
}

.team-story-picture:first-child:nth-last-child(odd) {
    grid-column: span 12;
    grid-row: span 3;
}

.team-story-picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.team-markdown {
    max-width: 820px;
    color: #dedede;
    font-size: 1.02rem;
    line-height: 1.85;
}

.team-markdown > :first-child {
    margin-top: 0;
}

.team-markdown h1,
.team-markdown h2,
.team-markdown h3 {
    margin: 2rem 0 0.8rem;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: 0;
}

.team-markdown h1 {
    font-size: 2.4rem;
}

.team-markdown h2 {
    font-size: 1.9rem;
}

.team-markdown h3 {
    font-size: 1.45rem;
}

.team-markdown blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 3px solid #b7ef55;
    color: var(--muted);
    font-style: italic;
}

.team-markdown code {
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.team-markdown pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #090909;
}

.team-markdown pre code {
    padding: 0;
    background: transparent;
}

.team-markdown a {
    color: #9eeaff;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.team-markdown img {
    max-width: 100%;
}

.team-owner-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.team-story-editor {
    margin-top: 0.5rem;
}

.team-remove-pictures {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .team-page-header,
    .team-composer-band,
    .team-archive-heading {
        grid-template-columns: 1fr;
    }

    .team-page-header > p {
        max-width: 620px;
    }

    .team-page-header h1 {
        font-size: 4.75rem;
    }

    .team-archive-heading h2 {
        font-size: 3rem;
    }

    .team-entry-copy h2 {
        font-size: 2.35rem;
    }

    .team-story-header h1 {
        font-size: 5.25rem;
    }

    .team-entry {
        grid-template-columns: 58px minmax(210px, 0.65fr) minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .team-main {
        width: min(100% - 1rem, 1200px);
        padding-top: 1rem;
    }

    .team-page-header {
        padding-top: 1rem;
    }

    .team-page-header h1,
    .team-story-header h1 {
        font-size: 3.25rem;
    }

    .team-archive-heading h2 {
        font-size: 2.35rem;
    }

    .team-entry-copy h2 {
        font-size: 2.1rem;
    }

    .team-story-introduction {
        font-size: 1.15rem;
    }

    .team-editor-grid {
        grid-template-columns: 1fr;
    }

    .team-entry {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .team-entry-index {
        grid-row: 1 / span 2;
    }

    .team-entry-media {
        min-height: 230px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .team-entry-media img,
    .team-entry-placeholder {
        min-height: 230px;
    }

    .team-entry-copy {
        grid-column: 2;
        padding: 1.15rem;
    }

    .team-entry-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .team-read-more {
        width: 100%;
        text-align: center;
    }

    .team-story-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .team-story-picture,
    .team-story-picture:first-child:nth-last-child(odd) {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 420px) {
    .team-entry {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .team-entry-index {
        font-size: 0.65rem;
    }

    .team-page-header h1,
    .team-story-header h1 {
        font-size: 2.65rem;
    }

    .team-entry-copy h2 {
        font-size: 1.75rem;
    }

    .team-editor {
        padding: 1rem;
    }
}
