/* Agency block (#ugynokseg, r4 slice A). Reuses .band.dark, .wrap, .eyebrow, .section-* and the --dk-* / --em-yellow tokens from home.css. */
#ugynokseg { --ag-yellow: #fdd80d; }
.ag-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ag-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.ag-person { margin: 0; }
.ag-photo { position: relative; }
.poke { display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 1px solid rgba(255, 250, 228, .16); border-radius: 16px; background: #2a2d2c; overflow: hidden; cursor: pointer; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.poke img, .ag-fx { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.ag-fx { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .35s ease; pointer-events: none; filter: none; }
.ag-fx.is-on { opacity: 1; }
.poke:focus-visible { outline: 3px solid var(--em-yellow); outline-offset: 3px; }
.ag-bubble { position: absolute; left: 50%; top: 10px; z-index: 3; width: max-content; max-width: 92%; transform: translateX(-50%); padding: 9px 13px; border-radius: 14px; background: #fff; color: #10261f; font-weight: 700; font-size: .9rem; line-height: 1.3; text-align: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); pointer-events: none; }
.ag-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.ag-bubble[hidden] { display: none; }
.ag-person figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.ag-name { font-family: 'EazyMax Display', sans-serif; font-size: 1.2rem; font-weight: 800; color: #fff8dc; }
.ag-role { color: var(--em-yellow); font-weight: 700; font-size: .95rem; }
.ag-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ag-stats li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-stat-num { font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: clamp(1.1rem, .9rem + .7vw, 1.5rem); line-height: 1.1; color: var(--em-yellow); overflow-wrap: anywhere; }
.ag-stat-label { color: var(--dk-muted); font-size: .78rem; line-height: 1.3; }
.ph { display: inline-block; padding: 0 6px; border: 1px dashed currentColor; border-radius: 6px; font-size: .8em; }
.ag-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: var(--dk-muted); font-size: .95rem; }
.ag-hint .material-icons { font-size: 20px; color: var(--em-yellow); }
.ag-sub { margin: 56px 0 18px; font-family: 'EazyMax Display', sans-serif; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 800; color: #fff8dc; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ag-chips li { padding: 9px 16px; border: 1px solid var(--dk-line); border-radius: 999px; background: var(--dk-panel); color: var(--dk-text); font-weight: 600; font-size: .95rem; }
.ag-logos { display: grid; gap: 18px; }
.ag-mq { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ag-mq-list { flex: 0 0 auto; display: flex; align-items: center; gap: 56px; min-width: 100%; margin: 0; padding: 0 56px 0 0; list-style: none; justify-content: space-around; animation: agMarquee 80s linear infinite; }
.ag-mq-1 .ag-mq-list { animation-direction: reverse; }
.ag-mq-list li { flex: 0 0 auto; display: flex; align-items: center; }
.ag-mq-list img { display: block; height: 34px; width: auto; max-width: 130px; object-fit: contain; opacity: .8; transition: opacity .2s; }
.ag-mq-list img:hover { opacity: 1; }
.ag-mq:hover .ag-mq-list, .ag-mq:focus-within .ag-mq-list { animation-play-state: paused; }
@keyframes agMarquee { to { transform: translateX(-100%); } }

@media (max-width: 1023.98px) { .ag-people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 699.98px) {
    .ag-people { gap: 14px; }
        .ag-mq-list { gap: 36px; padding-right: 36px; }
    .ag-stats { gap: 6px; }
}
/* speech bubble sits at the top of the card while an effect plays */
@media (prefers-reduced-motion: reduce) {
    .ag-fx { transition: opacity .6s ease; }
    .ag-mq { display: block; -webkit-mask-image: none; mask-image: none; }
    .ag-logos { gap: 0; }
    .ag-mq-list { animation: none; flex-wrap: wrap; justify-content: flex-start; gap: 18px 34px; padding: 0; }
    .ag-mq-list[aria-hidden="true"] { display: none; }
    .ag-mq-1 .ag-mq-list { margin-top: 18px; }
}
/* Stats as a vertical list (number left, label right): three columns were too narrow in a 4-up card grid */
.ag-stats { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
.ag-stats li { flex-direction: row; align-items: baseline; gap: 10px; }
.ag-stat-num { flex: 0 0 5.2em; font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); overflow-wrap: normal; white-space: nowrap; }
.ag-stat-label { font-size: .82rem; }
/* Logo rows run wall to wall (edge fade included); the section clips the overflow */
#ugynokseg, #ugyfelek { overflow-x: clip; }
.ag-mq { margin-inline: calc(50% - 50vw); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@media (prefers-reduced-motion: reduce) { .ag-mq { margin-inline: 0; } }

/* Three service cards, each a miniature of the social.eazy.digital header: bg image, logo + mini nav, wordmark with a
   coloured "&", tagline, text, outlined button, fanned work tiles. Per-card colours via custom properties. */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ag-social {
    --sc-word: #7b4dff; --sc-amp: #8af270; --sc-tagc: #3fc6ff; --sc-navy: #0c0a24; --sc-img: url('../img/social/hero-bg.webp');
    position: relative; display: flex; flex-direction: column; min-height: 560px; border-radius: 22px; overflow: hidden; isolation: isolate;
    text-decoration: none; color: #fff; background: var(--sc-navy);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px color-mix(in srgb, var(--sc-word) 40%, transparent);
}
.svc-ppc { --sc-word: #3fc6ff; --sc-amp: #fdd80d; --sc-tagc: #fdd80d; --sc-navy: #04101f; --sc-img: url('../img/agency/ppc-bg.webp'); }
.svc-strat { --sc-word: #3fc6ff; --sc-amp: #fdd80d; --sc-tagc: #fdd80d; --sc-navy: #04101f; --sc-img: url('../img/agency/strat-bg.webp'); }
.ag-social:focus-visible { outline: 3px solid var(--sc-amp); outline-offset: 4px; }
.sc-bg {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, color-mix(in srgb, var(--sc-navy) 88%, transparent) 0%, color-mix(in srgb, var(--sc-navy) 62%, transparent) 52%, color-mix(in srgb, var(--sc-navy) 30%, transparent) 100%), var(--sc-img) center 70% / cover no-repeat;
    transform: scale(1.02); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), filter 1.4s;
}
.ag-social:hover .sc-bg, .ag-social:focus-visible .sc-bg { transform: scale(1.12); filter: brightness(1.15) saturate(1.15); }
.sc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px;
    background: rgba(3, 3, 12, .66); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(4px);
}
.sc-logo { height: 24px; width: auto; display: block; flex: 0 0 auto; }
.sc-nav { display: flex; gap: 14px; min-width: 0; font-family: 'Montserrat', 'Oxanium', sans-serif; font-weight: 800; font-size: .6rem; letter-spacing: .8px; text-transform: uppercase; color: #f1eefc; white-space: nowrap; overflow: hidden; }
.svc-social .sc-nav span:nth-child(n+3):not(:last-child) { display: none; }
.sc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 22px 8px; }
.sc-title {
    display: flex; flex-wrap: wrap; align-items: baseline; font-family: 'Montserrat', 'Oxanium', sans-serif; font-weight: 900; text-transform: uppercase;
    font-size: clamp(1.7rem, .9rem + 1.7vw, 2.6rem); line-height: .95; letter-spacing: -.5px; color: var(--sc-word);
    text-shadow: 0 0 26px color-mix(in srgb, var(--sc-word) 45%, transparent); overflow-wrap: anywhere;
}
.sc-amp { color: var(--sc-amp); margin: 0 .06em; text-shadow: 0 0 22px color-mix(in srgb, var(--sc-amp) 50%, transparent); }
.sc-w2 { flex-basis: 100%; }
.sc-tag { font-family: 'Montserrat', 'Oxanium', sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: 1.3px; text-transform: uppercase; color: var(--sc-tagc); }
.sc-text { font-size: .95rem; line-height: 1.5; color: #e9e6f7; }
.sc-cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .85);
    font-family: 'Montserrat', 'Oxanium', sans-serif; font-weight: 800; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: #fff;
    transition: background-color .25s, color .25s, border-color .25s;
}
.sc-cta .material-icons { font-size: 16px; transition: transform .25s; }
.ag-social:hover .sc-cta { background: var(--sc-amp); border-color: var(--sc-amp); color: #0c0a24; }
.ag-social:hover .sc-cta .material-icons { transform: translateX(3px); }
.sc-cases { position: relative; flex: 1 0 190px; margin-top: auto; }
.sc-case {
    position: absolute; display: block; width: 58%; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
    border: 3px solid rgba(255, 255, 255, .92); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.sc-case img { display: block; width: 100%; height: auto; }
.sc-case-1 { left: 2%; bottom: 26%; transform: rotate(-9deg); z-index: 1; }
.sc-case-2 { left: 21%; bottom: 8%; transform: rotate(3deg); z-index: 2; }
.sc-case-3 { right: 2%; bottom: 30%; transform: rotate(10deg); z-index: 1; }
.ag-social:hover .sc-case-1 { transform: rotate(-14deg) translate(-6%, -6%); }
.ag-social:hover .sc-case-2 { transform: rotate(0deg) translateY(-4%) scale(1.06); }
.ag-social:hover .sc-case-3 { transform: rotate(15deg) translate(6%, -8%); }
@media (max-width: 1099.98px) { .svc-grid { grid-template-columns: 1fr; max-width: 560px; } .ag-social { min-height: 520px; } }
@media (prefers-reduced-motion: reduce) {
    .sc-bg, .sc-case, .sc-cta, .sc-cta .material-icons { transition: none; }
    .ag-social:hover .sc-bg { transform: scale(1.02); filter: none; }
    .ag-social:hover .sc-case-1 { transform: rotate(-9deg); } .ag-social:hover .sc-case-2 { transform: rotate(3deg); } .ag-social:hover .sc-case-3 { transform: rotate(10deg); }
}

/* Pixel dino of eazy.digital as decoration (top right of the agency block): the ground runs, the dino jumps now and then */
.ag-wrap { position: relative; }
.ag-dino { position: absolute; right: 0; top: -10px; width: min(420px, 34%); height: 150px; pointer-events: none; opacity: .55; }
.ag-dino-rex { position: absolute; right: 18%; bottom: 10px; height: 132px; width: auto; animation: agDinoJump 6s ease-in-out infinite; }
.ag-dino-ground {
    position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: url('../img/social/dino-ground.svg') repeat-x 0 0 / 40px 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 85%, transparent);
    animation: agDinoRun 1.2s linear infinite;
}
@keyframes agDinoRun { to { background-position: 40px 0; } }
@keyframes agDinoJump { 0%, 82%, 100% { transform: translateY(0); } 88% { transform: translateY(-46px); } 94% { transform: translateY(-46px); } }
@media (max-width: 899.98px) { .ag-dino { display: none; } }
@media (prefers-reduced-motion: reduce) { .ag-dino-rex, .ag-dino-ground { animation: none; } }

/* Clients strip: its own band under the agency block */
.clients-band { padding: clamp(44px, 6vh, 72px) 0; background: #050c09; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--dk-text); }
.cl-title { margin: 0 0 22px; font-family: 'EazyMax Display', sans-serif; font-size: clamp(1.1rem, .95rem + .6vw, 1.45rem); font-weight: 800; color: #fff8dc; }
/* wordmark sized by the card width so the longest word ("AUTOMATIZÁCIÓ") stays on one line */
.ag-social { container-type: inline-size; }
@supports (width: 1cqw) {
    .sc-title { font-size: clamp(1.5rem, 10.5cqw, 2.7rem); overflow-wrap: normal; }
    .svc-strat .sc-title { font-size: clamp(1.3rem, 8.2cqw, 2.3rem); }
}
.ag-dino { top: 34px; }
.ag-dino { top: -4px; height: 124px; width: min(380px, 32%); opacity: .7; }
.ag-dino-rex { height: 104px; bottom: 12px; }
/* People less dominant (owner 2026-11-18): narrower row, square photos, compact caption. Photo and fx video share
   the same crop (cover + same object-position), so a clip still starts without a jump. */
.ag-people { max-width: 1000px; gap: 18px; margin-top: 30px; }
.poke { aspect-ratio: 1 / 1; border-radius: 14px; }
.poke img, .ag-fx { object-position: 50% 16%; }
.ag-person figcaption { padding-top: 10px; gap: 2px; }
.ag-name { font-size: 1.02rem; }
.ag-role { font-size: .82rem; }
.ag-stats { margin-top: 8px; gap: 3px; }
.ag-stat-num { font-size: clamp(.95rem, .85rem + .3vw, 1.12rem); flex-basis: 5em; }
.ag-stat-label { font-size: .76rem; }
@media (max-width: 1023.98px) { .ag-people { max-width: 620px; } }
/* Cards without the work tiles (owner 2026-11-18): shorter, the background artwork shows in the lower part, hover zoom stays */
.ag-social { min-height: 430px; }
.sc-bg {
    background: linear-gradient(180deg, color-mix(in srgb, var(--sc-navy) 92%, transparent) 0%, color-mix(in srgb, var(--sc-navy) 70%, transparent) 46%, color-mix(in srgb, var(--sc-navy) 12%, transparent) 100%), var(--sc-img) center 85% / cover no-repeat;
}
.sc-body { padding-bottom: 26px; }
@media (max-width: 1099.98px) { .ag-social { min-height: 400px; } }
.ag-dino { right: var(--edge); }
/* People as horizontal cards, 2 x 2 across the full content width (owner 2026-11-18: no empty space on the right).
   Photo left, name + role + stats right; the stats share one number column per card (subgrid), so labels line up. */
.ag-people { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.ag-person { position: relative; display: grid; grid-template-columns: clamp(150px, 12vw, 210px) minmax(0, 1fr); align-items: center; gap: clamp(18px, 2vw, 30px); padding: 14px; border: 1px solid var(--dk-line); border-radius: 18px; background: var(--dk-panel); }
.ag-person figcaption { padding: 0; gap: 3px; }
.ag-name { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }
.ag-role { font-size: .88rem; }
.ag-stats { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--dk-line); }
.ag-stats li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; gap: 0 16px; }
.ag-stat-num { flex: none; font-size: clamp(1rem, .85rem + .45vw, 1.3rem); }
.ag-stat-label { font-size: .84rem; }
/* the bubble may reach over the text column; the photo is narrow now */
.ag-bubble { left: 6px; transform: none; max-width: min(260px, calc(100vw - 60px)); }
.ag-bubble::after { left: 44px; transform: rotate(45deg); }
@media (max-width: 1099.98px) { .ag-people { grid-template-columns: minmax(0, 1fr); max-width: none; } }
@media (max-width: 599.98px) {
    .ag-person { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 12px; align-items: start; }
    .ag-stats { gap: 6px 12px; }
    .ag-stat-label { font-size: .78rem; }
}
/* Phone: name + role next to a small photo, the stats below across the whole card */
@media (max-width: 599.98px) {
    .ag-person { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "photo name" "photo role" "stats stats"; gap: 0 14px; align-items: start; }
    .ag-photo { grid-area: photo; }
    .ag-person figcaption { display: contents; }
    .ag-name { grid-area: name; align-self: end; }
    .ag-role { grid-area: role; align-self: start; margin-top: 3px; }
    .ag-stats { grid-area: stats; margin-top: 12px; }
}
/* "Ügyfelek" row: the label sits in the number column, the names read as text (owner 2026-11-19) */
.ag-clients .ag-stat-num { font-size: clamp(.82rem, .75rem + .25vw, 1rem); letter-spacing: .5px; }
.ag-clients .ag-stat-label { color: var(--dk-text); font-weight: 600; }
