/* Team cards: the cross-link box between EazyMAX products (templates/shared/team_cards.tpl). Self-contained: brand tokens
   are defined on .em-team, so it looks the same on the home page and inside the Bootstrap based product pages. */
.em-team {
    --tm-green: #009478; --tm-green-dark: #007a63; --tm-yellow: #fdd80d; --tm-tg: #005a48; --tm-tg-strong: #004d3d;
    --tm-ink: #10261f; --tm-ink-soft: #27443a; --tm-neon: #00ff66;
    --tm-panel: rgba(255, 250, 228, .8); --tm-border: rgba(0, 77, 61, .16);
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--tm-ink); line-height: 1.5; box-sizing: border-box;
}
.em-team *, .em-team *::before, .em-team *::after { box-sizing: border-box; }
.em-team ul, .em-team ol { margin: 0; padding: 0; list-style: none; }
:where(.em-team .team-card h3, .em-team .team-card p) { margin: 0; }
/* product-page frame (the home page uses its own band/wrap/eyebrow classes) */
.em-team--product { padding: clamp(56px, 9vh, 96px) 0; }
.em-team-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.em-team .em-team-title { margin: 0 0 14px; font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.15; color: var(--tm-tg); }
.em-team .em-team-lead { margin: 0 0 32px; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); font-weight: 500; color: var(--tm-ink-soft); max-width: 46em; }

