/* Agency page */

/* Shared section header: label in a 400 px column, title and text beside it */
.od-ag-head { display: grid; grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
.od-ag-head > .od-label { margin-top: 22px; white-space: nowrap; }
.od-ag-head__body { display: flex; flex-direction: column; gap: 12px; }
.od-ag-head__title { font-size: var(--od-fs-h3); line-height: 1.3; font-weight: 500; color: var(--od-grey-900); text-wrap: balance; }
.od-ag-head__body > .od-b2 { max-width: 800px; }
/* Section rhythm of this page: 120 px above and below on desktop, 100 px on tablet and mobile; 64 / 56 / 48 between a header and its content */
.od-page-agency .od-section[class*="od-ag-"] { padding-block: clamp(100px, 3.17vw + 74.3px, 120px); }
.od-page-agency [class*="od-ag-"] > .od-stack { gap: clamp(48px, 1.52vw + 42px, 64px); }

/* Hero */
.od-ag-hero { padding-top: calc(var(--od-header-h) + clamp(96px, 3.05vw + 84px, 128px)); padding-bottom: clamp(60px, 3.8vw + 45px, 100px); }
.od-ag-hero__inner { position: relative; }
.od-ag-hero__title { max-width: 1100px; font-size: var(--od-fs-d2); line-height: 1; font-weight: 600; letter-spacing: var(--od-track-display); }
.od-ag-hero__last { white-space: nowrap; }
.od-ag-hero__rule { display: inline-block; width: clamp(40px, 24vw - 10px, 336px); height: clamp(3px, 0.42vw, 6px); margin-left: 0.14em; background: var(--od-brand); vertical-align: 0.24em; }
.od-ag-hero__corner { position: absolute; top: 0; right: var(--od-inset); line-height: 1; }

/* Intro: label, who we are, statement */
.od-ag-intro { padding-bottom: clamp(100px, 3.17vw + 74.3px, 120px); }
.od-ag-intro__grid { display: grid; grid-template-columns: 250px minmax(0, 450fr) minmax(0, 100fr) minmax(0, 400fr); align-items: start; }
.od-ag-intro__aside { grid-column: 4; }
.od-ag-intro__grid > .od-label { margin-top: 22px; white-space: nowrap; }
.od-ag-intro__main { display: flex; flex-direction: column; gap: 12px; }
.od-ag-intro__title { font-size: var(--od-fs-h3); line-height: 1.3; font-weight: 500; color: var(--od-grey-900); text-wrap: balance; }
@media (min-width: 1025px) { .od-ag-intro__title { text-wrap: nowrap; } }
.od-ag-intro__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.od-ag-intro__statement { font-size: var(--od-fs-b1); line-height: 1.6; font-weight: 500; color: var(--od-grey-900); }

/* Stacked initials with a short line of text */
.od-ag-crew { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.od-ag-crew__faces { display: flex; flex: none; }
.od-ag-crew__faces span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--od-white); background: var(--od-grey-50); color: var(--od-grey-700); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.od-ag-crew__faces span:not(:last-child) { padding-right: 9px; }
.od-ag-crew__faces span + span { margin-left: -12px; }
.od-ag-crew__faces span:nth-child(2n) { background: var(--od-grey-900); color: var(--od-white); }
.od-ag-crew__faces span:nth-child(3) { background: var(--od-brand); color: var(--od-white); }
.od-ag-crew__text { font-size: var(--od-fs-b5); line-height: 1.5; color: var(--od-grey-500); }
.od-ag-crew__text strong span { font: inherit; color: inherit; }
.od-ag-crew__text strong { display: block; font-size: var(--od-fs-b4); font-weight: 500; color: var(--od-fg); }
.od-ag-crew--stack { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 0; }

/* Why Odduel: stepped cards */
.od-ag-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; margin: 0; padding: 0; list-style: none; }
.od-ag-step { display: flex; flex-direction: column; min-height: 320px; padding: 20px; border: 1px solid var(--od-grey-200); border-top: 4px solid var(--od-brand); }
.od-ag-step + .od-ag-step { border-left: 0; }
.od-ag-step:nth-child(2) { min-height: 360px; }
.od-ag-step:nth-child(3) { min-height: 400px; }
.od-ag-step__word { font-size: var(--od-fs-h5); line-height: 1.4; font-weight: 600; color: var(--od-grey-900); }
.od-ag-step__note { margin-top: 8px; font-size: var(--od-fs-b4); font-weight: 600; color: var(--od-grey-400); text-transform: uppercase; }
.od-ag-step__text { margin-top: auto; padding-top: 32px; max-width: 300px; font-size: var(--od-fs-b2); line-height: 1.6; font-weight: 500; color: var(--od-grey-700); }

