/* v4 (2026-11-23): Bálint's 20 Nov review on top of v3. Loaded after v3.css. Scoped to .d3 like v3, so ?classic stays v2. */

/* ---------- shared bits ---------- */
.d3 .v4-kicker { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.d3 .dark .v4-kicker { color: var(--yellow); }
.d3 .v4-chart-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.2; color: var(--navy); }
.d3 .v4-chart-title::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow); }
.d3 :is(.v4-open-body, .v4-five-item, .v4-claim, .v4-intro, .v4-job-sec, .case-text) strong { font-weight: 800; color: var(--navy); }
.d3 .dark strong { color: inherit; }

/* ---------- rows, all open (DT, AI agents) ---------- */
.d3 .v4-open-list { border-top: 1px solid var(--grey-tint); }
.d3 .v4-open-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 18px clamp(28px, 4vw, 64px); padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--grey-tint); }
.d3 .v4-open-head { display: flex; align-items: flex-start; gap: 14px; }
.d3 .v4-open-head h3 { margin: 4px 0 0; font-size: clamp(1.35rem, 1.05rem + 0.8vw, 1.85rem); line-height: 1.1; color: var(--navy); }
.d3 .v4-open-body > p:first-child { margin-top: 0; font-size: 1.125rem; line-height: 1.55; color: var(--ink); }
.d3 .v4-open-body p { max-width: 64ch; color: var(--ink-soft); }
.d3 .v4-open-body .areas { margin: 14px 0 0; }
.d3 .v4-open-body .facts { margin-top: 18px; }
.d3 .v4-chart { grid-column: 1 / -1; margin-top: 8px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius); background: var(--off); }
/* the v3 row icon draws when a row opens; open rows show it drawn */
.d3 .v4-open .v3-ico svg *, .d3 .v4-five .v3-ico svg * { stroke-dashoffset: 0 !important; }
.m3 .v4-open-item { animation: v4-rise both linear; animation-timeline: view(); animation-range: entry 0% entry 60%; }
@keyframes v4-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .d3 .v4-open-item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- AI: "Be the 5%" on the left, the ecosystem on the right ---------- */
.d3 .v4-st .st-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: none; align-items: center; row-gap: 48px; }
.d3 .v4-st :is(.st-main, .st-side) { display: block; }
.d3 .v4-st .v4-st-claim { margin: 0 0 26px; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); }
.d3 .v4-st .st-fig { max-width: 420px; margin: 0 0 24px; }
.d3 .v4-st .v4-st-text { margin: 0; max-width: 34ch; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.35; color: var(--ink); }
.d3 .v4-st .v4-st-text strong { font-family: var(--font-display); font-size: 1.35em; color: var(--navy); }
.d3 .v4-st .v4-st-sub { margin: 18px 0 0; max-width: 40ch; font-size: 1.0625rem; color: var(--ink-soft); }
.d3 .v4-st .st-source { margin: 14px 0 0; font-size: 0.875rem; }
.d3 .v4-st .v4-st-side { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius); background: var(--navy); color: var(--on-dark); }
.d3 .v4-st .v4-st-side .v4-chart-title { color: var(--white); }
.d3 .v4-st .v4-st-side .v4-st-note { color: var(--on-dark-soft); }
.d3 .v4-st .v4-st-note { margin: 16px 0 0; font-size: 0.9375rem; color: var(--ink-soft); }
.d3 .eco-hub-logo { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; }
@media (max-width: 1100px) { .d3 .v4-st .st-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- AI: five key services, governance in the centre ---------- */
.d3 .v4-five-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "a1 c a3" "a2 c a4"; gap: clamp(20px, 2vw, 28px); }
.d3 .v4-five-item { position: relative; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius); background: var(--off); }
.d3 .v4-five-item.a1 { grid-area: a1; } .d3 .v4-five-item.a2 { grid-area: a2; } .d3 .v4-five-item.a3 { grid-area: a3; } .d3 .v4-five-item.a4 { grid-area: a4; }
.d3 .v4-five-item.is-center { grid-area: c; align-self: center; background: var(--navy); color: var(--on-dark); }
.d3 .v4-five-item.is-center :is(h3, p, li, dt, dd, strong) { color: var(--on-dark); }
.d3 .v4-five-item.is-center .v4-kicker { color: var(--yellow); }
.d3 .v4-five-item.is-center .proof mark { background: var(--yellow); color: var(--navy); }
.d3 .v4-five-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.d3 .v4-five-n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--grey); }
.d3 .v4-five-item h3 { margin: 0 0 10px; font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.55rem); line-height: 1.12; color: var(--navy); }
.d3 .v4-five-item p { margin: 0 0 10px; font-size: 1rem; }
.d3 .v4-five-item .areas { margin: 8px 0 12px; font-size: 0.9375rem; }
.d3 .v4-five-item .mini-steps { margin: 8px 0 12px; padding-left: 1.2em; font-size: 0.9375rem; }
.d3 .v4-five-item .mini-steps li { margin-bottom: 6px; }
.d3 .v4-five-item .facts { margin: 10px 0; font-size: 0.9375rem; }
.d3 .v4-five-item .proof { margin: 10px 0 0; font-size: 0.9375rem; }
.d3 .v4-five-item [data-l]::before { display: none; }
@media (max-width: 1000px) {
  .d3 .v4-five-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a1 a2" "c c" "a3 a4"; }
}
@media (max-width: 680px) {
  .d3 .v4-five-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a1" "a2" "c" "a3" "a4"; }
}

