/* Edgewater leader pages (team/*.html): a page of their own for each Managing Partner and Managing Director, built by
   tools/team/build.js from the About page's Our Team cards. Loaded after core.css and inner.css. No page script: the
   head is CSS only (inner.css), core.js runs the one-time reveals. Hidden start states only under html.motion. */

/* == HEAD: name, title, summary and the two actions on the navy cover; the portrait (the About card's own image and
   3:4 crop) stands on the horizon at the right, where the person faces the text. Phones: the portrait sits beside the
   name and title, as on the About founders' cards == */
.tm-head { --pw: clamp(240px, 24vw, 344px); display: grid; grid-template-columns: minmax(0, 1fr) var(--pw); align-items: end; column-gap: clamp(32px, 5.6vw, 104px); padding-bottom: 0; }
/* the kicker and the name sit where every inner page has them (inner.css); the portrait sets the head's height */
.tm-id { align-self: start; min-width: 0; padding-bottom: clamp(34px, 5vh, 60px); }
.tm-role { display: flex; align-items: center; gap: 16px; margin-top: clamp(14px, 2vh, 20px); font: 600 12px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
/* the one gold accent of the head */
.tm-role::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--gold-n); }
.tm-portrait { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--navy-deep); }
.tm-portrait img { width: 100%; height: 100%; object-fit: cover; }
/* LinkedIn leaves the site: its arrow points up and out */
.tm-li svg { transition: transform .3s var(--ease-ui); }
.tm-li:hover svg, .tm-li:focus-visible svg { transform: translate(3px, -3px); }
/* a portrait still to come: the About page's initials tile (stone, an inset hairline frame, a gold rule) */
.tm-portrait--initials { background: var(--stone); outline: 1px solid var(--stone-rule); outline-offset: -13px; }
.member-initials { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(44px, 4.4vw, 64px)/1 var(--serif); letter-spacing: .08em; color: var(--navy); }
.member-initials::after { content: ""; position: absolute; left: 50%; top: calc(50% + 46px); width: 28px; height: 1px; margin-left: -14px; background: var(--gold); }

/* the portrait rises from the horizon once, settling as it comes; the title line follows the name */
@keyframes tmRise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes tmSettle { from { transform: scale(1.07); } }
html.motion .tm-portrait { animation: tmRise 1.15s var(--ease-io) .18s both; }
html.motion .tm-portrait img { animation: tmSettle 1.7s var(--ease) .18s both; }
html.motion .tm-role { animation: phUp .7s var(--ease) .24s both; }

@media (max-width: 767px) {
  .tm-head { grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "k k" "n p" "r p" "l l" "a a"; column-gap: 18px; align-items: start; padding-bottom: 32px; }
  .tm-id { display: contents; }
  .tm-head .ph-kicker { grid-area: k; }
  .tm-head .ph-h { grid-area: n; align-self: end; }
  .tm-head .ph-h .nw { white-space: normal; }
  .tm-role { grid-area: r; align-self: start; gap: 12px; font-size: 11px; letter-spacing: .16em; }
  .tm-role::before { width: 22px; }
  .tm-head .ph-lede { grid-area: l; }
  .tm-head .ph-actions { grid-area: a; }
  .tm-portrait { grid-area: p; align-self: center; margin-top: 16px; }
  .member-initials { font-size: 30px; }
  .member-initials::after { top: calc(50% + 26px); width: 22px; margin-left: -11px; }
  .tm-portrait--initials { outline-offset: -8px; }
}

/* == ENGAGEMENTS (stone): the public case studies and releases of work the leader did at Edgewater (team.json
   "work"), as the Press page's rows (core .tx) on stone, the hover plate white. A case study has no date, so its label
   takes the date's place == */