.em-team .team { display: grid; gap: 20px; grid-template-columns: 1fr 1fr .86fr; align-items: stretch; }
.em-team .team--two { grid-template-columns: 1fr 1fr; }
.em-team .team-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--tm-panel); border: 1px solid var(--tm-border); box-shadow: 0 14px 36px rgba(70, 50, 0, .14); display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
.em-team .team-card:hover, .em-team .team-card:focus-within { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(70, 50, 0, .22); }
.em-team .team-link { position: absolute; inset: 0; z-index: 3; border-radius: 22px; }
.em-team .team-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8c40a; }
.em-team .team-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 78% 28%; transform: scale(1.35); transform-origin: 78% 30%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.em-team .team-card:hover .team-media img { transform: scale(1.42); }
.em-team .team-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; border-radius: 0; font-weight: 700; font-size: .82rem; color: var(--tm-ink); cursor: default; text-shadow: 0 1px 0 rgba(255, 250, 228, .75), 0 0 8px rgba(255, 250, 228, .6); }
.em-team .tm-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--tm-neon); display: inline-block; position: relative; flex: 0 0 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.em-team .tm-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tm-neon); animation: emTmPulse 2s infinite; }
@keyframes emTmPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.em-team .flow { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 22px 12px 10px; background: linear-gradient(to top, rgba(11, 33, 28, .78), rgba(11, 33, 28, 0)); cursor: default; }
.em-team .flow li { position: relative; z-index: 1; font-size: .74rem; font-weight: 700; color: rgba(255, 250, 228, .72); padding: 2px 0; white-space: nowrap; text-decoration: underline transparent 2px; text-underline-offset: 5px; animation: emTmFlow 5s infinite; }
.em-team .flow li + li::before { content: "/"; margin: 0 8px; color: rgba(255, 250, 228, .4); text-decoration: none; display: inline-block; }
.em-team .flow li:nth-child(2) { animation-delay: 1s; } .em-team .flow li:nth-child(3) { animation-delay: 2s; } .em-team .flow li:nth-child(4) { animation-delay: 3s; } .em-team .flow li:nth-child(5) { animation-delay: 4s; }
@keyframes emTmFlow { 0%, 20% { color: var(--tm-yellow); text-decoration-color: var(--tm-yellow); } 24%, 100% { color: rgba(255, 250, 228, .72); text-decoration-color: transparent; } }
.em-team .team-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.em-team .team-name { font-family: 'EazyMax Display', sans-serif; font-weight: 800; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); display: flex; align-items: center; gap: 10px; color: var(--tm-tg); }
.em-team .team-name img { width: 26px; height: 30px; flex: 0 0 auto; }
.em-team .team-role { font-weight: 700; font-size: 1.08rem; margin: 6px 0 14px; }
.em-team .tm-ticks { margin-bottom: 18px; }
.em-team .tm-ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; line-height: 1.45; }
.em-team .tm-ticks li::before { content: 'check'; font-family: 'Material Icons'; font-size: 14px; line-height: 20px; text-align: center; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--tm-green-dark); color: #fff; }
.em-team .team-cta { margin-top: auto; font-family: 'EazyMax Display', sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--tm-green-dark); display: inline-flex; align-items: center; gap: 8px; }
.em-team .team-cta .material-icons { font-size: 1.25em; transition: transform .3s ease; }
.em-team .team-card:hover .team-cta .material-icons { transform: translateX(6px); }
.em-team .team-next { background: rgba(255, 250, 228, .45); border: 2px dashed rgba(0, 77, 61, .35); box-shadow: none; }
.em-team .next-media { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(0, 77, 61, .06) 0 12px, transparent 12px 24px); }
.em-team .next-plus { font-size: 64px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--tm-green-dark); color: var(--tm-yellow); box-shadow: 0 0 0 10px rgba(0, 122, 99, .15); }
.em-team .next-plus img { width: 52px; height: 60px; transform: none; }
.em-team .next-chips { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.em-team .next-chips span { font-size: .78rem; font-weight: 700; color: var(--tm-tg-strong); cursor: default; }
.em-team .next-chips span + span::before { content: "·"; margin-right: 6px; opacity: .6; }
.em-team .next-copy { color: var(--tm-ink-soft); margin-bottom: 18px; }
.em-team :focus-visible { outline: 3px solid var(--tm-ink); outline-offset: 3px; }
@media (max-width: 1099.98px) { .em-team .team { grid-template-columns: 1fr 1fr; } .em-team .team-next { grid-column: 1 / -1; } .em-team .team-next .team-media { aspect-ratio: 32 / 9; } }
@media (max-width: 699.98px) { .em-team .team, .em-team .team--two { grid-template-columns: 1fr; } .em-team .team-next .team-media { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) {
    .em-team *, .em-team *::before, .em-team *::after { animation: none !important; transition: none !important; }
    .em-team .team-media img, .em-team .team-card:hover .team-media img { transform: scale(1.35); }
}
.em-team .team-card--system .team-media img { transform: none; object-position: 72% 50%; }
.em-team .team-card--system:hover .team-media img { transform: scale(1.06); }

/* Home carousel (r4): one card per digital colleague, native scroll-snap row; team.js adds the arrow buttons' behaviour */
.em-team .team-car { position: relative; }
.em-team .team-car-nav { display: none; justify-content: flex-end; gap: 10px; margin: -8px 0 14px; }
.js .em-team .team-car-nav { display: flex; }
.em-team .team-car-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--tm-tg); background: #fff; color: var(--tm-tg); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.em-team .team-car-btn:hover:not(:disabled) { background: var(--tm-tg); color: #fff; }
.em-team .team-car-btn:disabled { opacity: .35; cursor: default; }
/* Bleeds to both viewport edges; the padding puts the first card on the content edge (same calc as the margin, so it is exact).
   scroll-padding cannot use that % (it resolves against the scrollport): CSS fallback here, team.js copies the real padding. */
#csapat { overflow-x: clip; }
.em-team .team-track { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge, 24px); overscroll-behavior-x: contain; margin: 0 calc(50% - 50vw) -38px; padding: 6px calc(50vw - 50%) 44px; scrollbar-width: none; }
.em-team .team-track::-webkit-scrollbar { display: none; }
.em-team .team-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (hover: hover) and (pointer: fine) { .em-team .team-track { cursor: grab; } }
.em-team .team-track:focus-visible { outline: 3px solid var(--tm-ink); outline-offset: 2px; }
.em-team .team-slide { flex: 0 0 clamp(260px, 80vw, 320px); min-width: 0; scroll-snap-align: start; display: flex; }
.em-team .team-slide .team-card { width: 100%; }
.em-team .team-mod { --tone: #E8573A; }
.em-team .tone-sales { --tone: #E8573A; } .em-team .tone-support { --tone: #2F8FD8; } .em-team .tone-mail { --tone: #F2C200; }
.em-team .tone-content { --tone: #7B5CD6; } .em-team .tone-admin { --tone: #5B6B7F; } .em-team .tone-ppc { --tone: #D63C8A; }
.em-team .tone-research { --tone: #1AA6B7; } .em-team .tone-strategy { --tone: #22356F; } .em-team .tone-creative { --tone: #F08A24; }
.em-team .tone-analytics { --tone: #3C5BD9; }
.em-team .mod-media { aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 70% 100%, rgba(255, 255, 255, .28), transparent 60%), linear-gradient(160deg, var(--tone), color-mix(in srgb, var(--tone) 70%, #000)); }
.em-team .mod-tag { position: absolute; left: -6%; right: -6%; top: 22%; text-align: center; font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: clamp(2.6rem, 14vw, 3.7rem); line-height: 1; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); user-select: none; pointer-events: none; }
.em-team .mod-emblem { position: absolute; top: 14px; left: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--tone); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.em-team .tone-mail .mod-emblem { color: #7a5f00; }
.em-team .mod-emblem .material-icons { font-size: 26px; }
.em-team .team-media img.mod-max { position: absolute; left: 50%; bottom: -34%; width: auto; height: 150%; max-width: none; object-fit: contain; object-position: bottom; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.em-team .team-card:hover .team-media img.mod-max { transform: translateX(-50%) scale(1.05); }
.em-team .team-mod .team-body { padding: 14px 18px 16px; }
.em-team .team-mod .team-name { font-size: 1.25rem; }
.em-team .team-mod .team-role { margin: 2px 0 8px; font-size: .95rem; }
.em-team .mod-pain { font-size: .92rem; font-weight: 700; line-height: 1.35; color: var(--tm-ink); margin: 4px 0 8px; }
.em-team .team-mod .tm-ticks { margin-bottom: 10px; }
.em-team .team-mod .tm-ticks li { font-size: .86rem; margin-bottom: 5px; line-height: 1.35; }
.em-team .team-slide .team-next { display: flex; }
.em-team .team-slide .team-next .team-media { aspect-ratio: 16 / 10; }
@media (prefers-reduced-motion: reduce) {
    .em-team .team-track { scroll-behavior: auto; }
    .em-team .team-card:hover .team-media img.mod-max { transform: translateX(-50%); }
}
/* r4 owner 2026-11-18: the whole carousel (header + cards) must fit well inside one 1366x768 screen; same width, lower cards.
   The "next colleague" card used to stretch every slide to 630px, it now follows the module card rhythm. */
#csapat.band { padding-top: clamp(56px, 8vh, 100px); padding-bottom: clamp(56px, 8vh, 100px); }
#csapat .section-lead { margin-bottom: 18px; }
.em-team .mod-media, .em-team .team-slide .team-next .team-media { aspect-ratio: 16 / 9; }
.em-team .team-slide .team-next .team-body { padding: 14px 18px 16px; }
.em-team .team-slide .team-next .team-name { font-size: 1.15rem; line-height: 1.25; }
.em-team .team-slide .team-next .team-role { margin: 2px 0 8px; font-size: .95rem; }
.em-team .team-slide .team-next .next-copy { font-size: .86rem; line-height: 1.4; margin-bottom: 10px; }
.em-team .team-slide .next-plus { font-size: 46px; width: 70px; height: 70px; box-shadow: 0 0 0 7px rgba(0, 122, 99, .18); }
@media (min-width: 768px) {
    .em-team .team-car-nav { position: absolute; right: 0; top: -62px; margin: 0; }
}
/* second pass: aim for ~600px from section top to card bottom on a 768px-high screen (fixed header + floating nav) */
#csapat.band { padding-top: clamp(40px, 6vh, 90px); }
#csapat .section-lead { margin-bottom: 14px; }
.em-team .mod-media, .em-team .team-slide .team-next .team-media { aspect-ratio: 2 / 1; }
.em-team .team-mod .team-body, .em-team .team-slide .team-next .team-body { padding: 12px 16px 14px; }
.em-team .team-mod .team-name { font-size: 1.3rem; }
.em-team .mod-pain { font-size: .88rem; margin: 2px 0 6px; }
.em-team .team-mod .tm-ticks li { font-size: .82rem; margin-bottom: 4px; line-height: 1.3; }
.em-team .team-mod .tm-ticks { margin-bottom: 8px; }
/* One background for every module card (owner 2026-11-18: no colour per module); the outlined module word behind Max
   and the emblem icon tell the modules apart */
.em-team [class*="tone-"] { --tone: #12372e; }
.em-team .mod-media { background: radial-gradient(85% 80% at 50% 100%, rgba(47, 211, 171, .34), transparent 66%), linear-gradient(160deg, #174a3b, #0a1f19); }
.em-team .mod-emblem, .em-team .tone-mail .mod-emblem { color: #007a63; }
.em-team .mod-tag { -webkit-text-stroke-color: rgba(255, 250, 228, .4); }
/* Max a bit lower and smaller so the helmet top stays inside the media area, also when the card zooms on hover */
.em-team .team-media img.mod-max { bottom: -38%; height: 130%; }
/* Module cards (owner 2026-11-18): the question is the main message, the module name follows smaller. The area word
   stays inside the card: one size for every card (fits the longest, "Ügyfélszolgálat"), bottom left of the media on a
   soft dark fade, filled so it reads over Max */
.em-team .mod-media { container-type: inline-size; }
.em-team .mod-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 1; background: linear-gradient(180deg, transparent, rgba(6, 22, 17, .85)); pointer-events: none; }
.em-team .mod-tag { left: 16px; right: 16px; top: auto; bottom: 12px; z-index: 2; text-align: left; font-size: 7.2cqw; letter-spacing: 0; color: rgba(255, 250, 228, .96); -webkit-text-stroke: 0; overflow: hidden; }
.em-team .mod-q { margin: 0 0 8px; font-weight: 800; font-size: clamp(1.08rem, .98rem + .3vw, 1.26rem); line-height: 1.28; color: var(--tm-ink); }
.em-team .mod-name { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-family: 'EazyMax Display', sans-serif; font-weight: 800; font-size: .98rem; line-height: 1.2; color: var(--tm-tg); }
.em-team .mod-name img { width: 18px; height: 21px; flex: 0 0 auto; }
/* Area word back behind Max (owner 2026-11-18): outlined as it was, but inside the card. Max stands right of centre and
   the word sits left of him (a long one wraps to two lines), so nothing bleeds out and it reads */
.em-team .mod-media::after { content: none; }
.em-team .team-media img.mod-max { left: 76%; }
.em-team .mod-tag { left: 7%; right: auto; top: 58%; bottom: auto; z-index: 0; width: 58%; transform: translateY(-50%); white-space: normal; overflow: visible; hyphens: manual; text-align: left; font-size: 6.6cqw; line-height: 1.08; color: transparent; -webkit-text-stroke: 1.4px rgba(255, 250, 228, .8); }
/* Outlined text drew the font's inner contours at this size (looked like a glow): filled instead, still behind Max */
.em-team .mod-tag { color: rgba(255, 250, 228, .9); -webkit-text-stroke: 0; }
/* Every question takes three lines of room, so names, ticks and CTAs line up from card to card */
.em-team .mod-q { min-height: calc(3 * 1.28em); }
/* "Ezt veszi át:" the business task the colleague takes over (owner 2026-11-19) */
.em-team .mod-job { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 122, 99, .1); font-weight: 700; font-size: .92rem; line-height: 1.35; color: var(--tm-ink); }
.em-team .mod-job-k { display: block; font-family: 'EazyMax Display', sans-serif; font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--tm-tg); }
/* keep the cards inside a laptop screen with the new task line: lower media strip, label inline */
.em-team .mod-media, .em-team .team-slide .team-next .team-media { aspect-ratio: 5 / 2; }
.em-team .mod-job-k { display: inline; margin-right: 4px; font-size: .66rem; }
.em-team .mod-job { padding: 7px 11px; margin-bottom: 8px; }
.em-team .tm-ticks li { margin-bottom: 4px; }
.em-team .mod-tag { top: auto; bottom: 12px; transform: none; }
/* The task list is the card's main list now: a little stronger than the old capability ticks */
.em-team .mod-tasks li { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.em-team .mod-media, .em-team .team-slide .team-next .team-media { aspect-ratio: 2 / 1; }
.em-team .team-mod ul.mod-tasks li { font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