/* ---------- Pay Transparency: two big messages ---------- */
.d3 .v4-claims { padding: var(--section) 0 0; }
.d3 .v4-claims-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.d3 .v4-claim { padding: clamp(28px, 3.2vw, 48px); border-radius: var(--radius-lg); background: var(--off); }
.d3 .v4-claim.alt { background: var(--navy); color: var(--on-dark); }
.d3 .v4-claim.alt :is(p, li, strong) { color: var(--on-dark); }
.d3 .v4-claim.alt .v4-kicker { color: var(--yellow); }
.d3 .v4-claim .v3-ico { margin-bottom: 18px; }
.d3 .v4-claim-t { margin: 0 0 18px; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.02; color: var(--navy); }
.d3 .v4-claim.alt .v4-claim-t { color: var(--white); }
.d3 .v4-claim-t em { font-style: normal; color: var(--blue); }
.d3 .v4-claim.alt .v4-claim-t em { color: var(--yellow); }
.d3 .v4-claim p { max-width: 52ch; font-size: 1.0625rem; }
@media (max-width: 860px) { .d3 .v4-claims-grid { grid-template-columns: minmax(0, 1fr); } }

.d3 .v4-promo { padding: clamp(32px, 4vw, 56px) 0 0; }
.d3 .v4-promo-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding: clamp(22px, 2.4vw, 32px) clamp(24px, 3vw, 44px); border-radius: var(--radius); background: var(--blue-tint); color: var(--navy); text-decoration: none; transition: background-color 0.25s; }
.d3 .v4-promo-card:hover { background: var(--yellow-tint); color: var(--navy); }
.d3 .v4-promo-mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
.d3 .v4-promo-t { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.8rem); line-height: 1.1; }
.d3 .v4-promo-d { display: block; margin-top: 6px; color: var(--ink-soft); }
.d3 .v4-promo-go { font-weight: 800; white-space: nowrap; }
@media (max-width: 680px) { .d3 .v4-promo-card { grid-template-columns: auto minmax(0, 1fr); } .d3 .v4-promo-go { grid-column: 1 / -1; } }

