/* ==========================================================================
   Meet the team page (meet-the-team.html), built 27 Nov 2026 (asked by Tommy).
   The Customer stories design (styles/customer-stories.css): load after
   tokens.css, sections.css, motion.css, product-page.css, flow.css and
   pebbles.css.

   1. Hero: copy left, the executive team fanned like a hand of cards over
      Odro's navy pebble file. They deal in once; no loop.
   2. 01 / Leadership: four photos cropped into the supplied pebble (.peb-crop),
      each with the Odro Blue pebble file offset behind it.
   3. 02 / Teams: navy with dust particles; a tab row like the Customer
      results filter; each team's people cropped into the pebble.
   4. 03 / Careers (added 27 Nov 2026): light; vacancy cards, then five
      culture points on supplied pebbles. The hero's "This could be you"
      card (.tm-you) jumps here.
   5. Close: as customer-stories.html (.book .p-close in flow.css).

   Pebbles: only the supplied files. Nothing drawn.
   Reduced motion: everything shows in its finished state, nothing moves.
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.tm-hero { overflow: hidden; }
.tm-hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-10) var(--space-12); align-items: center; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); min-height: min(calc(100vh - 80px), 680px); }
.tm-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--space-7); }
.tm-hero h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.tm-hero-line { font-size: clamp(19px, 1.7vw, 22px); max-width: 520px; }
.tm-hero-line a { color: var(--odro-navy); font-weight: 700; }
.tm-hero-line a:hover { color: var(--odro-text-blue, #0069A8); }
.tm-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-2); }

/* The whole team (Tommy, 27 Nov 2026): 16 small photo cards in a loose bunch over the navy pebble file.
   Each card sits at --x/--y (percent of the box, its centre) with a tilt (--r). Hover or keyboard focus
   lifts it and shows the name and job title underneath. Order mixes the teams on purpose: nobody is picked. */
.tm-fan { position: relative; height: clamp(440px, 40vw, 580px); isolation: isolate; }
.tm-fan-peb { position: absolute; z-index: -1; left: 52%; top: 48%; width: min(112%, 780px); height: auto; max-width: none; transform: translate(-50%, -50%) rotate(-8deg); filter: drop-shadow(0 30px 60px rgba(14, 32, 80, .18)); pointer-events: none; }
.tm-mate { --w: clamp(86px, 8.2vw, 118px); position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 4 / 5; z-index: 1;
  border: 3px solid #fff; border-radius: 16px; background: var(--odro-navy); color: var(--odro-navy); text-decoration: none;
  transform: translate(-50%, -50%) rotate(var(--r)); box-shadow: 0 12px 26px rgba(14, 32, 80, .28);
  transition: transform .3s var(--spring), box-shadow .3s; }
.tm-mate img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 13px; object-fit: cover; object-position: 50% 28%; }
.tm-mate-tag { position: absolute; left: 50%; top: calc(100% + 8px); width: max-content; max-width: 200px; transform: translate(-50%, -4px); padding: 6px 12px 7px; border-radius: 12px; background: #fff;
  box-shadow: 0 10px 24px rgba(14, 32, 80, .25); font-size: 13px; line-height: 1.25; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
.tm-mate-tag b { display: block; font: 700 15px/1.2 var(--font-display); }
.tm-mate:hover, .tm-mate:focus-visible { transform: translate(-50%, -50%) rotate(0deg) scale(1.22); box-shadow: 0 22px 40px rgba(14, 32, 80, .38); z-index: 10; }
.tm-mate:hover .tm-mate-tag, .tm-mate:focus-visible .tm-mate-tag { opacity: 1; transform: translate(-50%, 0) scale(.82); }
.tm-mate:focus-visible { outline: 3px solid var(--odro-gold); outline-offset: 3px; }
.anim-ready .tm-hero .tm-mate { opacity: 0; }
.anim-ready .tm-hero.in .tm-mate { animation: tm-drop .7s var(--spring) var(--d, 0s) both; }
@keyframes tm-drop { from { opacity: 0; transform: translate(-50%, calc(-50% - 40px)) rotate(calc(var(--r) * -3)) scale(.8); } 40% { opacity: 1; } to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)); } }

@media (max-width: 900px) {
  .tm-hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tm-fan { height: 360px; max-width: 460px; width: 100%; justify-self: center; }
  .tm-fan-peb { left: 50%; top: 50%; width: min(120%, 620px); }
  .tm-mate { --w: 66px; border-width: 2px; border-radius: 12px; }
  .tm-mate img { border-radius: 10px; }
  .tm-mate-tag { display: none; }   /* no hover on phones: names and titles are straight below */
}