/* Principles */
.od-ag-values__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 1.52vw + 42px, 64px) 20px; margin: clamp(36px, 1.52vw + 30px, 52px) 0 0; padding: 0; list-style: none; }
.od-ag-value { display: flex; flex-direction: column; align-items: flex-start; }
.od-ag-value__n { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--od-brand); color: var(--od-white); font-size: var(--od-fs-b5); font-weight: 500; letter-spacing: 0; }
.od-ag-value__title { margin-top: 12px; font-size: var(--od-fs-b1); line-height: 1.6; font-weight: 500; color: var(--od-grey-900); }
.od-ag-value__text { margin-top: 4px; max-width: 320px; font-size: var(--od-fs-b5); line-height: 1.6; color: var(--od-grey-600); }

/* Team */
.od-ag-team__grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); align-items: stretch; }
.od-ag-team__side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-right: 60px; }
.od-ag-team__pitch { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 300px; }
.od-ag-team__pitch .od-btn { margin-top: 12px; }
.od-ag-team__side-title { font-size: var(--od-fs-h6); line-height: 1.4; font-weight: 500; }
.od-ag-team .od-team-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.od-ag-team .od-chip { cursor: pointer; }
.od-ag-team .od-chip span { margin-left: 6px; font-weight: 400; color: var(--od-grey-400); }
.od-ag-team .od-team--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; padding: 0; list-style: none; }
.od-ag-team .od-person { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-content: start; padding: 16px 0; border-top: 1px solid var(--od-grey-50); }
.od-ag-team .od-person__avatar { grid-row: span 3; width: 44px; height: 44px; font-size: 14px; letter-spacing: 0; }
.od-ag-team .od-person__name { font-size: var(--od-fs-b3); line-height: 1.4; }
.od-ag-team .od-person__role { font-size: var(--od-fs-b5); line-height: 1.5; }
.od-ag-team .od-person__line { margin-top: 6px; font-size: var(--od-fs-b5); line-height: 1.5; color: var(--od-grey-500); }
/* Everyone at once: names and roles only; a department view adds what each person does */
.od-ag-team .od-team-wrap:has([data-od-filter-value="all"][aria-pressed="true"]) .od-person__line { display: none; }

/* Culture photos */
.od-ag-culture__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; aspect-ratio: 1200 / 816; }
.od-ag-culture__item { margin: 0; min-height: 0; overflow: hidden; background: var(--od-grey-40); }
.od-ag-culture__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.od-ag-culture__c { grid-column: 2; grid-row: 1 / span 2; }

/* Testimonials */
.od-ag-voices .od-testimonials { padding: 0; list-style: none; }
.od-ag-voices .od-testimonial { justify-content: space-between; padding: 24px 20px 20px; border: 1px solid var(--od-grey-200); border-top: 4px solid var(--od-brand); }
.od-ag-voices .od-testimonial__quote { margin: 0; font-size: var(--od-fs-b2); line-height: 1.6; }