/* ---------- Careers ---------- */
.d3 .v4-apply { padding: clamp(40px, 5vw, 64px) 0 0; }
.d3 .v4-apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(28px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px); border-radius: var(--radius); background: var(--yellow-tint); }
.d3 .v4-apply-t { margin: 0 0 8px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--navy); }
.d3 .v4-apply p { margin: 0; }
.d3 .v4-reveal-btn { display: inline-flex; align-items: center; padding: 15px 30px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 800; text-decoration: none; }
.d3 .v4-apply-act a { display: inline-flex; padding: 15px 30px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 800; text-decoration: none; }
@media (max-width: 680px) { .d3 .v4-apply-grid { grid-template-columns: minmax(0, 1fr); } }
.d3 .v4-job-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(28px, 4vw, 56px); }
.d3 .v4-job-sec h4 { margin: 18px 0 6px; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.d3 .v4-job-sec p { margin: 0 0 8px; }
.d3 .v4-job-sec .areas { margin-top: 4px; }
@media (max-width: 820px) { .d3 .v4-job-body { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About: text left, photos right ---------- */
.d3 .v4-intro { padding: var(--section) 0; }
.d3 .v4-intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.d3 .v4-intro-sec + .v4-intro-sec { margin-top: clamp(36px, 4vw, 56px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--grey-tint); }
.d3 .v4-intro-h { margin: 0 0 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); color: var(--navy); }
.d3 .v4-statement { margin: 0 0 16px; padding: 18px 22px; border-radius: 16px; background: var(--blue-tint); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.4; color: var(--navy); }
.d3 .v4-intro-sec > p { color: var(--ink-soft); max-width: 60ch; }
.d3 .v4-bul { margin: 0; padding: 0; list-style: none; }
.d3 .v4-bul li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--grey-tint); color: var(--ink-soft); }
.d3 .v4-bul li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }
.d3 .v4-intro-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.d3 .v4-intro-pgrid .v3-photo { margin: 0; }
.d3 .v4-intro-pgrid .v3-photo.big { grid-column: 1 / -1; }
.d3 .v4-intro-pgrid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.d3 .v4-intro-pgrid figcaption { margin-top: 6px; font-size: 0.875rem; color: var(--ink-soft); }
.d3 .v4-intro-photos > p { margin-top: 16px; color: var(--ink-soft); }
@media (max-width: 900px) { .d3 .v4-intro-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hospitality: calculator call to action ---------- */
.d3 .v4-callout { padding: clamp(40px, 5vw, 64px) 0 0; }
.d3 .v4-callout-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(28px, 4vw, 64px); padding: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 48px); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); }
.d3 .v4-callout .v4-kicker { color: var(--yellow); }
.d3 .v4-callout-t { margin: 0 0 10px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); color: var(--white); }
.d3 .v4-callout-t em { font-style: normal; color: var(--yellow); }
.d3 .v4-callout p { margin: 0; color: var(--on-dark); max-width: 56ch; }
@media (max-width: 680px) { .d3 .v4-callout-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reference cards: logo + one key result ---------- */
.d3 .case-result { margin: 10px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.25; color: var(--blue); }
.d3 .case-result strong { color: var(--navy); font-weight: 700; }
.d3 .case-word { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--navy); opacity: 0.75; }
/* home: logo | client and project | key result (the long text is left for the References page) */
.d3 .v2-work .case { grid-template-columns: 150px minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.d3 .v2-work .case .case-mark { display: flex; align-items: center; min-height: 52px; }
.d3 .v2-work .case .case-mark img { max-width: 132px; height: auto; max-height: 48px; object-fit: contain; }
.d3 .v2-work .case.has-result .case-text { display: none; }
.d3 .v2-work .case-result { margin: 0; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }
@media (max-width: 760px) { .d3 .v2-work .case { grid-template-columns: 1fr; } }

/* ---------- home: a service name on each "in numbers" card ---------- */
.d3 .v4-stat-k { margin: 0 0 14px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { .m3 .v4-open-item { animation: none; } }

/* ecosystem hub (built by motion-v3.js): the SCT logo above the hub text */
.d3 .eco3-hub .eco3-logo { display: block; width: 104px; height: auto; margin: 0 auto 6px; }

/* five steps (AI agents) sit in one row on wide screens instead of 4 + 1 */
@media (min-width: 1100px) { .d3 .steps .phases:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* v4 sections get the same side gutter as the other inner-page sections */
.d3 :is(.v4-claims, .v4-promo, .v4-apply, .v4-intro, .v4-callout) { padding-inline: var(--gutter); }

/* ---------- v4b (Neo's feedback, 2026-11-23) ---------- */
/* home hero: both buttons the same size */
.d3 .v2-hero .btns .btn { min-width: 240px; justify-content: center; }
/* accent words in the big v4 titles: colour only, no highlighter underline */
.d3 :is(.v4-claim-t, .v4-callout-t) em { background: none; padding: 0; margin: 0; font-weight: inherit; }
/* JUNO link card: the arrow stays on the same line */
.d3 .v4-promo-go { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* AI strip: five steps; the AI agents link under "Automate" */
.d3 .statement .st-list:has(> li:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .d3 .statement .st-list:has(> li:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .d3 .statement .st-list:has(> li:nth-child(5)) { grid-template-columns: minmax(0, 1fr); } }
.d3 .statement .st-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 0.875rem; font-weight: 800; text-decoration: none; }
.d3 .statement .st-more:hover { background: var(--blue); color: var(--white); }
/* Hospitality: the calculator's own header is the navy card at the top */
.d3 .v4-calc-top { padding-top: clamp(40px, 5vw, 64px); padding-inline: var(--gutter); }
.d3 .v4-calc-top > .wrap.narrow { margin-top: 24px; }
.d3 .v4-calc-top .v4-calc-head { padding-inline: clamp(24px, 3vw, 48px); }
.d3 .v4-calc-top .v4-calc-act:empty { display: none; }
.d3 .v4-calc-head { background: var(--navy); color: var(--on-dark); }
.d3 .v4-calc-head .v4-kicker { color: var(--yellow); }
.d3 .v4-calc-head p { margin: 0; color: var(--on-dark); max-width: 56ch; }

/* ---------- v4c: AI page in the v3 look, Bálint's order (2026-11-23) ---------- */
/* "Be the 5%" is the headline beside the squares; the 95% fact sits under it, smaller */
.d3 .v4-lead5 .st-grid { grid-template-areas: "fig claim" "fig text" "fig sub" "fig src"; grid-template-rows: auto auto auto 1fr; align-items: start; }
.d3 .v4-lead5 .st-fig { grid-row: 1 / -1; }
.d3 .v4-lead5 .st-claim { grid-area: claim; margin: 0 0 22px; font-size: clamp(2.8rem, 1.6rem + 3.6vw, 5.2rem); }
.d3 .v4-lead5 .v4-l5-text { grid-area: text; margin: 0; max-width: 32ch; font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem); line-height: 1.3; color: var(--ink); }
.d3 .v4-lead5 .v4-l5-text strong { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.d3 .v4-lead5 .v4-l5-sub { grid-area: sub; margin: 16px 0 0; max-width: 44ch; font-size: 1.0625rem; color: var(--ink-soft); }
.d3 .v4-lead5 .st-source { grid-area: src; margin: 18px 0 0; font-size: 0.875rem; }
@media (max-width: 820px) {
  .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fig" "claim" "text" "sub" "src"; grid-template-rows: none; }
  .d3 .v4-lead5 .st-fig { grid-row: auto; }
}

/* the five key services as one ruled strip, AI governance in the middle */
.d3 .v4-index { padding: var(--section) var(--gutter) 0; }
.d3 .v4-index > .wrap { padding-inline: 0; }
.d3 .v4-index-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px); row-gap: 36px; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; list-style: none; }
.d3 .v4-index-list li { position: relative; padding: 16px 12px 0 0; border-top: 3px solid var(--navy); }
.d3 .v4-index-list li.is-center { border-top: 6px solid var(--yellow); padding-top: 13px; }
.d3 .v4-index-k { margin: 0 0 14px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.d3 .v4-index-list li.is-center .v4-index-k { color: var(--blue); }
.d3 .v4-index-list a { padding-right: 18px; }
.d3 .v4-index-list a strong { display: block; margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); line-height: 1.12; color: var(--navy); }
.d3 .v4-index-list a span { display: block; margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.d3 .v4-index-list a .st-go { position: absolute; top: 6px; right: 4px; }
.d3 .v4-index .v3-ico svg * { stroke-dashoffset: 0 !important; }
.d3 .v4-index .st-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 0.875rem; font-weight: 800; text-decoration: none; }
.d3 .v4-index .st-more:hover { background: var(--blue); color: var(--white); }
@media (max-width: 1000px) { .d3 .v4-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .d3 .v4-index-list { grid-template-columns: minmax(0, 1fr); } }
.d3 .v4-index-list li::before { content: none; }
.d3 .v4-index-ico { width: 48px; height: 48px; border-radius: 15px; background: var(--blue-tint); color: var(--navy); transition: background-color 0.3s var(--ease); }
.d3 .v4-index-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d3 .v4-index-list a:hover .v4-index-ico { background: var(--yellow-tint); }
.d3 .v4-index-list li.is-center .v4-index-ico { background: var(--yellow); }

/* v4c (Neo): strip centred, larger icons, no extra button */
.d3 .v4-index-list li { padding: 18px 0 0; text-align: center; }
.d3 .v4-index-list li.is-center { padding-top: 15px; }
.d3 .v4-index-list a { display: flex; flex-direction: column; align-items: center; padding: 0 6px 34px; }
.d3 .v4-index-ico { width: 76px; height: 76px; border-radius: 22px; }
.d3 .v4-index-ico svg { width: 38px; height: 38px; }
.d3 .v4-index-list a strong { margin-top: 18px; }
.d3 .v4-index-list a span { max-width: 26ch; }
.d3 .v4-index-list a .st-go { top: auto; right: auto; bottom: 8px; left: calc(50% - 5px); }
.d3 .v4-index-list a:hover .st-go { translate: 0 3px; }
.d3 .v4-index-list li { display: block; } /* v2 makes .st-list li a grid, which stretched the label rows unevenly */
/* the "a span" text rule also hit the icon tile; give the tile back its centring, and make it larger */
.d3 .v4-index-list a .v4-index-ico { display: grid; place-items: center; width: 96px; height: 96px; margin: 0; max-width: none; border-radius: 26px; }
.d3 .v4-index-list a .v4-index-ico svg { width: 50px; height: 50px; stroke-width: 1.6; }

/* ---------- v4d: Neo's review, 2026-11-24 ---------- */
/* ecosystem hub: the SCT circles (no white wordmark), larger */
.d3 .eco3-hub .eco3-logo { width: clamp(132px, 62%, 168px); margin: 0 auto 12px; }

/* AI: the 5% block and the key-services strip start on the same line as the hero text and the sections below */
.d3 section.statement.dark > .wrap, .d3 .v4-index > .wrap { padding-inline: var(--gutter); }
.d3 .v4-lead5 .st-grid { column-gap: clamp(40px, 7vw, 120px); }

/* AI key services: icon, title and text sit on shared rows, so the short texts start at the same height across all five */
@media (min-width: 1001px) {
  .d3 .v4-index-list { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .d3 .v4-index-list li { display: grid; grid-row: span 4; grid-template-rows: subgrid; justify-items: center; }
  .d3 .v4-index-list li > .v4-index-k { grid-row: 1; }
  .d3 .v4-index-list a { display: grid; grid-row: 2 / span 3; grid-template-rows: subgrid; justify-items: center; align-items: start; align-content: start; }
  .d3 .v4-index-list a strong { align-self: start; }
}

/* About: a calmer intro. More room under the hero, the text column and a smaller photo column centred as one block */
.d3 .v4-intro { padding-top: clamp(72px, 8vw, 128px); }
.d3 .v4-intro-grid { grid-template-columns: minmax(0, 620px) minmax(0, 440px); justify-content: center; column-gap: clamp(48px, 7vw, 112px); }
.d3 .v4-intro-sec + .v4-intro-sec { margin-top: clamp(48px, 5vw, 72px); padding-top: clamp(40px, 4vw, 56px); }
.d3 .v4-intro-h { margin-bottom: 20px; }
.d3 .v4-statement { padding: 22px 26px; margin-bottom: 24px; }
.d3 .v4-intro-pgrid { gap: 12px; }
.d3 .v4-intro-pgrid img { border-radius: 16px; }
.d3 .v4-intro-photos > p { font-size: 0.9375rem; }
@media (max-width: 900px) { .d3 .v4-intro-grid { grid-template-columns: minmax(0, 1fr); justify-content: stretch; } .d3 .v4-intro-photos { max-width: 560px; } }

/* About: the partners on a light background, centred like the home page */
.d3 section.about:not(.dark) .section-title { text-align: center; margin-inline: auto; }
.d3 section.about:not(.dark) .team { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; column-gap: clamp(32px, 5vw, 72px); }
.d3 section.about:not(.dark) .person { text-align: center; }
.d3 section.about:not(.dark) .person .links { justify-content: center; }
@media (max-width: 760px) { .d3 section.about:not(.dark) .team { grid-template-columns: minmax(0, 340px); } }
/* v4d-2 (Neo): logo and text sit together in the middle of the hub, with a small gap */
.d3 .eco3-hub { align-content: center; justify-items: center; row-gap: 10px; }
.d3 .eco3-hub .eco3-logo { margin: 0 auto; }
/* About: photos back to a generous size; the two columns share the width evenly, centred */
.d3 .v4-intro-grid { grid-template-columns: minmax(0, 600px) minmax(0, 600px); column-gap: clamp(48px, 6vw, 96px); }
.d3 .v4-intro-pgrid { gap: 14px; }
/* v4d-3: logos sized by eye, so each reads at a similar weight (a tall wordmark like aims looks far bigger at the same height) */
.d3 :is(.marquee, .v2-partners) img[src$="/aims.svg"] { height: 26px; }
.d3 :is(.marquee, .v2-partners) img[src$="/zel.svg"] { height: 40px; max-width: 210px; }
.d3 :is(.marquee, .v2-partners) img[src$="/hiflylabs.svg"] { height: 32px; }
.d3 :is(.marquee, .v2-partners) img[src$="/alysian.png"] { height: 40px; }
.d3 :is(.marquee, .v2-partners) img[src$="/49x.png"] { height: 38px; }
.d3 :is(.marquee, .v2-partners) img[src$="/brenntag.svg"] { height: 28px; }
.d3 :is(.marquee, .v2-partners) img[src$="/friday.svg"] { height: 16px; max-width: 220px; }
.d3 :is(.marquee, .v2-partners) img[src$="/lng-canada.png"] { height: 34px; }
/* v4e: chart titles also sit in the navy diagram blocks */
.d3 .dark .v4-chart-title { color: var(--white); }
.d3 .dg-block .v4-chart-title { margin-top: clamp(8px, 1vw, 16px); }
/* v4e (Neo): Careers ends on the job list, so it needs room before the navy footer */
.d3 .v4-jobs { padding-bottom: clamp(88px, 10vw, 144px); }

/* ---------- v4f: About intro, Bálint's structure with more presence (Neo, 2026-11-24) ---------- */
.d3 .v4-intro-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-width: 1280px; margin-inline: auto; column-gap: clamp(48px, 6vw, 104px); }
/* who we are: one large statement, the key phrase in blue on a soft blue marker */
.d3 .v4-who-k { margin: 0 0 18px; font-family: var(--font); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.d3 .v4-who-s { margin: 0; max-width: 24ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--navy); }
.d3 .v4-who-s strong { color: var(--blue); font-weight: 700; background: linear-gradient(transparent 62%, var(--blue-tint) 62%, var(--blue-tint) 92%, transparent 92%); padding: 0 0.08em; }
/* social capital and tech: one bold line, then the two halves as cards, then the values */
.d3 .v4-intro-sec + .v4-intro-sec { margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(44px, 5vw, 64px); }
.d3 .v4-sct-lead { margin: 0 0 26px; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); line-height: 1.3; color: var(--ink-soft); }
.d3 .v4-sct-lead strong { color: var(--navy); }
.d3 .v4-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.d3 .v4-pair-i { padding: 24px 24px 26px; border-radius: 22px; background: var(--off); }
.d3 .v4-pair-i.p1 { background: var(--blue-tint); }
.d3 .v4-pair-dot { display: block; width: 30px; height: 30px; margin-bottom: 16px; border-radius: 50%; background: var(--yellow); }
.d3 .v4-pair-i.p1 .v4-pair-dot { background: var(--blue); }
.d3 .v4-pair-i h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.1; color: var(--navy); }
.d3 .v4-pair-i p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.d3 .v4-vals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 0; padding: 0; list-style: none; }
.d3 .v4-vals li { position: relative; padding-left: 24px; color: var(--ink-soft); line-height: 1.5; }
.d3 .v4-vals li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }
.d3 .v4-vals strong { display: block; color: var(--navy); }
/* photos stay in view while the text column scrolls past */
.d3 .v4-intro-photos { position: sticky; top: 104px; }
@media (max-width: 900px) { .d3 .v4-intro-grid { grid-template-columns: minmax(0, 1fr); } .d3 .v4-intro-photos { position: static; } }
@media (max-width: 600px) { .d3 .v4-pair, .d3 .v4-vals { grid-template-columns: minmax(0, 1fr); } }
/* v4f-2 (Neo: "looks bad"): the statement as a blue card, white text, the key phrase in yellow; smaller type.
   (The grey came from the older ".v4-intro-sec > p" rule, which out-ranked the statement's colour.) */
