/* Our Team — Figma "Our Team — /about/team/" (858:52245).
   This frame's text layers are NOT cap-trimmed (their boxes are full line-height),
   so inside .vd-sec trimming is switched off and Figma gaps/paddings apply 1:1. */

.vd-team .vd-sec :where(h1, h2, h3, h4, h5, h6, p, .vd-t) { text-box: none; }
.vd-team .vd-sec { position: relative; }

/* ---- shared bits ---- */
.vd-tm-btn { min-height: 51px; padding: 0 26px; border-width: 1px; font-size: 14px; letter-spacing: 1.12px; line-height: normal; }
.vd-tm-btn.vd-btn-primary { color: var(--vd-color-bg); }
.vd-tm-btn.vd-btn-secondary { color: var(--vd-color-text); }
.vd-tm-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.vd-tm-crumbs { display: flex; gap: 10px; font: 400 13px/1.6 var(--vd-font-body); color: var(--vd-color-text-muted); white-space: nowrap; }
.vd-tm-crumbs > span[aria-hidden] { color: var(--vd-color-text-subtle); }
.vd-tm-crumbs [aria-current] { font-weight: 600; color: var(--vd-color-text); }
.vd-tm-crumbs a:hover { color: var(--vd-color-brand); }

.vd-tm-eyebrow { display: flex; align-items: center; gap: 10px; font: 600 13px/1.6 var(--vd-font-body); letter-spacing: 1.82px; text-transform: uppercase; color: var(--vd-color-brand); }
.vd-tm-eyebrow::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--vd-color-brand); }

.vd-tm-h2 { font: 700 clamp(34px, 3.472vw, 60px)/1.12 var(--vd-font-body); }
.vd-tm-h2 em, .vd-tm-people-title em, .vd-tm-hero-title em, .vd-tm-cta-title em { font-size: 1.1em; color: var(--vd-color-brand); }

/* ---- Hero (858:52248) ---- */
.vd-tm-hero { padding: 72px 0 120px; }
.vd-tm-hero-in { display: flex; align-items: center; gap: 64px; }
.vd-tm-hero-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.vd-tm-hero-title { font: 700 clamp(38px, 4.167vw, 72px)/1.06 var(--vd-font-body); }
.vd-tm-hero-title em { font-size: 1.0972em; }
.vd-tm-hero-sub { font: 400 20px/1.6 var(--vd-font-body); color: var(--vd-color-text-soft); }
.vd-tm-wall { --ws: 1; flex: none; display: flex; align-items: flex-start; gap: calc(14px * var(--ws)); }
.vd-tm-wall-col { display: flex; flex-direction: column; gap: calc(14px * var(--ws)); }
.vd-tm-wall-col:not(:nth-child(2)) { padding-top: calc(56px * var(--ws)); }
.vd-tm-wall img { width: calc(200px * var(--ws)); height: calc(250px * var(--ws)); border-radius: calc(18px * var(--ws)); object-fit: cover; }