/* Tablet */
@media (max-width: 1024px) {
	/* Label on the left, a 500 px text column on the right */
	.od-ag-head, .od-ag-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); column-gap: 24px; }
	.od-ag-head > .od-label, .od-ag-intro__grid > .od-label { margin-top: 14px; }
	.od-ag-intro__grid { row-gap: 56px; }
	.od-ag-intro__grid > .od-label { grid-row: 1 / span 2; }
	.od-ag-intro__main, .od-ag-intro__aside { grid-column: 2; }
	.od-ag-culture__grid { aspect-ratio: 746 / 640; }
	.od-ag-team__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.od-ag-team__side { flex-direction: row; align-items: flex-end; padding-right: 0; }
	.od-ag-team .od-team--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.od-ag-step__text { font-size: var(--od-fs-b3); }
}

/* Mobile */
@media (max-width: 600px) {
	.od-ag-head, .od-ag-intro__grid { grid-template-columns: minmax(0, 1fr); }
	.od-ag-head { row-gap: 32px; }
	.od-ag-head > .od-label, .od-ag-intro__grid > .od-label { margin-top: 0; }
	.od-ag-intro__grid { row-gap: 48px; }
	.od-ag-intro__grid > .od-label { grid-row: auto; margin-bottom: -16px; }
	.od-ag-intro__main, .od-ag-intro__aside { grid-column: auto; }
	.od-ag-steps { grid-template-columns: minmax(0, 1fr); }
	.od-ag-step, .od-ag-step:nth-child(n) { min-height: 280px; }
	.od-ag-step + .od-ag-step { border-left: 1px solid var(--od-grey-200); }
	.od-ag-value__n { width: 20px; height: 20px; }
	.od-ag-team__side { flex-direction: column; align-items: flex-start; gap: 32px; }
	.od-ag-team .od-team-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--od-inset)); padding-inline: var(--od-inset); scrollbar-width: none; }
	.od-ag-team .od-chip { flex: none; }
	.od-ag-team .od-team--grid { grid-template-columns: minmax(0, 1fr); }
	.od-ag-culture__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; aspect-ratio: auto; }
	.od-ag-culture__item { aspect-ratio: 7 / 5; }
	.od-ag-culture__c { grid-column: auto; grid-row: auto; aspect-ratio: 7 / 8; }
}

/* Team as portrait cards, six at a time, with a pager */
.od-ag-team .od-team--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 16px; margin: 0; padding: 0; list-style: none; }
.od-ag-team .od-team--cards .od-person { display: flex; flex-direction: column; gap: 4px; padding: 0 0 16px; border-top: 0; border-bottom: 1px solid var(--od-grey-200); }
.od-ag-team .od-team--cards .od-person[hidden] { display: none; }
.od-ag-team .od-team--cards .od-person__avatar { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 256 / 400; margin-bottom: 12px; border-radius: 0; background: var(--od-grey-40); color: var(--od-grey-300); font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -0.06em; }
.od-ag-team .od-team--cards .od-person:nth-child(3n+2) .od-person__avatar { background: var(--od-grey-50); color: var(--od-grey-400); }
.od-ag-team .od-team--cards .od-person:nth-child(3n) .od-person__avatar { background: var(--od-grey-900); color: var(--od-grey-700); }
.od-ag-team .od-team--cards .od-person__name { font-size: var(--od-fs-b1); line-height: 1.6; font-weight: 500; color: var(--od-grey-900); }
.od-ag-team .od-team--cards .od-person__role { font-size: var(--od-fs-b3); line-height: 1.6; color: var(--od-grey-600); }
.od-ag-team .od-team--cards .od-person__line { display: none; }
.od-team-pager { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 40px; }
.od-team-pager__count { margin-right: auto; font-size: var(--od-fs-b4); color: var(--od-grey-500); font-variant-numeric: tabular-nums; }
.od-team-pager button[disabled] { opacity: .35; cursor: default; }
@media (max-width: 600px) {
	.od-ag-team .od-team--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; }
}