.d3 .v4-intro-sec > p.v4-who-s { max-width: none; margin: 0; padding: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 44px); border-radius: var(--radius); background: var(--blue); color: var(--white); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem); line-height: 1.32; letter-spacing: -0.01em; }
.d3 .v4-intro-sec > p.v4-who-s strong { background: none; padding: 0; color: var(--yellow); }
.d3 .v4-who-k { margin-bottom: 14px; }
/* v4f-3 (Neo): the photos no longer follow the scroll; the photo column is as tall as the text column, the large photo fills the extra height */
.d3 .v4-intro-grid { align-items: stretch; }
.d3 .v4-intro-photos { position: static; display: flex; flex-direction: column; }
.d3 .v4-intro-pgrid { flex: 1; grid-template-rows: minmax(0, 1fr) auto; }
.d3 .v4-intro-pgrid .v3-photo.big { display: flex; flex-direction: column; min-height: 0; }
.d3 .v4-intro-pgrid .v3-photo.big img { flex: 1; min-height: 300px; height: 100%; aspect-ratio: auto; object-position: 50% 40%; }
@media (max-width: 900px) { .d3 .v4-intro-pgrid .v3-photo.big img { flex: none; aspect-ratio: 4 / 3; height: auto; min-height: 0; } }

/* v4g (Neo, 2026-11-25): "See our AI agents ↓" on the right of the 5% block, pointing to the ecosystem below. Text and a yellow arrow, not a button */
.d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; grid-template-areas: "fig claim go" "fig text go" "fig sub go" "fig src go"; }
.d3 .v4-l5-go { grid-area: go; align-self: center; justify-self: end; display: inline-flex; align-items: center; gap: 14px; margin-left: clamp(16px, 2vw, 32px); font-weight: 800; font-size: 1.125rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.d3 .v4-l5-go i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-style: normal; font-size: 1.2rem; transition: translate 0.3s var(--ease); }
.d3 .v4-l5-go:hover { color: var(--blue); }
.d3 .v4-l5-go:hover i { translate: 0 4px; }
@media (max-width: 1100px) {
  .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "fig claim" "fig text" "fig sub" "fig src" "fig go"; }
  .d3 .v4-l5-go { justify-self: start; margin: 22px 0 0; }
}
@media (max-width: 820px) { .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fig" "claim" "text" "sub" "src" "go"; } }
/* v4g fixes: the section is .dark, whose link colour is white; give the claim column more room so "Be the 5%." stays on one line */
.d3 .statement.dark .v4-l5-go { color: var(--navy); }
.d3 .statement.dark .v4-l5-go:hover { color: var(--blue); }
@media (min-width: 1101px) { .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; } }
/* v4g-2 (Neo): the pointer is the navy pill from the mockups (M3) with the arrow pointing down, and the three parts sit closer together */
.d3 .statement.dark .v4-l5-go { gap: 14px; margin: 0; padding: 14px 16px 14px 26px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 1.0625rem; }
.d3 .statement.dark .v4-l5-go:hover { background: var(--blue); color: var(--white); }
.d3 .v4-l5-go i { width: 36px; height: 36px; font-size: 1.05rem; }
@media (min-width: 1101px) {
  .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 440px) minmax(0, 460px) auto; justify-content: center; column-gap: clamp(40px, 4vw, 64px); }
  .d3 .v4-lead5 .st-fig { width: 100%; max-width: 440px; }
  .d3 .v4-l5-go { justify-self: start; }
}
/* v4g-3 (Neo): the squares sit in a soft frame as tall as the text, so the block has the same weight as the text beside it;
   the pill lines up with the bottom of the block; less empty space before the ecosystem */