/* ---- How accounts are staffed (858:52277) ---- */
.vd-tm-staff { padding: 140px 0; background: var(--vd-color-panel); }
.vd-tm-staff-in { display: flex; flex-direction: column; gap: 64px; }
.vd-tm-staff-head { display: flex; align-items: flex-start; gap: 80px; }
.vd-tm-staff-title { flex: none; width: 620px; }
.vd-tm-staff-intro { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vd-tm-staff-intro p { font: 400 20px/1.55 var(--vd-font-body); color: var(--vd-color-text-soft); }
.vd-tm-staff-intro .vd-tm-staff-lead { font: 600 18px/1.6 var(--vd-font-body); color: var(--vd-color-brand); }

/* Org diagram ("V. network motif" 858:52283): 1600x560 at full width. */
.vd-tm-org { --nw: min(700px, 50%); position: relative; height: 560px; }
.vd-tm-node { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid rgb(var(--vd-rgb-brand) / .25); border-radius: 20px; background: linear-gradient(168.38deg, var(--vd-color-surface-glow) 0%, var(--vd-color-surface) 71.429%); }
.vd-tm-node h3 { font: 700 22px/1.35 var(--vd-font-body); }
.vd-tm-node p { font: 400 15px/1.5 var(--vd-font-body); color: var(--vd-color-text-muted); }
.vd-tm-node.is-lead { position: absolute; left: 0; top: 190px; width: 380px; border-color: rgb(var(--vd-rgb-brand) / .9); background: rgb(var(--vd-rgb-brand) / .1); }
.vd-tm-node.is-lead h3 { font-size: 24px; color: var(--vd-color-brand); }
.vd-tm-vmark { position: absolute; left: 430px; top: 230px; padding: 14px 18px; border: 1px solid var(--vd-color-brand); border-radius: 14px; background: var(--vd-color-bg); font: 800 40px/1 var(--vd-font-body); color: var(--vd-color-brand); }
.vd-tm-conn { position: absolute; left: 520px; max-width: none; width: calc(100% - 520px - var(--nw)); }
.vd-tm-conn.is-short { left: 380px; top: 269.25px; width: 50px; height: 1.5px; }
.vd-tm-conn.is-up { top: 71.25px; height: 199.5px; }
.vd-tm-conn.is-mid { top: 269.25px; height: 3.5px; }
.vd-tm-conn.is-down { top: 269.25px; height: 192px; }
.vd-tm-org-specs { position: absolute; right: 0; top: 0; width: var(--nw); }
.vd-tm-org-specs .vd-tm-node { position: absolute; left: 0; right: 0; }
.vd-tm-org-specs .vd-tm-node:nth-child(2) { top: 200px; }
.vd-tm-org-specs .vd-tm-node:nth-child(3) { top: 400px; background: linear-gradient(170.19deg, var(--vd-color-surface-glow) 0%, var(--vd-color-surface) 71.429%); }

/* ---- In the room (858:52302) ---- */
.vd-tm-room { padding: 120px 0 140px; }
.vd-tm-room-in { display: flex; align-items: flex-start; gap: 80px; }
.vd-tm-room-title { flex: none; width: 520px; font: italic 400 clamp(32px, 2.546vw, 44px)/1.15 var(--vd-font-accent); }
.vd-tm-rows { flex: 1 1 0; min-width: 0; }
.vd-tm-rows li { display: flex; align-items: flex-start; gap: 28px; padding: 28px 0; border-top: 1px solid var(--vd-color-border); }
.vd-tm-rows li:last-child { border-bottom: 1px solid var(--vd-color-border); }
.vd-tm-rows-n { flex: none; width: 56px; font: italic 400 34px/1 var(--vd-font-accent); color: var(--vd-color-brand); }
.vd-tm-rows p { flex: 1 1 0; font: 400 19px/1.5 var(--vd-font-body); }

/* ---- The people (858:52314) ---- */
.vd-tm-people { padding: 140px 0 160px; }
.vd-tm-people-in { display: flex; flex-direction: column; gap: 40px; }
.vd-tm-people-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.vd-tm-people-title { font: 700 clamp(42px, 4.167vw, 72px)/1.12 var(--vd-font-body); }
.vd-tm-people-title em { font-size: 1.0972em; }
.vd-tm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.vd-tm-chip { padding: 11px 22px; border: 1px solid rgb(var(--vd-rgb-brand) / .55); border-radius: 999px; font: 600 14px/normal var(--vd-font-body); color: var(--vd-color-text-mint); white-space: nowrap; transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out; }
.vd-tm-chip:hover { border-color: var(--vd-color-brand); background: rgb(var(--vd-rgb-brand) / .12); color: var(--vd-color-brand); } /* Figma Chip, State=Hover */
.vd-tm-chip.is-active { border-color: var(--vd-color-brand); background: var(--vd-color-brand); color: var(--vd-color-bg); }
.vd-tm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.vd-tm-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; aspect-ratio: 382 / 500; padding: 24px; overflow: hidden; border-radius: 24px; background: var(--vd-color-surface); }
.vd-tm-card[hidden] { display: none; }
.vd-tm-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vd-tm-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--vd-rgb-bg) / 0) 35%, rgb(var(--vd-rgb-bg) / .92) 100%); }
.vd-tm-card::after { content: ''; position: absolute; inset: 0; border: 1px solid transparent; border-radius: inherit; transition: border-color .3s; pointer-events: none; }
/* Hover (Figma Team Card, State=Hover; smart animate .25s): green border, deeper shade, solid tag,
   and the text slides up to show the bio. */