/* ---------- 2. 01 / Leadership ---------- */
.tm-lead .wrap { gap: var(--space-9); }
.v-page > .tm-lead > .wrap { padding-bottom: calc(var(--section-pad-y) + 60px); }  /* clears the navy wave below */
.tm-lead .h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; }
.tm-lead-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(24px, 3vw, 48px); }
.tm-leader { display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 120px; }
.tm-person { scroll-margin-top: 140px; }
.tm-photo { position: relative; isolation: isolate; margin-bottom: 18px; }
.tm-photo-peb { position: absolute; z-index: -1; inset: 0; width: 100%; height: auto; max-width: none; transform: translate(9%, 8%) rotate(var(--pr, 0deg)) scale(.96); pointer-events: none; }
.tm-photo .peb-crop { filter: none; transition: transform .35s var(--spring); }
.tm-leader:hover .peb-crop { transform: translateY(-4px) rotate(calc(var(--pr, 0deg) * -.4)); }
.tm-photo .peb-crop img { object-position: 50% 30%; }
.tm-leader h3 { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.tm-leader > p { margin: 0; font-size: 16px; color: var(--color-ink); opacity: .85; }
.tm-leader:target .tm-photo-peb { content: url("../assets/pebbles/odro-pebble-gold.webp"); }   /* gold marks the person picked in the hero */

/* LinkedIn link (both sections) */
.tm-in { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--odro-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.tm-in:hover { color: var(--odro-text-blue, #0069A8); }
.tm-in:focus-visible { outline: 3px solid var(--odro-deep-blue, #007BC4); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 1000px) { .tm-lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .tm-lead-grid { gap: 36px 18px; }
  .tm-leader h3 { font-size: 18px; }
  .tm-leader > p { font-size: 14px; }
}

/* ---------- 3. 02 / Teams (navy, dust particles) ---------- */
.tm-teams { isolation: isolate; overflow: hidden; }
.tm-teams .bokeh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.tm-teams .wrap { gap: var(--space-9); }
.tm-teams-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-7); }
.tm-teams-head > * { min-width: 0; max-width: 100%; }
.tm-teams-head h2 { font-size: var(--text-h2); line-height: var(--leading-heading); letter-spacing: -0.025em; }
/* Tabs: as the Customer results filter. White text, the rest dimmed, a gold bar slides under the picked one. */
.tm-filter { position: relative; display: flex; align-items: center; gap: 30px; box-shadow: inset 0 -2px 0 rgba(255,255,255,.18); overflow-x: auto; scrollbar-width: none; }
.tm-filter::-webkit-scrollbar { display: none; }
.tm-tab { appearance: none; flex: none; cursor: pointer; background: none; border: 0; color: #fff; height: 54px; padding: 0 2px 4px; font: 600 17px/1 var(--font-display); white-space: nowrap; opacity: .6; transition: opacity .2s; }
.tm-tab:hover, .tm-tab[aria-pressed="true"] { opacity: 1; }
.tm-tab:focus-visible { outline: 3px solid var(--odro-gold); outline-offset: -2px; border-radius: 6px; }
.tm-filter-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--bw, 0px); border-radius: 3px; background: var(--odro-gold); transform: translateX(var(--bx, 0px)); transition: transform .45s cubic-bezier(.2,.7,.2,1), width .45s cubic-bezier(.2,.7,.2,1); }

/* One team */
.tm-group { display: flex; flex-direction: column; gap: var(--space-7); padding-top: var(--space-7); border-top: 1px solid rgba(255,255,255,.14); }
.tm-group[hidden] { display: none; }
.tm-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.tm-group-head h3 { margin: 0; font: 700 clamp(24px, 2.2vw, 30px)/1.15 var(--font-display); letter-spacing: -0.015em; color: #fff; }
.tm-led { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; font-weight: 600; color: var(--color-soft-on-dark, #94CEF2); }
.tm-led a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.tm-led a:hover { color: var(--odro-gold); }
.tm-led a:focus-visible { outline: 3px solid var(--odro-gold); outline-offset: 3px; border-radius: 999px; }
.tm-led img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--odro-gold); }

.tm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 44px); }
.tm-person { display: flex; flex-direction: column; gap: 3px; color: #fff; }
/* overflow: hidden keeps every crop the pebble's own shape, whatever the photo's shape (Guy's is square, Nicole's a little shorter) */
.tm-photo .peb-crop, .tm-person .peb-crop { overflow: hidden; }
.tm-person .peb-crop { margin-bottom: 14px; transform: rotate(var(--pr, 0deg)); transition: transform .35s var(--spring); }
.tm-person .peb-crop img { object-position: 50% 30%; }
.tm-person:hover .peb-crop { transform: rotate(0deg) translateY(-4px); }
.tm-person h4 { margin: 0; font: 700 19px/1.2 var(--font-display); }
.tm-person > p { margin: 0; font-size: 15px; color: var(--color-soft-on-dark, #94CEF2); }
.tm-person .tm-in { color: #fff; font-size: 14px; }
.tm-person .tm-in:hover { color: var(--odro-gold); }
.tm-person .tm-in:focus-visible { outline-color: var(--odro-gold); }

@media (max-width: 1000px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tm-filter { gap: 20px; width: 100%; }
  .tm-tab { font-size: 15px; }
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .tm-person h4 { font-size: 17px; }
  .tm-person > p { font-size: 14px; }
}

/* The teams now swish into 03 / Careers (light) with flow.css's usual navy waves, top and bottom.
   (Until 27 Nov 2026 they ran straight into the close.) */

/* ---------- 4. 03 / Careers (light; added 27 Nov 2026, asked by Tommy) ---------- */
.tm-careers { scroll-margin-top: 80px; }
.tm-careers .wrap { gap: var(--space-10); }
.v-page > .tm-careers > .wrap { padding-bottom: calc(var(--section-pad-y) + 60px); }  /* clears the close's wave below */
.tm-careers-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10) var(--space-14); align-items: start; }
.tm-careers .h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; }
.tm-careers-intro { display: flex; flex-direction: column; gap: var(--space-6); }
.tm-careers-line { margin: 0; font-size: clamp(18px, 1.5vw, 21px); max-width: 520px; }

/* Vacancies: white cards with a soft shadow */
.tm-jobs { display: flex; flex-direction: column; gap: var(--space-5); }
.tm-jobs h3 { margin: 0; font: 700 clamp(22px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.tm-job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.tm-job { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 24px; padding: 24px 28px; border-radius: 20px; background: #fff;
  box-shadow: 0 14px 36px rgba(14, 32, 80, .10); border: 1px solid rgba(14, 32, 80, .06); transition: transform .3s var(--spring), box-shadow .3s; }
.tm-job:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(14, 32, 80, .16); }
.tm-job > * { grid-column: 1; margin: 0; }
.tm-job-dept { font-size: var(--text-eyebrow); font-weight: var(--weight-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-eyebrow); }
.tm-job h4 { font: 700 clamp(20px, 1.8vw, 24px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.tm-job-meta { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.tm-job-link { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; color: var(--odro-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.tm-job-link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }   /* the whole card opens the advert */
.tm-job-link:hover { color: var(--odro-text-blue, #0069A8); }
.tm-job:focus-within { outline: 3px solid var(--odro-deep-blue, #007BC4); outline-offset: 3px; }
.tm-job-link:focus-visible { outline: none; }
.tm-jobs-none { margin: 0; padding: 24px 28px; border-radius: 20px; background: #fff; border: 1px dashed rgba(14, 32, 80, .25); }

/* Culture and fit: five points, each with a supplied blue pebble behind a single-weight icon */
.tm-culture { display: flex; flex-direction: column; gap: var(--space-6); padding-top: var(--space-9); border-top: 1px solid var(--border-subtle); }
.tm-culture-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.tm-culture-head h3 { margin: 0; font: 700 clamp(22px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.tm-culture-head p, .tm-culture-lead { margin: 0; font-size: 17px; }
.tm-culture-lead { font-weight: 700; }
.tm-traits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px clamp(18px, 2vw, 32px); }
.tm-traits li { display: flex; flex-direction: column; gap: 14px; }
.tm-traits .peb-icon { --peb-w: 60px; }
.tm-traits p { margin: 0; font-size: 16px; line-height: 1.5; }
.tm-traits b { display: block; margin-bottom: 2px; font: 700 18px/1.25 var(--font-display); }

@media (max-width: 1000px) { .tm-traits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tm-careers-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .tm-traits { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tm-traits li { flex-direction: row; align-items: flex-start; gap: 16px; }
  .tm-traits .peb-icon { --peb-w: 52px; }
  .tm-job { grid-template-columns: minmax(0, 1fr); padding: 20px 22px; }
  .tm-job-link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* The empty seat in the hero bunch: navy card, dashed gold edge, white words. Jumps to 03 / Careers. */
.tm-you { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 3px dashed var(--odro-gold); color: #fff; text-align: center; font: 700 15px/1.15 var(--font-display); }
.tm-you svg { flex: none; }
@media (max-width: 900px) {
  .tm-you { --x: 93% !important; --y: 95% !important; gap: 2px; padding: 4px; border-width: 2px; font-size: 10.5px; }   /* phones: tucked under the bottom-right corner so it stays on screen */
  .tm-you svg { width: 18px; height: 18px; }
}

/* Reduced motion: finished state */
@media (prefers-reduced-motion: reduce) {
  .tm-mate, .tm-mate-tag, .tm-filter-bar, .tm-photo .peb-crop, .tm-person .peb-crop, .tm-job { transition: none !important; animation: none !important; }
}

/* Phones (Peter, 27 Nov 2026): the pebbles behind the leadership photos poked 2px past the screen edge and made the page scroll sideways. */
.tm-lead { overflow-x: clip; }