.d3 section.statement.dark.v4-lead5 { padding-bottom: clamp(32px, 4vw, 56px); }
.d3 .v4-lead5 .st-grid { grid-template-rows: auto auto auto auto; }
.d3 .v4-lead5 .st-fig { align-self: stretch; align-content: center; padding: clamp(24px, 2.6vw, 40px); border-radius: var(--radius); background: var(--off); }
.d3 .v4-lead5 .st-fig i { background: var(--grey-tint); }
.d3 .v4-lead5 .st-fig i.on { background: var(--blue); }
.m3 .v4-lead5 .st-fig:not(.in) i.on { background: var(--grey-tint); }
@media (min-width: 1101px) { .d3 .v4-l5-go { align-self: end; } }
.d3 .v4-lead5 + .dg-block { margin-top: clamp(24px, 3vw, 48px); }
/* v4g-4 (Neo): "See our AI agents" as a horizontal strip under the block, the full width of squares + text, leading into the ecosystem below */
@media (min-width: 1101px) {
  .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 440px) minmax(0, 520px); grid-template-areas: "fig claim" "fig text" "fig sub" "fig src" "go go"; }
  .d3 .v4-l5-go { align-self: auto; }
}
.d3 .statement.dark .v4-l5-go { grid-area: go; justify-self: stretch; justify-content: space-between; margin: clamp(28px, 3vw, 40px) 0 0; padding: 14px 16px 14px 30px; border-radius: 999px; }
@media (max-width: 1100px) { .d3 .v4-lead5 .st-grid { grid-template-areas: "fig claim" "fig text" "fig sub" "fig src" "go go"; } }
@media (max-width: 820px) { .d3 .v4-lead5 .st-grid { grid-template-areas: "fig" "claim" "text" "sub" "src" "go"; } }
/* the frame spans the four text rows only, not the strip row (v4c set it to 1 / -1) */
@media (min-width: 821px) { .d3 .v4-lead5 .st-fig { grid-row: 1 / 5; } }
/* v4g-5 (Neo): "See our AI agents" as a vertical strip on the right, as tall as the block; the text runs top to bottom, the arrow sits at the foot */
@media (min-width: 1101px) {
  .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 440px) minmax(0, 500px) 76px; grid-template-areas: "fig claim go" "fig text go" "fig sub go" "fig src go"; }
  .d3 .statement.dark .v4-l5-go { grid-row: 1 / 5; align-self: stretch; justify-self: stretch; flex-direction: column; justify-content: space-between; align-items: center; gap: 20px; margin: 0; padding: 28px 0 18px; border-radius: 999px; }
  .d3 .statement.dark .v4-l5-go span { writing-mode: vertical-rl; }
  .d3 .statement.dark .v4-l5-go i { flex: none; width: 40px; height: 40px; }
  .d3 .statement.dark .v4-l5-go:hover i { translate: 0 4px; }
}