.tm-work .ch-head { margin-bottom: clamp(24px, 2.4vw, 34px); }
.tm-work .tx-list { border-top-color: var(--stone-rule); }
.tm-work .tx { border-bottom-color: var(--stone-rule); }
.tm-work .tx::before { background: #fff; }
.tm-work .tx-logo { border-color: var(--stone-rule); }
@media (min-width: 1200px) { .tm-work .tx--case .tx-cat { grid-row: 1 / 3; align-self: center; } }
@media (max-width: 1199px) { .tm-work .tx--case .tx-cat { display: block; } }
@media (max-width: 767px) { .tm-work .tx--case .tx-cat { grid-area: date; } }
/* current clients with no public page: names only, under the rows, on the rows' columns (label, then names) */
.tm-also { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding-top: clamp(22px, 2.2vw, 30px); }
.tm-also .kicker { grid-column: 1 / 4; color: var(--label); }
.tm-also-names { grid-column: 4 / -1; font: 400 clamp(18px, 1.36vw, 21px)/1.5 var(--serif); color: var(--navy); }
.tm-also .sep { color: var(--gold-deep); }
@media (max-width: 1199px) { .tm-also { grid-template-columns: 8.5rem minmax(0, 1fr); } .tm-also .kicker { grid-column: 1; } .tm-also-names { grid-column: 2; } }
@media (max-width: 767px) { .tm-also { grid-template-columns: minmax(0, 1fr); row-gap: 8px; } .tm-also .kicker, .tm-also-names { grid-column: 1; } }

/* == EXPERIENCE (white), for a leader with no biography: the experience logos, a strip drawn on stone, on a stone plate == */
.tm-glance .ch-head { margin-bottom: clamp(28px, 2.8vw, 40px); }
.tm-logos { padding: clamp(12px, 1.4vw, 20px) clamp(16px, 3vw, 44px); background: var(--stone); border-block: 1px solid var(--stone-rule); }
.tm-logos img { display: block; width: 100%; max-width: 880px; height: auto; margin-inline: auto; }
.tm-logos--3 img { max-width: 600px; }
@media (max-width: 767px) { .tm-logos { padding: 8px 10px; } }

/* == PROFILE (white): the full bio in the wide column; beside it the experience logos one by one, stacked on a stone
   plate and held in view while a long bio scrolls. Below 1024px the logos follow the bio, side by side == */
.tm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.tm-main { grid-column: 1 / span 7; grid-row: 1; min-width: 0; }
.tm-grid--solo .tm-main { grid-column: 1 / span 8; }
.tm-side { grid-column: 9 / -1; grid-row: 1; min-width: 0; position: sticky; top: calc(var(--mast-h) + 32px); }
/* the two heads sit on one line and close to what they head */
.tm-sub { margin-bottom: clamp(22px, 2.2vw, 32px); }
.tm-prose { max-width: 40em; }
/* the 1px gaps show the rule colour between the stone cells; a cell that ends a row stretches to fill it */
.tm-xp { display: flex; flex-wrap: wrap; gap: 1px; background: var(--stone-rule); border-block: 1px solid var(--stone-rule); }
.tm-xp-cell { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; min-height: clamp(86px, 7.2vw, 104px); padding: 14px 18px; background: var(--stone); }
.tm-xp img { display: block; width: var(--w); max-width: 100%; height: auto; }
/* the profile and the contact block share the white: one gap between them, not two */
.tm-profile + .tm-next, .tm-glance + .tm-next { padding-top: 0; }
@media (max-width: 1023px) {
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-main, .tm-grid--solo .tm-main, .tm-side { grid-column: 1; grid-row: auto; }
  .tm-side { position: static; margin-top: clamp(44px, 6vw, 56px); }
  .tm-xp-cell { flex-basis: 150px; }
}
@media (max-width: 767px) {
  .tm-xp-cell { min-height: 76px; padding: 12px 14px; }
  .tm-xp img { width: calc(var(--w) * .8); }
}

/* == NEXT (white): the way to the contact form, on navy with a chevron leading edge (the site's buttons and rail),
   then the rest of the leadership and the way back to the whole team == */
.tm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 48px; padding: clamp(28px, 3.4vw, 52px) clamp(64px, 6vw, 96px) clamp(28px, 3.4vw, 52px) clamp(24px, 4vw, 60px); background: var(--navy); color: #fff;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%); --focus: #fff; }
.tm-cta .kicker { color: var(--gold-n); }
.tm-cta-text { max-width: 40em; }
.tm-cta-title { margin-top: 10px; font: 400 var(--t-d2)/1.18 var(--serif); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.tm-cta-sub { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--on-navy-2); }
.tm-cta .btn { flex: none; }
.tm-peers-head { margin-top: clamp(56px, 5.6vw, 88px); margin-bottom: clamp(28px, 2.8vw, 40px); }
/* one row of six (the other leaders); --n when a page shows more (a page added by team.json "extra" lists all seven) */
.tm-peers { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 36px var(--gutter); }
.tm-peer { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tm-peer:focus-visible { outline-offset: 4px; }
.tm-peer-photo { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone-2); }
.tm-peer-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tm-peer:hover .tm-peer-photo img, .tm-peer:focus-visible .tm-peer-photo img { transform: scale(1.04); }
.tm-peer-name { container-type: inline-size; display: block; margin-top: 14px; font: 400 17px/1.26 var(--serif); color: var(--navy); }
.tm-peer-name > span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.tm-peer:hover .tm-peer-name > span, .tm-peer:focus-visible .tm-peer-name > span { background-size: 100% 1px; }
/* "Guillet de Chatellus" stays together where the tile holds it (as on the About tiles) */
@container (max-width: 9.3em) { .tm-peer-name .nw { white-space: normal; } }
@supports not (container-type: inline-size) { .tm-peer-name .nw { white-space: normal; } }
.tm-peer .role { display: block; margin-top: 7px; }
.tm-all { margin-top: clamp(32px, 3vw, 44px); }
@media (max-width: 1023px) { .tm-peers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .tm-cta { padding-right: 56px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); }
  .tm-cta .btn { width: 100%; justify-content: space-between; }
  .tm-peers { gap: 28px 12px; }
  .tm-peer-name { margin-top: 10px; font-size: 15px; line-height: 1.25; }
  .tm-peer .role { font-size: 10px; letter-spacing: .08em; }
}

/* == forced colours and print == */
@media (forced-colors: active) {
  .tm-cta { clip-path: none; border: 1px solid CanvasText; }
  .tm-logos, .tm-xp { forced-color-adjust: none; }
  .tm-role::before { forced-color-adjust: none; background: CanvasText; }
  .tm-peer:hover .tm-peer-name > span { text-decoration: underline; }
}
@media print {
  .tm-head { grid-template-columns: minmax(0, 1fr) 120px; padding-bottom: 24px; }
  .tm-role { color: var(--ink); }
  .tm-portrait { animation: none !important; clip-path: none !important; }
  .tm-next, .ph-actions { display: none !important; }
}
