/* ==========================================================================
   TECHMATIC SYSTEMS - Careers
   --------------------------------------------------------------------------
   INTEGRATION CONTRACT
     Loaded only by template-careers.php. Every rule is scoped under .tmcr and
     every class starts with cr-, so nothing here can reach the theme's header,
     footer or other pages, and nothing clashes with Bootstrap.
     Hidden states (reveals, collapsed job details, the filters, the slider)
     apply only under html.cr-js, which careers-main.js adds. With no script
     the whole page is visible: jobs open, rules stacked, quotes in a row.

   LOOK
     Navy, brand red and marigold, set in Red Hat Display / Red Hat Text.
     The hero and the closing are a matching pair on cream with black heavy
     type; their own ink, fonts and easing are set on .cr-hero and .cr-end so
     they stay inside those two sections.
   ========================================================================== */
.tmcr {
  --cr-header-h: 90px;   /* replaced by the measured height of the fixed theme header */
  --cr-navy: #0E2A47; --cr-navy-2: #0A2038; --cr-red: #C42032; --cr-gold: #FFC233; --cr-mist: #EEF3F8;
  --cr-white: #FFFFFF; --cr-text: #44566A; --cr-rule: rgba(14, 42, 71, .2);
  --cr-display: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  --cr-body: "Red Hat Text", "Segoe UI", Arial, sans-serif;
  --cr-ease: cubic-bezier(.2, .7, .2, 1);
  --cr-wrap: min(1280px, 100% - 64px);
  --cr-gap: 32px;
  background: var(--cr-white); color: var(--cr-text);
  font: 400 18px/1.65 var(--cr-body); -webkit-font-smoothing: antialiased;
  overflow-x: clip; position: relative;
}
.tmcr *, .tmcr *::before, .tmcr *::after { box-sizing: border-box; }
.tmcr h1, .tmcr h2, .tmcr h3, .tmcr h4, .tmcr p, .tmcr ul, .tmcr dl, .tmcr dd, .tmcr figure { margin: 0; padding: 0; }
.tmcr ul { list-style: none; }
.tmcr img { display: block; max-width: 100%; height: auto; }
.tmcr a { color: inherit; }
.tmcr button, .tmcr input, .tmcr select { font: inherit; color: inherit; }
.tmcr button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.tmcr :focus-visible { outline: 3px solid var(--cr-red); outline-offset: 3px; border-radius: 4px; }
.tmcr .cr-wrap { width: var(--cr-wrap); margin: 0 auto; }
.tmcr .cr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cr-gap); }
.tmcr .cr-sec { padding: clamp(72px, 9vw, 128px) 0; }
.tmcr .cr-h2 { font: 800 clamp(32px, 3.9vw, 52px)/1.06 var(--cr-display); letter-spacing: -.03em; color: var(--cr-navy); }
.tmcr .cr-btn { display: inline-block; padding: 16px 28px; border-radius: 8px; background: var(--cr-red); color: #fff; font: 700 17px/1.2 var(--cr-body); text-decoration: none; transition: background .2s, color .2s; }
.tmcr .cr-btn:hover { background: var(--cr-navy); color: #fff; }
.tmcr .cr-btn--navy { background: var(--cr-navy); }
.tmcr .cr-btn--navy:hover { background: var(--cr-red); }
.tmcr .cr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- motion pieces ---------- */
/* words that rise out of a mask (headings, the closing line) */
.tmcr .cr-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .05em .14em 0; margin: 0 -.05em -.14em 0; }
.tmcr .cr-w > * { display: inline-block; }
.cr-js .tmcr [data-cr-rise] .cr-w > * { transform: translateY(112%); transition: transform .9s var(--cr-ease); transition-delay: calc(var(--i, 0) * 45ms); }
.cr-js .tmcr [data-cr-rise].is-in .cr-w > * { transform: none; }
/* photos that open with a wipe */
.tmcr .cr-shot { overflow: hidden; border-radius: 14px; background: var(--cr-mist); }
.tmcr .cr-shot img { width: 100%; height: 100%; object-fit: cover; }
.cr-js .tmcr .cr-shot[data-cr-in] { clip-path: inset(0 0 100% 0 round 14px); transition: clip-path 1.2s var(--cr-ease); transition-delay: var(--d, 0ms); }
.cr-js .tmcr .cr-shot[data-cr-in].is-in { clip-path: inset(0 0 0 0 round 14px); }
/* plain rise for blocks of text */
.cr-js .tmcr .cr-up[data-cr-in] { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .9s var(--cr-ease); transition-delay: var(--d, 0ms); }
.cr-js .tmcr .cr-up[data-cr-in].is-in { opacity: 1; transform: none; }

/* ---------- hero: cream field, giant black title, spinning badge.
   Its own ink, font and easing are set on .cr-hero so they stay inside this section. ---------- */
.tmcr .cr-hero { --cr-ink: #15120F; --cr-butter: #FFE08A; --cr-textf: "Onest", Arial, sans-serif; --cr-ease: cubic-bezier(.2, .8, .2, 1);
  padding: calc(var(--cr-header-h) + clamp(40px, 6vw, 84px)) 0 clamp(48px, 6vw, 80px); background: #FAF6EF; color: var(--cr-ink); font-family: var(--cr-textf); }
.tmcr .cr-h1 { font: 900 clamp(60px, 8.2vw, 136px)/.95 var(--cr-display); letter-spacing: -.045em; color: var(--cr-ink); margin-left: -.04em; white-space: nowrap; }
.tmcr .cr-h1 span { display: inline-block; }
.tmcr .cr-h1 span:nth-child(3) { color: var(--cr-red); }
.cr-js .tmcr .cr-h1 span { transform: translateY(105%); transition: transform 1s var(--cr-ease); transition-delay: calc(var(--i) * 60ms); }
.cr-js .tmcr .cr-hero.is-on .cr-h1 span { transform: none; }
.tmcr .cr-h1-clip { display: block; overflow: hidden; padding: .06em .05em .1em 0; }
.tmcr .cr-hero-media { position: relative; }
.tmcr .cr-spin { display: grid; place-items: center; position: absolute; z-index: 2; left: -78px; top: -78px; width: clamp(120px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%; background: var(--cr-red); color: #fff; border: 2px solid var(--cr-ink); transition: transform .4s var(--cr-ease); }
.tmcr .cr-spin:hover { transform: scale(1.07); color: #fff; }
.tmcr .cr-spin svg.cr-ring { position: absolute; inset: 6%; width: 88%; height: 88%; animation: cr-rot 16s linear infinite; }
.tmcr .cr-spin svg.cr-ring text { font: 700 13.4px var(--cr-textf); letter-spacing: 0; fill: #fff; text-transform: uppercase; }   /* one letter each, placed round the circle by the template */
.tmcr .cr-spin svg.cr-down { width: 34%; height: 34%; }
@keyframes cr-rot { to { transform: rotate(360deg); } }
.tmcr .cr-hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.tmcr .cr-lede { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.45; font-weight: 500; max-width: 480px; }
.tmcr .cr-hero-stat { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.tmcr .cr-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--cr-ink); font: 600 15px/1.2 var(--cr-textf); background: var(--cr-white); }
.tmcr .cr-pill b { font: 800 20px/1 var(--cr-display); }
.tmcr .cr-pill:nth-child(2) { background: var(--cr-butter); }
.tmcr .cr-hero-photo { position: relative; border-radius: 32px; overflow: hidden; border: 2px solid var(--cr-ink); box-shadow: 10px 10px 0 var(--cr-ink); }
.tmcr .cr-hero-photo img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; object-position: 50% 72%; }
.cr-js .tmcr .cr-hero-photo img { transform: scale(1.14); transition: transform 1.8s var(--cr-ease); }
.cr-js .tmcr .cr-hero.is-on .cr-hero-photo img { transform: none; }
@media (max-width: 991.98px) {
  .tmcr .cr-hero-row { grid-template-columns: 1fr; gap: 70px; }
  .tmcr .cr-spin { left: auto; right: 16px; top: -64px; }
}
@media (max-width: 767.98px) {   /* the badge sits above the photo and only just touches it, clear of the back row's heads */
  .tmcr .cr-hero-row { gap: 100px; }
  .tmcr .cr-spin { right: 12px; top: -88px; width: 100px; }
}
@media (max-width: 575.98px) {
  .tmcr .cr-hero-photo { box-shadow: 6px 6px 0 var(--cr-ink); }
}

/* ---------- open jobs: layout (its navy colours are set near the end of this file) ---------- */
.tmcr .cr-jobs { background: var(--cr-gold); color: var(--cr-navy); }
.tmcr .cr-jobs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.tmcr .cr-jobs-head .cr-h2 { font-size: clamp(40px, 6vw, 84px); font-weight: 900; letter-spacing: -.04em; }
.tmcr .cr-jobs-count { font: 600 18px/1.3 var(--cr-body); }
.tmcr .cr-filters { display: none; }
.cr-js .tmcr .cr-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin: clamp(28px, 3.4vw, 48px) 0 clamp(20px, 2.4vw, 32px); }
.tmcr .cr-teams { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.tmcr .cr-team { padding: 8px 0 6px; font: 600 17px/1.3 var(--cr-body); color: rgba(14, 42, 71, .72); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.tmcr .cr-team:hover { color: var(--cr-navy); border-bottom-color: rgba(14, 42, 71, .35); }
.tmcr .cr-team[aria-pressed="true"] { color: var(--cr-navy); font-weight: 700; border-bottom-color: var(--cr-navy); }
.tmcr .cr-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.tmcr .cr-field { display: block; }
.tmcr .cr-field input, .tmcr .cr-field select { height: 52px; padding: 0 16px; border-radius: 8px; border: 2px solid var(--cr-navy); background-color: var(--cr-white); color: var(--cr-navy); font: 500 16px var(--cr-body); }
.tmcr .cr-field input { width: 270px; }
.tmcr .cr-field input::placeholder { color: #5D6E80; }
.tmcr .cr-field select { padding-right: 42px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.tmcr .cr-field input:focus, .tmcr .cr-field select:focus { outline: 3px solid var(--cr-navy); outline-offset: 2px; }
.tmcr .cr-cols, .tmcr .cr-row-btn { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.15fr) 44px; column-gap: 24px; align-items: center; }
.tmcr .cr-cols { padding: 0 20px 12px; font: 600 14.5px/1.3 var(--cr-body); color: rgba(14, 42, 71, .75); border-bottom: 2px solid var(--cr-navy); }
.tmcr .cr-row { border-bottom: 1px solid var(--cr-rule); transition: background .2s; }
.tmcr .cr-row[hidden] { display: none; }
.tmcr .cr-row:hover { background: rgba(255, 255, 255, .42); }
.tmcr .cr-row.is-open { background: var(--cr-white); border-radius: 14px; border-bottom-color: transparent; box-shadow: 0 18px 40px rgba(14, 42, 71, .16); margin: 8px 0; }
.tmcr .cr-row-h { font: inherit; }
.tmcr .cr-row-btn { width: 100%; padding: 22px 20px; }
.tmcr .cr-row-title { display: block; font: 800 clamp(20px, 1.8vw, 25px)/1.2 var(--cr-display); letter-spacing: -.02em; color: var(--cr-navy); }
.tmcr .cr-row-sum { display: block; margin-top: 5px; font-size: 16px; line-height: 1.45; color: #3A4C5F; max-width: 46ch; }
.tmcr .cr-cell { font: 500 16.5px/1.35 var(--cr-body); color: var(--cr-navy); }
.tmcr .cr-toggle { justify-self: end; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cr-navy); transition: background .2s; }
.tmcr .cr-toggle::before, .tmcr .cr-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: var(--cr-navy); transition: transform .35s var(--cr-ease), background .2s; }
.tmcr .cr-toggle::after { transform: rotate(90deg); }
.tmcr .cr-row.is-open .cr-toggle { background: var(--cr-navy); }
.tmcr .cr-row.is-open .cr-toggle::before, .tmcr .cr-row.is-open .cr-toggle::after { background: #fff; }
.tmcr .cr-row.is-open .cr-toggle::after { transform: rotate(0deg); }
.cr-js .tmcr .cr-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--cr-ease); }
.cr-js .tmcr .cr-row.is-open .cr-more { grid-template-rows: 1fr; }
.tmcr .cr-more > div { overflow: hidden; }
.tmcr .cr-more-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(220px, .8fr); gap: 36px; padding: 26px 20px 30px; border-top: 1px solid var(--cr-rule); color: #2F4257; }
.tmcr .cr-more-in h4 { font: 700 17px/1.3 var(--cr-body); color: var(--cr-navy); margin-bottom: 10px; }
.tmcr .cr-duties li { position: relative; padding-left: 20px; margin-bottom: 7px; font-size: 16.5px; line-height: 1.5; }
.tmcr .cr-duties li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cr-gold); border: 2px solid var(--cr-navy); }
.tmcr .cr-skills { font-size: 16.5px; line-height: 1.6; }
.tmcr .cr-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 16px; margin-bottom: 18px; }
.tmcr .cr-facts dt { color: #5D6E80; }
.tmcr .cr-facts dd { font-weight: 600; color: var(--cr-navy); }
.tmcr .cr-apply .cr-btn { display: block; text-align: center; }
.tmcr .cr-apply-note { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: #5D6E80; }
.tmcr .cr-empty { padding: 34px 20px; border-bottom: 1px solid var(--cr-rule); font-size: 18px; }
.tmcr .cr-empty button { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tmcr .cr-empty a { font-weight: 700; }
.tmcr .cr-none { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 34ch; }
.tmcr .cr-none a { font-weight: 700; }

/* ---------- why techmatic: a statement that lights up as you scroll ---------- */
.tmcr .cr-why-h { grid-column: 1 / -1; margin-bottom: clamp(24px, 3vw, 44px); }
.tmcr .cr-say { grid-column: 1 / span 10; font: 500 clamp(21px, 2.35vw, 33px)/1.42 var(--cr-display); letter-spacing: -.012em; color: var(--cr-navy); }
.cr-js .tmcr .cr-say .cr-word { color: rgba(14, 42, 71, .16); transition: color .35s; }
.cr-js .tmcr .cr-say .cr-word.is-lit { color: var(--cr-navy); }
/* the whole team, cropped wide; which part stays in view is set on the <img> */
.tmcr .cr-why-photo { position: relative; grid-column: 1 / -1; margin-top: clamp(36px, 5vw, 72px); aspect-ratio: 21 / 9; }
/* a black overlay: lightly dims the whole photo and fades to dark at the foot */
.tmcr .cr-why-photo::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .62) 32%, rgba(0, 0, 0, .36) 62%, rgba(0, 0, 0, .26) 100%); }

/* ---------- new employee joined ---------- */
.tmcr .cr-new { background: var(--cr-mist); }
.tmcr .cr-new .cr-grid { align-items: start; row-gap: 36px; margin-top: clamp(32px, 4vw, 56px); }
.tmcr .cr-new-who { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.tmcr .cr-new-side { grid-column: 7 / span 6; }
@media (min-width: 992px) { .tmcr .cr-new--nophoto .cr-new-side { grid-column: 1 / span 8; } }   /* a new joiner saved without a photo */
.tmcr .cr-new-name { font: 900 clamp(40px, 5vw, 72px)/1 var(--cr-display); letter-spacing: -.04em; color: var(--cr-navy); }
.tmcr .cr-new-role { margin-top: 14px; font: 600 clamp(19px, 1.6vw, 22px)/1.35 var(--cr-body); color: var(--cr-navy); }
.tmcr .cr-new-when { margin-top: 2px; font-size: 17px; }
.tmcr .cr-letter { position: relative; padding: clamp(28px, 3.4vw, 52px); background: var(--cr-white); border-radius: 14px; box-shadow: 0 1px 0 rgba(14, 42, 71, .08), 0 24px 48px rgba(14, 42, 71, .08); margin-top: clamp(28px, 3vw, 44px); }
.tmcr .cr-letter::before { content: ""; position: absolute; left: clamp(28px, 3.4vw, 52px); top: 0; width: 72px; height: 6px; background: var(--cr-red); }
.tmcr .cr-letter p { font-size: clamp(17.5px, 1.4vw, 19.5px); line-height: 1.65; color: #2F4257; max-width: 54ch; }
.tmcr .cr-letter p + p { margin-top: 1em; }
.tmcr .cr-letter .cr-letter-hi { font: 800 clamp(24px, 2.2vw, 30px)/1.2 var(--cr-display); letter-spacing: -.025em; color: var(--cr-navy); }
.tmcr .cr-letter-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--cr-rule); }
.tmcr .cr-letter .cr-letter-sign { font: 700 19px/1.5 var(--cr-body); color: var(--cr-navy); }
.tmcr .cr-share { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 8px; border: 2px solid var(--cr-navy); color: var(--cr-navy); font: 700 16px/1.2 var(--cr-body); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.tmcr .cr-share svg { width: 20px; height: 20px; flex: none; }
.tmcr .cr-share:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.tmcr .cr-letter .cr-letter-sign span { display: block; font-weight: 400; color: var(--cr-text); }

/* ---------- the golden hellos: navy field. The heading, then the paragraphs side by side
   (the first sentence of each is its lead line), then celebration photos slide past ---------- */
.tmcr .cr-golden { background: var(--cr-navy); color: rgba(255, 255, 255, .84); padding-bottom: 0; overflow: hidden; }
.tmcr .cr-golden .cr-h2 { color: #fff; }
.tmcr .cr-golden-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.4vw, 72px); margin-top: clamp(28px, 3.4vw, 48px); }
.tmcr .cr-golden-col { position: relative; padding-top: clamp(22px, 2.2vw, 30px); border-top: 1px solid rgba(255, 255, 255, .22); }
.tmcr .cr-golden-col::before { content: ""; position: absolute; left: 0; top: -1px; width: 64px; height: 4px; background: #E13D4B; }
.tmcr .cr-golden-lead { font: 700 clamp(22px, 2.1vw, 29px)/1.25 var(--cr-display); letter-spacing: -.015em; color: #fff; max-width: 22ch; text-wrap: balance; }
.tmcr .cr-golden-col p + p { margin-top: 14px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; max-width: 50ch; }
@media (max-width: 767.98px) { .tmcr .cr-golden-cols { grid-template-columns: 1fr; } }
.tmcr .cr-rail { margin-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(72px, 9vw, 128px); overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
@media (min-width: 992px) { .cr-js .tmcr .cr-rail { overflow: visible; scroll-snap-type: none; } }
.tmcr .cr-rail-track { display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding: 0 max(32px, calc((100vw - 1280px) / 2)); will-change: transform; }
.tmcr .cr-rail-item { flex: none; height: clamp(220px, 27vw, 400px); border-radius: 14px; overflow: hidden; background: var(--cr-navy-2); }
.tmcr .cr-rail-item:nth-child(2n+1) { height: clamp(180px, 21vw, 310px); margin-bottom: clamp(20px, 3.4vw, 56px); }
.tmcr .cr-rail-item img { height: 100%; width: auto; max-width: none; }

/* ---------- rules. Default (no script, or a small screen): stacked cards, every
   rule open. With the script on a wide screen: three photo panels, the chosen one opens. ---------- */
.tmcr .cr-panels { display: flex; flex-direction: column; gap: 20px; margin-top: clamp(28px, 3.4vw, 48px); }
.tmcr .cr-panel { position: relative; border-radius: 14px; overflow: hidden; background: var(--cr-mist); color: var(--cr-navy); }
.tmcr .cr-panel > img { width: 100%; aspect-ratio: 16 / 9; max-height: 420px; object-fit: cover; object-position: 50% 18%; }
.tmcr .cr-panel-body { padding: 22px 22px 26px; }
.tmcr .cr-panel-h { font: inherit; }
.tmcr .cr-panel-btn { font: 900 clamp(40px, 4.3vw, 64px)/1 var(--cr-display); letter-spacing: -.04em; color: var(--cr-navy); pointer-events: none; }
.tmcr .cr-panel-text { margin-top: 10px; font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.6; color: #2F4257; max-width: 60ch; }
@media (min-width: 992px) {
  .cr-js .tmcr .cr-panels { flex-direction: row; gap: 14px; height: clamp(520px, 46vw, 640px); }
  .cr-js .tmcr .cr-panel { flex: 1 1 0; min-width: 0; background: var(--cr-navy); color: #fff; cursor: pointer; transition: flex-grow .8s var(--cr-ease); }
  .cr-js .tmcr .cr-panel.is-on { flex-grow: 3.3; cursor: default; }
  .cr-js .tmcr .cr-panel > img { position: absolute; left: 0; top: 0; height: 100%; max-height: none; aspect-ratio: auto; filter: saturate(.55) brightness(.62); transform: scale(1.08); transition: filter .6s, transform 1.2s var(--cr-ease); }
  .cr-js .tmcr .cr-panel.is-on > img { filter: none; transform: none; }
  .cr-js .tmcr .cr-panel::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(8, 24, 42, .94) 0%, rgba(8, 24, 42, .78) 38%, rgba(8, 24, 42, .12) 72%, rgba(8, 24, 42, 0) 100%); opacity: .55; transition: opacity .6s; }
  .cr-js .tmcr .cr-panel.is-on::after { opacity: 1; }
  .cr-js .tmcr .cr-panel-body { position: absolute; left: 0; bottom: 0; z-index: 1; width: min(700px, 62vw); padding: clamp(22px, 2.4vw, 36px); }
  .cr-js .tmcr .cr-panel-btn { color: #fff; pointer-events: auto; }
  .cr-js .tmcr .cr-panel-text { margin-top: 14px; color: rgba(255, 255, 255, .9); opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .5s var(--cr-ease); }
  .cr-js .tmcr .cr-panel.is-on .cr-panel-text { opacity: 1; transform: none; transition-delay: .35s; }
  .cr-js .tmcr .cr-panel:not(.is-on) .cr-panel-text { position: absolute; pointer-events: none; }
}

/* ---------- what our team says: a card slider (a plain scrolling row without the script) ---------- */
.tmcr .cr-says { background: var(--cr-mist); overflow: hidden; }
.tmcr .cr-says-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.tmcr .cr-says-nav { display: none; flex: none; gap: 10px; }
.cr-js .tmcr .cr-says-nav { display: flex; }
.tmcr .cr-arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--cr-navy); border-radius: 50%; color: var(--cr-navy); transition: background .2s, color .2s; }
.tmcr .cr-arrow:hover { background: var(--cr-navy); color: #fff; }
.tmcr .cr-arrow svg { width: 20px; height: 20px; }
.tmcr .cr-says-track { position: relative; display: flex; overflow-x: auto; padding-bottom: 12px; }
.cr-js .tmcr .cr-says-track { overflow: visible; padding-bottom: 0; transition: transform .8s var(--cr-ease); will-change: transform; }
.tmcr .cr-quote { flex: none; width: min(460px, 84vw); margin: 0 12px; padding: 34px; border: 1px solid #DCE4EC; border-radius: 14px; background: #fff; transition: transform .8s var(--cr-ease), opacity .6s, background .6s, box-shadow .6s; }
.cr-js .tmcr .cr-quote { cursor: pointer; opacity: .6; transform: scale(.93); }
.cr-js .tmcr .cr-quote.is-on { cursor: default; opacity: 1; transform: none; }
.tmcr .cr-quote.is-on { background: var(--cr-navy); border-color: var(--cr-navy); box-shadow: 0 30px 60px rgba(14, 42, 71, .28); }
.tmcr .cr-quote::before { content: "\201C"; display: block; height: 44px; margin-bottom: 14px; font: 900 84px/1 var(--cr-display); color: var(--cr-red); }
.tmcr .cr-quote.is-on::before { color: var(--cr-gold); }
.tmcr .cr-quote q { display: block; min-height: 6.3em; quotes: none; font: 600 clamp(18px, 1.6vw, 21px)/1.55 var(--cr-body); color: var(--cr-navy); }
.tmcr .cr-quote-who { display: flex; align-items: center; gap: 14px; margin-top: 22px; line-height: 1.4; }
.tmcr .cr-quote-who img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tmcr .cr-quote-who b { display: block; color: var(--cr-navy); }
.tmcr .cr-quote-who small { font-size: 15px; }
.tmcr .cr-quote.is-on q, .tmcr .cr-quote.is-on .cr-quote-who b { color: #fff; }
.tmcr .cr-quote.is-on .cr-quote-who small { color: rgba(255, 255, 255, .75); }
@media (max-width: 575.98px) { .tmcr .cr-quote { padding: 26px; } .tmcr .cr-arrow { width: 46px; height: 46px; } }

/* ---------- closing: bookends the hero (cream field, giant black type, the red badge),
   then a slow moving row of what the company does. Its ink, fonts and easing are set on .cr-end, as on the hero. ---------- */
.tmcr .cr-end { --cr-ink: #15120F; --cr-butter: #FFE08A; --cr-textf: "Onest", Arial, sans-serif; --cr-ease: cubic-bezier(.2, .8, .2, 1);
  position: relative; overflow: hidden; padding: clamp(64px, 8vw, 120px) 0 0; border-top: 2px solid var(--cr-ink); background: #FAF6EF; color: var(--cr-ink); font-family: var(--cr-textf); }
.tmcr .cr-end--plain { padding-bottom: clamp(64px, 8vw, 120px); }   /* without the moving row of words, the section closes with its own space */
.tmcr .cr-end-h { font: 900 clamp(46px, 8.2vw, 136px)/.95 var(--cr-display); letter-spacing: -.045em; color: var(--cr-ink); margin-left: -.04em; white-space: nowrap; }
.tmcr .cr-end-clip { display: block; overflow: hidden; padding: .06em .05em .14em 0; }
.tmcr .cr-end-clip span { display: inline-block; }
.tmcr .cr-end-clip span:last-child { color: var(--cr-red); }
.cr-js .tmcr .cr-end-clip span { transform: translateY(112%); transition: transform 1s var(--cr-ease); transition-delay: calc(var(--i) * 55ms); }
.cr-js .tmcr .cr-end-h.is-in .cr-end-clip span { transform: none; }
.tmcr .cr-end-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(18px, 2.6vw, 36px); }
.tmcr .cr-end-p { max-width: 25ch; font: 500 clamp(22px, 2.7vw, 38px)/1.3 var(--cr-textf); letter-spacing: -.01em; }
.tmcr .cr-end-p a { color: var(--cr-red); text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .14em; overflow-wrap: anywhere; transition: color .2s; }
.tmcr .cr-end-p a:hover { color: var(--cr-ink); }
.tmcr .cr-end-go { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3vw, 40px); }
.tmcr .cr-end-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 28px; border: 2px solid var(--cr-ink); border-radius: 999px; background: var(--cr-ink); color: #fff; font: 700 17px/1 var(--cr-textf); text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .3s var(--cr-ease), box-shadow .3s; }
.tmcr .cr-end-btn:hover { background: var(--cr-red); border-color: var(--cr-red); color: #fff; transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--cr-ink); }
.tmcr .cr-end-btn--line { display: none; background: #fff; color: var(--cr-ink); }
.cr-js .tmcr .cr-end-btn--line { display: inline-flex; }
.tmcr .cr-end-btn--line:hover, .tmcr .cr-end-btn--line.is-done { background: var(--cr-butter); border-color: var(--cr-ink); color: var(--cr-ink); }
.tmcr .cr-end-btn svg { width: 18px; height: 18px; flex: none; }
.tmcr .cr-end .cr-spin { position: relative; left: auto; right: auto; top: auto; width: clamp(150px, 17vw, 230px); }
.tmcr .cr-end .cr-spin svg.cr-down { width: 30%; height: 30%; }
.tmcr .cr-hellos { margin-top: clamp(48px, 6vw, 88px); background: var(--cr-ink); overflow: hidden; }
.tmcr .cr-hellos-track { display: flex; width: max-content; animation: cr-hellos 80s linear infinite; }
.tmcr .cr-hellos span { flex: none; white-space: nowrap; padding: 16px clamp(16px, 2vw, 30px) 22px; font: 900 clamp(44px, 6vw, 88px)/1 var(--cr-display); letter-spacing: -.04em; color: #FAF6EF; }
.tmcr .cr-hellos span:nth-child(3n+2) { color: transparent; -webkit-text-stroke: 2px #FAF6EF; }
.tmcr .cr-hellos span:nth-child(3n) { color: #E13D4B; }
@keyframes cr-hellos { to { transform: translateX(-50%); } }
@media (max-width: 767.98px) {
  .tmcr .cr-end-row { grid-template-columns: 1fr; }
  .tmcr .cr-end .cr-spin { justify-self: end; margin-top: -8px; }
  .tmcr .cr-end-btn { flex: 1 1 100%; }
}

@media (max-width: 1099.98px) {
  .tmcr .cr-cols { display: none; }
  .tmcr .cr-table { border-top: 2px solid var(--cr-navy); }
  .tmcr .cr-row-btn { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 14px; align-items: start; }
  .tmcr .cr-row-main { grid-column: 1 / -1; padding-right: 60px; }
  .tmcr .cr-toggle { position: absolute; right: 20px; top: 22px; }
  .tmcr .cr-cell-l { position: static; display: block; width: auto; height: auto; clip: auto; font: 500 13.5px/1.3 var(--cr-body); color: #5D6E80; white-space: normal; }
  .tmcr .cr-more-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tmcr .cr-apply { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 991.98px) {
  .tmcr { --cr-wrap: min(1280px, 100% - 40px); --cr-gap: 24px; }
  .tmcr .cr-say, .tmcr .cr-new-who, .tmcr .cr-new-side { grid-column: 1 / -1; }
  .tmcr .cr-lede { max-width: 44ch; }
  .tmcr .cr-new-who { max-width: 420px; }
  /* the rail is a swipeable row */
  .tmcr .cr-rail-track { padding: 0 20px; transform: none !important; }
  .tmcr .cr-rail-item { scroll-snap-align: center; }
}
@media (max-width: 575.98px) {
  .tmcr { --cr-wrap: min(1280px, 100% - 32px); font-size: 17px; }
  .tmcr .cr-hero-photo img { aspect-ratio: 16 / 9; }   /* the hero photo's own shape, so nobody at the edges is cut off */
  .tmcr .cr-why-photo { aspect-ratio: 3 / 2; }
  .tmcr .cr-fields, .tmcr .cr-field, .tmcr .cr-field input, .tmcr .cr-field select { width: 100%; }
  .tmcr .cr-teams { gap: 4px 20px; }
  .tmcr .cr-row-btn { padding: 20px 12px; column-gap: 16px; }
  .tmcr .cr-toggle { right: 12px; top: 20px; }
  .tmcr .cr-more-in { grid-template-columns: 1fr; gap: 24px; padding: 22px 12px 24px; }
  .tmcr .cr-share { width: 100%; justify-content: center; }
  .tmcr .cr-rail-track { padding: 0 16px; }
}
/* ---------- open jobs: navy colours. The layout rules above were first drawn on a
   light band, so the section's colours are set here; an opened job is a white card. ---------- */
.tmcr .cr-jobs { background: var(--cr-navy); color: #fff; }
.tmcr .cr-jobs .cr-h2 { color: #fff; }
.tmcr .cr-jobs-count { color: rgba(255, 255, 255, .82); }
.tmcr .cr-team { color: rgba(255, 255, 255, .68); }
.tmcr .cr-team:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.tmcr .cr-team[aria-pressed="true"] { color: #fff; border-bottom-color: #fff; }
.tmcr .cr-field input, .tmcr .cr-field select { border-color: #fff; }
.tmcr .cr-field input:focus, .tmcr .cr-field select:focus { outline-color: #fff; }
.tmcr .cr-jobs :focus-visible { outline-color: #fff; }
.tmcr .cr-cols { color: rgba(255, 255, 255, .72); border-bottom-color: rgba(255, 255, 255, .85); }
.tmcr .cr-row { border-bottom-color: rgba(255, 255, 255, .16); }
.tmcr .cr-row:hover { background: rgba(255, 255, 255, .07); }
.tmcr .cr-row-title, .tmcr .cr-cell { color: #fff; }
.tmcr .cr-row-sum { color: rgba(255, 255, 255, .74); }
.tmcr .cr-toggle { border-color: #fff; }
.tmcr .cr-toggle::before, .tmcr .cr-toggle::after { background: #fff; }
.tmcr .cr-row.is-open, .tmcr .cr-row.is-open:hover { background: #fff; box-shadow: 0 24px 50px rgba(3, 14, 28, .45); }
.tmcr .cr-row.is-open .cr-row-title, .tmcr .cr-row.is-open .cr-cell { color: var(--cr-navy); }
.tmcr .cr-row.is-open .cr-row-sum { color: #3A4C5F; }
.tmcr .cr-row.is-open .cr-toggle { background: var(--cr-navy); border-color: var(--cr-navy); }
.tmcr .cr-row.is-open :focus-visible { outline-color: var(--cr-red); }
.tmcr .cr-duties li::before { background: var(--cr-red); border-color: var(--cr-red); }
.tmcr .cr-empty { border-bottom-color: rgba(255, 255, 255, .16); }
.tmcr .cr-empty a, .tmcr .cr-empty button { color: #fff; }
@media (max-width: 1099.98px) {
  .tmcr .cr-table { border-top-color: rgba(255, 255, 255, .85); }
  .tmcr .cr-cell-l { color: rgba(255, 255, 255, .62); }
  .tmcr .cr-row.is-open .cr-cell-l { color: #5D6E80; }
}

@media (prefers-reduced-motion: reduce) {
  .tmcr *, .tmcr *::before, .tmcr *::after { animation: none !important; transition: none !important; }
}