/* v4i (Neo, 2026-11-25): reference cards, option K-B. The result line is fully blue, at the size of the client name shown when there is no logo */
.d3 .cases .case-result { margin: 10px 0 8px; font-size: 1.15rem; line-height: 1.35; color: var(--blue); }
.d3 .cases .case-result strong { color: var(--blue); }
.d3 .v2-work .case-result strong { color: var(--blue); }

/* v4i: the tall pill keeps its shape, but the label reads normally: two short lines at the top, a thin rule down to the arrow */
@media (min-width: 1101px) {
  .d3 .v4-lead5 .st-grid { grid-template-columns: minmax(0, 440px) minmax(0, 480px) 128px; }
  .d3 .statement.dark .v4-l5-go { padding: 30px 18px 18px; gap: 16px; border-radius: 36px; text-align: center; white-space: normal; line-height: 1.25; }
  .d3 .statement.dark .v4-l5-go span { writing-mode: horizontal-tb; max-width: 8ch; }
  .d3 .statement.dark .v4-l5-go::before { content: ""; order: 2; flex: 1; width: 2px; min-height: 24px; border-radius: 2px; background: rgba(245, 216, 95, 0.55); }
  .d3 .statement.dark .v4-l5-go i { order: 3; }
}

/* v4l (Neo, 2026-11-27): an opened job reads as one calm column (mockup J2). Every section keeps its heading
   and text; no rules between sections, one-column lists, small sky dots instead of amber diamonds. */