.vd-tm-card::before { transition: opacity .25s ease-out; }
.vd-tm-card::after { border-width: 1.5px; transition: border-color .25s ease-out; }
.vd-tm-card-more { display: grid; grid-template-rows: 0fr; align-self: stretch; opacity: 0; transition: grid-template-rows .25s ease-out, opacity .25s ease-out; }
.vd-tm-card-more > div { min-height: 0; overflow: hidden; }
.vd-tm-card-bio { padding-top: 6px; font: 400 14px/1.5 var(--vd-font-body); color: var(--vd-color-text-soft); }
.vd-tm-tag { transition: background-color .25s ease-out, color .25s ease-out; }
@media (hover: hover) {
	.vd-tm-card:hover::before { background: linear-gradient(180deg, rgb(var(--vd-rgb-bg) / .2) 0%, rgb(var(--vd-rgb-bg) / .85) 60%, rgb(var(--vd-rgb-bg) / .97) 100%); }
	.vd-tm-card:hover::after { border-color: rgb(var(--vd-rgb-brand) / .7); }
	.vd-tm-card:hover .vd-tm-tag { background: var(--vd-color-brand); color: var(--vd-color-bg); }
	.vd-tm-card:hover .vd-tm-card-more { grid-template-rows: 1fr; opacity: 1; }
}
.vd-tm-tag { margin-bottom: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(var(--vd-rgb-brand) / .16); font: 600 11px/1.6 var(--vd-font-body); letter-spacing: 1.1px; text-transform: uppercase; color: var(--vd-color-brand); white-space: nowrap; }
.vd-tm-card-name { font: 700 26px/1.35 var(--vd-font-body); }
.vd-tm-card-role { font: 400 15px/1.6 var(--vd-font-body); color: var(--vd-color-brand); }
.vd-tm-empty { font: 400 18px/1.6 var(--vd-font-body); color: var(--vd-color-text-muted); }
@media (prefers-reduced-motion: no-preference) {
	.vd-tm-card.is-shown { animation: vd-tm-in .45s ease both; }
	@keyframes vd-tm-in { from { opacity: 0; transform: translateY(12px); } }
}

/* ---- Senior on the work (858:52341) ---- */
.vd-tm-senior { padding: 140px 0; background: var(--vd-color-surface); }
.vd-tm-senior-in { display: flex; flex-direction: column; gap: 56px; }
.vd-tm-senior-head { display: flex; align-items: flex-end; gap: 80px; }
.vd-tm-senior-title { flex: none; width: 900px; }
.vd-tm-senior-note { flex: 1 1 0; min-width: 0; font: italic 400 clamp(24px, 1.736vw, 30px)/1.35 var(--vd-font-accent); color: var(--vd-color-brand); }
.vd-tm-commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vd-tm-commit li { display: flex; flex-direction: column; gap: 28px; padding: 40px; border: 1px solid rgb(var(--vd-rgb-brand) / .2); border-radius: 24px; background: linear-gradient(152.88deg, var(--vd-color-surface-glow) 0%, var(--vd-color-surface) 71.429%); }
.vd-tm-commit span { font: italic 400 72px/.9 var(--vd-font-accent); color: var(--vd-color-brand); }
.vd-tm-commit p { font: 400 20px/1.5 var(--vd-font-body); }
.vd-tm-commit b { font-weight: 400; color: var(--vd-color-brand); }