.d3 .v4-job-body { display: block; max-width: 70ch; padding-top: 8px; }
.d3 .v4-job-body > * { grid-column: auto; }
.d3 .v4-job-sec { display: block; padding: 0; border: 0; }
.d3 .v4-job-sec + .v4-job-sec { margin-top: 36px; }
.d3 .v4-job-sec h4 { margin: 0 0 12px; font-size: 1.05rem; }
.d3 .v4-job-sec > p { margin: 0 0 12px; }
.d3 .v4-job-sec > p:last-child { margin-bottom: 0; }
.d3 .v4-job-sec .areas { display: block; columns: auto; max-width: none; margin: 0; }
.d3 .v4-job-sec .areas li { margin-bottom: 8px; padding-left: 18px; line-height: 1.5; }
.d3 .v4-job-sec .areas li:last-child { margin-bottom: 0; }
.d3 .v4-job-sec .areas li::before { left: 2px; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); transform: none; }

/* v4m (Bálint's review, 2026-11-30): facts line = three points; the founders line below it in regular italic */
.v3-facts-note { display: none; }
.d3 .v3-facts-note { display: block; position: relative; z-index: 2; margin: 8px auto 0; max-width: 1040px; text-align: center; font-weight: 400; font-style: italic; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-soft); }
.m3-pre .v3-facts-note { visibility: hidden; }
/* v4m: AI key services, an italic audience line under each title (Bálint's review) */
.d3 .v4-index-list a .v4-index-aud { display: block; margin-top: 6px; font-style: italic; font-weight: 400; font-size: 0.9375rem; line-height: 1.4; color: var(--blue); }
.d3 .v4-index-list a span strong { display: inline; margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 800; color: var(--navy); }
/* row titles: a partner note such as "(with ZEL)" in small body type */
.d3 .acc-title .acc-tt { display: block; }
.d3 .acc-title .acc-note { display: block; margin-top: 6px; font-family: var(--font); font-size: 0.55em; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: var(--ink-soft); }
@media (min-width: 1001px) {
  /* one more shared row for the audience line: number, icon, title, audience, text */
  .d3 .v4-index-list { grid-template-rows: repeat(5, auto); }
  .d3 .v4-index-list li { grid-row: span 5; }
  .d3 .v4-index-list a { grid-row: 2 / span 4; }
}
/* v4m: the JUNO promo comes first on Pay Transparency and shows the JUNO mark in its circle */
.d3 .v4-promo:first-child, .d3 .page-hero + .v4-promo { padding-top: clamp(40px, 5vw, 72px); }
.d3 .v4-promo-mark.has-logo { background: var(--yellow); }
.d3 .v4-promo-mark.has-logo img { width: 52px; height: 52px; object-fit: contain; }
/* v4m: Digital Transformation rows read as separate blocks: a thicker navy rule and more air between services */
.d3 .v4-open-list { border-top: 2px solid var(--navy); }
.d3 .v4-open-item { padding: clamp(44px, 4.5vw, 68px) 0; border-bottom: 2px solid var(--navy); }
/* v4m (Bálint: "too small and slow, make them pop up"): once the 5% figure is in view, the five blue squares pop up
   big one after the other, then settle; the sequence repeats every few seconds so something keeps happening. */
@keyframes v4-pop { 0% { transform: scale(1); } 7% { transform: scale(2.4); box-shadow: 0 6px 16px rgba(0, 94, 138, 0.35); } 16% { transform: scale(1); box-shadow: none; } 100% { transform: scale(1); } }
.m3 .v4-lead5 .st-fig i.on { position: relative; z-index: 1; }
.m3 .v4-lead5 .st-fig.in i.on { animation: v4-pop 4.8s cubic-bezier(0.3, 0.7, 0.3, 1) infinite; animation-delay: calc(0.6s + var(--k) * 0.16s); }
/* the "See our AI agents" arrow nudges downward to invite a click */
@keyframes v4-nudge { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(7px); } }
.m3 .v4-l5-go i { animation: v4-nudge 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .m3 .v4-lead5 .st-fig.in i.on, .m3 .v4-l5-go i { animation: none; } }
/* v4m (Bálint: "everyone in the image"): the large About photo keeps its own 4:3 shape, so nobody is cut off at the
   sides; it no longer stretches to the text height. "Who we are" reads as a section title like "Social Capital and Tech". */
.d3 .v4-intro-pgrid { flex: none; grid-template-rows: auto; }
.d3 .v4-intro-pgrid .v3-photo.big img { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-position: 50% 50%; }
.d3 .v4-who-k { margin: 0 0 20px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; text-transform: none; color: var(--navy); }
/* v4m (Bálint): the pointer's line fills in thick yellow from the top, slides down into the arrow, and repeats.
   A thin track stays visible underneath; the arrow nudges when the fill arrives. */
@keyframes v4-flow {
  0%   { background-size: 6px 0%, 2px 100%; background-position: center 0%, center; }
  45%  { background-size: 6px 100%, 2px 100%; background-position: center 0%, center; }
  45.1% { background-position: center 100%, center; }
  85%, 100% { background-size: 6px 0%, 2px 100%; background-position: center 100%, center; }
}
.d3 .statement.dark .v4-l5-go::before { width: 6px; border-radius: 3px; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat center 0% / 6px 0%, linear-gradient(rgba(245, 216, 95, 0.4), rgba(245, 216, 95, 0.4)) no-repeat center / 2px 100%; }
.m3 .statement.dark .v4-l5-go::before { animation: v4-flow 2.4s cubic-bezier(0.55, 0, 0.35, 1) infinite; }
.m3 .v4-l5-go i { animation-duration: 2.4s; animation-delay: 0.9s; }
@media (prefers-reduced-motion: reduce) { .m3 .statement.dark .v4-l5-go::before { animation: none; background-size: 6px 100%, 2px 100%; } }
/* the arrow runs on the line's clock: it dips and lights up exactly when the yellow fill reaches it (45% of 2.4 s) */
@keyframes v4-nudge-sync {
  0%, 42% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(245, 216, 95, 0); }
  50% { transform: translateY(6px) scale(1.12); box-shadow: 0 0 0 8px rgba(245, 216, 95, 0.28); }
  64%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(245, 216, 95, 0); }
}
.m3 .statement.dark .v4-l5-go i { animation: v4-nudge-sync 2.4s linear infinite; animation-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .m3 .statement.dark .v4-l5-go i { animation: none; } }
/* v4m (Neo): read order = the five squares first, then the pointer. The squares run a 4.8 s loop that starts when the
   figure comes into view (first pop at 0.6 s, the fifth settles at about 2.0 s). The line and the arrow share that
   4.8 s loop, start at 2.05 s and finish by about 4.2 s, so every round goes squares → line → arrow. Before the figure
   is in view only the thin track shows. */
@keyframes v4-flow-r {
  0%     { background-size: 6px 0%, 2px 100%; background-position: center 0%, center; }
  22.5%  { background-size: 6px 100%, 2px 100%; background-position: center 0%, center; }
  22.55% { background-position: center 100%, center; }
  42.5%, 100% { background-size: 6px 0%, 2px 100%; background-position: center 100%, center; }
}
@keyframes v4-nudge-r {
  0%, 21% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(245, 216, 95, 0); }
  25%     { transform: translateY(6px) scale(1.12); box-shadow: 0 0 0 8px rgba(245, 216, 95, 0.28); }
  32%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(245, 216, 95, 0); }
}
.m3 .statement.dark.v4-lead5 .v4-l5-go::before, .m3 .statement.dark.v4-lead5 .v4-l5-go i { animation: none; }
.m3 .statement.dark.v4-lead5:has(.st-fig.in) .v4-l5-go::before { animation: v4-flow-r 4.8s cubic-bezier(0.55, 0, 0.35, 1) 2.05s infinite backwards; }
.m3 .statement.dark.v4-lead5:has(.st-fig.in) .v4-l5-go i { animation: v4-nudge-r 4.8s linear 2.05s infinite; }
@media (prefers-reduced-motion: reduce) { .m3 .statement.dark.v4-lead5:has(.st-fig.in) .v4-l5-go::before, .m3 .statement.dark.v4-lead5:has(.st-fig.in) .v4-l5-go i { animation: none; } }

/* v4o (1 Dec): reference cards are linkable (#case-<id>, cited from llms-full.txt); keep the card clear of the sticky header */
.case[id] { scroll-margin-top: 110px; }

/* v4o (1 Dec): header logo never squishes. Natural proportions always; on phones (<=520px) only the three circles show. */
.site-header .brand { flex-shrink: 0; }
.site-header .brand picture { display: block; }
.site-header .brand img { width: auto; max-width: none; object-fit: contain; }
@media (max-width: 520px) { .site-header .brand img { height: 32px; } }

/* v4o: 404 is a single dark card; keep it off the dark footer */
main > .page-hero.dark:only-child { margin-bottom: clamp(48px, 7vw, 104px); }

/* v4o (1 Dec): partner cards on phones: photo on top, then name, role, bio and links at full width (was photo left, text squeezed) */
@media (max-width: 560px) {
  .team .person, .v2 .team .person { display: flex; flex-direction: column; gap: 0; }
  .team .person img { width: 100%; aspect-ratio: 4 / 3; margin: 0 0 18px; grid-row: auto; }
  .team .person .links { grid-column: auto; flex-wrap: wrap; gap: 8px 24px; }
}

/* v4o (1 Dec): AI page, one-column layout: the 5% squares box spans the same width as the yellow hero card above it */
@media (max-width: 820px) {
  .d3 .v4-lead5 .st-fig { width: auto; max-width: none; margin-inline: -16px; }
}
@media (max-width: 640px) {
  .d3 .v4-lead5 .st-fig { margin-inline: -12px; }
}

/* v4o: long words (HU "bértranszparencia") break instead of pushing the page sideways on 320px phones */
h1, h2, h3, .v4-claim-t { overflow-wrap: break-word; hyphens: auto; }

/* v4o: 320px phones. AI page pill ("Tovább az AI agentjeinkhez ↓") may wrap; DT efficiency levers shrink with long HU words */
@media (max-width: 400px) {
  .d3 .statement.dark .v4-l5-go { white-space: normal; text-align: left; gap: 12px; padding-left: 22px; }
  .d3 .statement.dark .v4-l5-go span { min-width: 0; }
}
.dg-dt-eff .lv { min-width: 0; }
.dg-dt-eff .tx strong { overflow-wrap: break-word; hyphens: auto; }

/* v4o (1 Dec, Neo): About partner cards are centred at every width: photo, name, role, bio and links on one centre line.
   Up to 1000px the card stacks (no photo-left grid), photo capped so it does not grow huge on tablets. */
.about .team .person { text-align: center; }
.about .team .person .links { justify-content: center; }
@media (max-width: 1000px) {
  .about .team { justify-items: center; }
  .about .team .person { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; max-width: 420px; }
  .about .team .person img { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; margin: 0 0 18px; grid-row: auto; }
  .about .team .person > * { grid-column: auto; }
  .about .team .person .links { flex-wrap: wrap; gap: 8px 24px; }
}