/* ---- How we work together (858:52355) ---- */
.vd-tm-together { padding: 160px 0; }
.vd-tm-together-in { display: flex; align-items: center; gap: 80px; }
.vd-tm-together-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.vd-tm-together-copy p { font: 400 19px/1.6 var(--vd-font-body); color: var(--vd-color-text-soft); }
.vd-tm-photos { flex: none; display: flex; gap: 16px; }
.vd-tm-photos img { width: 360px; height: 520px; border-radius: 24px; object-fit: cover; }

/* ---- Join the team strip (858:52363) ---- */
.vd-tm-join-in { display: flex; align-items: center; gap: 48px; padding: 48px 56px; border: 1px solid rgb(var(--vd-rgb-brand) / .5); border-radius: 28px; background: rgb(var(--vd-rgb-brand) / .08); }
.vd-tm-join-in > img { flex: none; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.vd-tm-join-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vd-tm-join-copy h2 { font: 700 36px/1.35 var(--vd-font-body); }
.vd-tm-join-copy p { font: 400 18px/1.6 var(--vd-font-body); color: var(--vd-color-text-soft); }
.vd-tm-join-in .vd-btn { flex: none; }

/* ---- Final CTA (858:52370) ---- */
.vd-tm-cta { padding: 180px 0; background: var(--vd-color-on-brand) url(../../img/about/cta-bg.webp) center / cover no-repeat; text-align: center; }
.vd-tm-cta-in { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.vd-tm-cta-title { max-width: 1600px; font: 700 clamp(38px, 3.704vw, 64px)/1.04 var(--vd-font-body); }
.vd-tm-cta-sub { max-width: 820px; font: 400 20px/1.6 var(--vd-font-body); color: var(--vd-color-text-soft); }
.vd-tm-cta .vd-tm-btns { justify-content: center; }
.vd-tm-email { padding: 14px 22px; border: 1px solid rgb(var(--vd-rgb-brand) / .6); border-radius: 999px; font: 600 13px/1.6 var(--vd-font-body); white-space: nowrap; transition: background-color .2s; }
.vd-tm-email:hover { background: rgb(var(--vd-rgb-brand) / .1); }
.vd-tm-cta-note { font: italic 400 24px/1.35 var(--vd-font-accent); color: var(--vd-color-brand); }
.vd-tm-cta-small { max-width: 760px; padding-top: 40px; font: 400 14px/1.6 var(--vd-font-body); color: var(--vd-color-text-subtle); }

/* ---- USP strip: 286px tall in this frame (homepage 201px) ---- */
.vd-team .vd-usps-in { height: 286px; padding-top: 0; }

/* ==== responsive ==== */
@media (max-width: 1500px) {
	.vd-tm-wall { --ws: .86; }
	.vd-tm-staff-title { width: 42%; }
	.vd-tm-room-title { width: 36%; }
	.vd-tm-senior-title { width: 58%; }
	.vd-tm-photos img { width: 300px; height: 440px; }
}
@media (max-width: 1279px) {
	.vd-tm-hero-in, .vd-tm-staff-head, .vd-tm-room-in, .vd-tm-senior-head, .vd-tm-together-in { gap: 48px; }
	.vd-tm-wall { --ws: .7; }
	/* Org diagram: stack — lead node, V. mark, then the three specialist nodes on a dashed rail. */
	.vd-tm-org { height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
	.vd-tm-node.is-lead, .vd-tm-vmark { position: static; }
	.vd-tm-node.is-lead { width: min(100%, 480px); }
	.vd-tm-vmark { margin-left: 28px; }
	.vd-tm-conn { display: none; }
	.vd-tm-org-specs { position: static; width: auto; align-self: stretch; display: flex; flex-direction: column; gap: 16px; margin-left: 56px; padding-left: 32px; border-left: 1.5px dashed rgb(var(--vd-rgb-brand) / .5); }
	.vd-tm-org-specs .vd-tm-node { position: static; }
	.vd-tm-grid { grid-template-columns: repeat(3, 1fr); }
	.vd-tm-people-head { flex-direction: column; align-items: flex-start; }
	.vd-tm-commit { grid-template-columns: 1fr; }
	.vd-tm-commit li { flex-direction: row; align-items: baseline; gap: 28px; padding: 32px; }
	.vd-tm-commit span { flex: none; width: 72px; font-size: 56px; }
	.vd-tm-photos img { width: 240px; height: 360px; }
}
@media (max-width: 1023px) {
	.vd-tm-hero { padding: 48px 0 96px; }
	.vd-tm-hero-in { flex-direction: column; align-items: stretch; }
	.vd-tm-hero-sub { font-size: 18px; }
	.vd-tm-wall { --ws: .8; align-self: center; }
	.vd-tm-staff-head, .vd-tm-room-in, .vd-tm-senior-head, .vd-tm-together-in { flex-direction: column; align-items: stretch; gap: 32px; }
	.vd-tm-staff-title, .vd-tm-room-title, .vd-tm-senior-title { width: auto; }
	.vd-tm-staff, .vd-tm-senior { padding: 96px 0; }
	.vd-tm-staff-in { gap: 48px; }
	.vd-tm-staff-intro p { font-size: 18px; }
	.vd-tm-room { padding: 88px 0 96px; }
	.vd-tm-rows p { font-size: 17px; }
	.vd-tm-people { padding: 96px 0 104px; }
	.vd-tm-people-head { flex-direction: column; align-items: flex-start; }
	.vd-tm-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.vd-tm-together { padding: 96px 0; }
	.vd-tm-photos { gap: 12px; }
	.vd-tm-photos img { flex: 1 1 0; min-width: 0; width: auto; height: auto; aspect-ratio: 360 / 520; }
	.vd-tm-join-in { flex-wrap: wrap; gap: 24px 32px; padding: 36px; }
	.vd-tm-join-in > img { width: 120px; height: 120px; }
	.vd-tm-join-copy { flex-basis: 320px; }
	.vd-tm-join-copy h2 { font-size: 30px; }
	.vd-tm-cta { padding: 120px 0; }
	.vd-tm-cta-sub { font-size: 18px; }
	.vd-team .vd-usps-in { height: auto; padding-block: 56px; }
}
@media (max-width: 640px) {
	.vd-tm-btns .vd-btn { flex: 1 1 100%; }
	.vd-tm-wall { --ws: .55; }
	.vd-tm-staff, .vd-tm-senior, .vd-tm-together, .vd-tm-people { padding: 72px 0; }
	.vd-tm-room { padding: 64px 0 72px; }
	.vd-tm-node { padding: 22px; }
	.vd-tm-node h3 { font-size: 20px; }
	.vd-tm-org-specs { margin-left: 20px; padding-left: 20px; }
	.vd-tm-vmark { margin-left: 0; }
	.vd-tm-rows li { gap: 16px; padding: 22px 0; }
	.vd-tm-rows-n { width: 40px; font-size: 28px; }
	.vd-tm-rows p { font-size: 16px; }
	.vd-tm-chip { padding: 9px 16px; font-size: 13px; }
	.vd-tm-grid { gap: 12px; }
	.vd-tm-card { padding: 14px; gap: 2px; border-radius: 16px; }
	.vd-tm-tag { margin-bottom: 6px; padding: 5px 10px; font-size: 12px; letter-spacing: .4px; } /* Markup #92 */
	.vd-tm-card-name { font-size: 17px; }
	.vd-tm-card-role { font-size: 12px; line-height: 1.4; }
	.vd-tm-commit li { flex-direction: column; gap: 16px; padding: 28px 24px; }
	.vd-tm-commit span { font-size: 52px; }
	.vd-tm-commit p { font-size: 18px; }
	.vd-tm-together-copy p { font-size: 17px; }
	.vd-tm-join-in { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
	.vd-tm-join-copy { flex-basis: auto; }
	.vd-tm-join-copy h2 { font-size: 26px; }
	.vd-tm-join-copy p { font-size: 16px; }
	.vd-tm-cta { padding: 88px 0; }
	.vd-tm-cta-note { font-size: 21px; }
	.vd-tm-email { flex: 1 1 100%; }
}
