/* ==========================================================================
   NMG Agency – main stylesheet (values taken from Figma "NMG · HiFi v1")
   ========================================================================== */

@font-face { font-family: "Butler"; src: url("../fonts/butler-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Butler"; src: url("../fonts/butler-medium.woff") format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Butler"; src: url("../fonts/butler-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--nmg-blue: #1600ff;          /* Main/Blue · Blue 500 */
	--nmg-blue-700: #0d0099;
	--nmg-blue-800: #090066;
	--nmg-blue-900: #040033;      /* Secondary/Black */
	--nmg-blue-50: #e8e5ff;
	--nmg-yellow: #e9ff00;
	--nmg-navy: #0f1645;
	--nmg-ink: #080b26;
	--nmg-body: #3c415f;
	--nmg-muted: #6b6f87;
	--nmg-soft: #bdc7ed;
	--nmg-cream: #fcfbf8;
	--nmg-offwhite: #fefefe;

	--nmg-serif: "Butler", "Playfair Display", Georgia, "Times New Roman", serif;
	--nmg-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--nmg-inter: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--nmg-gutter: clamp(20px, 6.667vw, 96px);
	--nmg-section-y: clamp(44px, 4.444vw, 64px);
	--nmg-fs-h1: clamp(40px, 5.42vw, 78px);
	--nmg-fs-h2: clamp(32px, 3.75vw, 54px);
	--nmg-fs-h3: clamp(24px, 2.08vw, 30px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; font-family: var(--nmg-sans); font-size: 16px; line-height: 1.25; color: var(--nmg-blue-900); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, fieldset, legend, figure { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--nmg-yellow); outline-offset: 3px; }
.nmg-section :focus-visible, .nmg-numbers :focus-visible { outline-color: var(--nmg-blue); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nmg-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--nmg-yellow); color: var(--nmg-blue-900); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.nmg-skip:focus { left: 8px; }

.nmg-container { width: 100%; max-width: calc(1248px + 2 * var(--nmg-gutter)); margin-inline: auto; padding-inline: var(--nmg-gutter); }
.nmg-section { padding-block: var(--nmg-section-y); }
.nmg-section--cream { background: var(--nmg-cream); }

/* ---------- Shared type ---------- */
.nmg-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.nmg-eyebrow { font-weight: 600; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nmg-blue); }
.nmg-h1 { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h1); line-height: 1.2; color: #fff; }
.nmg-h2 { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h2); line-height: 1.2; color: var(--nmg-navy); }
.nmg-h2--tight { line-height: 1.04; }
.nmg-w-820 { max-width: 820px; }
.nmg-w-760 { max-width: 760px; }
.nmg-lead { font-size: 16px; color: #000; }
.nmg-bar { display: block; height: 4px; background: var(--nmg-blue); flex: none; }
.nmg-bar--40 { width: 40px; }
.nmg-bar--48 { width: 48px; }
.nmg-bar--56 { width: 56px; }
.nmg-textlink { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-weight: 700; font-size: 16px; color: var(--nmg-ink); }
.nmg-textlink .nmg-arrow { font-weight: 600; font-size: 15px; color: var(--nmg-blue-900); transition: transform .2s; }
.nmg-textlink:hover .nmg-arrow { transform: translateX(4px); }
.nmg-textlink--indent { padding-inline: 30px; }

/* ---------- Buttons ---------- */
.nmg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 17px 30px; border-radius: 8px; border: 1px solid transparent; font-family: var(--nmg-sans); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s, opacity .2s; }
.nmg-btn--yellow { background: var(--nmg-yellow); border-color: var(--nmg-yellow); color: var(--nmg-blue-900); }
.nmg-btn--yellow:hover { background: #f3ff66; border-color: #f3ff66; }
.nmg-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.nmg-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.nmg-btn--outline-yellow { border: 3px solid var(--nmg-yellow); color: #fff; }
.nmg-btn--outline-yellow:hover { background: var(--nmg-yellow); color: var(--nmg-blue-900); }
.nmg-btn--outline-dark { border-color: var(--nmg-blue-900); color: var(--nmg-blue-900); }
.nmg-btn--outline-dark:hover { background: var(--nmg-blue-900); color: #fff; }
.nmg-btn--lg { font-size: 16px; padding: 17px 36px; }
.nmg-btn--bold { font-weight: 700; color: var(--nmg-ink); padding-inline: 40px; }
.nmg-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Button block styles (editor "Styles" panel) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 17px 30px; border-radius: 8px; border: 1px solid var(--nmg-yellow); background: var(--nmg-yellow); color: var(--nmg-blue-900); font-family: var(--nmg-sans); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.wp-block-button .wp-block-button__link:hover { background: #f3ff66; border-color: #f3ff66; color: var(--nmg-blue-900); }
.wp-block-button.is-style-nmg-outline-yellow .wp-block-button__link { background: transparent; border: 3px solid var(--nmg-yellow); color: #fff; }
.wp-block-button.is-style-nmg-outline-yellow .wp-block-button__link:hover { background: var(--nmg-yellow); color: var(--nmg-blue-900); }
.wp-block-button.is-style-nmg-ghost .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.wp-block-button.is-style-nmg-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.wp-block-button.is-style-nmg-outline-dark .wp-block-button__link { background: transparent; border-color: var(--nmg-blue-900); color: var(--nmg-blue-900); }
.wp-block-button.is-style-nmg-outline-dark .wp-block-button__link:hover { background: var(--nmg-blue-900); color: #fff; }
.is-style-nmg-textlink { margin-top: 32px; font-weight: 700; color: var(--nmg-ink); }
.is-style-nmg-textlink a { text-decoration: none; }
.is-style-nmg-textlink a:hover { text-decoration: underline; }
.nmg-work .is-style-nmg-textlink { padding-inline: 30px; }

/* ---------- Header ---------- */
.nmg-header { position: relative; z-index: 20; }
.nmg-header--hero { position: absolute; top: 0; left: 0; right: 0; }
.nmg-nav__list, .nmg-chips, .nmg-footer__links, .nmg-quiz__answers, .nmg-process__row { list-style: none; margin: 0; padding: 0; }
.nmg-header--bar { background: var(--nmg-blue-900); }
.nmg-navbar { display: flex; align-items: center; justify-content: space-between; padding-block: 40px; }
.nmg-brand img { width: 128px; height: 34px; }
.nmg-brand__text { font-family: var(--nmg-serif); font-weight: 600; font-size: 54px; line-height: 1.2; color: #fff; }
.nmg-nav { display: flex; align-items: center; gap: 36px; }
.nmg-nav__list { display: flex; align-items: center; gap: 36px; }
.nmg-nav__list a { font-weight: 500; font-size: 15px; color: #fff; position: relative; }
.nmg-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--nmg-yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nmg-nav__list a:hover::after, .nmg-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.nmg-burger { display: none; width: 44px; height: 44px; position: relative; }
.nmg-burger span:not(.screen-reader-text) { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nmg-burger span:nth-of-type(2) { top: 15px; } .nmg-burger span:nth-of-type(3) { top: 21px; } .nmg-burger span:nth-of-type(4) { top: 27px; }
.nmg-burger[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.nmg-burger[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.nmg-burger[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.nmg-intro { position: relative; isolation: isolate; overflow: hidden; background: #1600ff url("../img/hero-poster.jpg") center / cover no-repeat; color: #fff; padding-top: 164px; padding-bottom: 64px; }
.nmg-intro__media { position: absolute; inset: 0; z-index: -1; }
.nmg-intro__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.nmg-intro__media::after { content: ""; position: absolute; inset: 0; background: rgba(13, 0, 153, var(--nmg-tint, .3)); }
.nmg-intro .nmg-hero__title { text-shadow: 0 2px 24px rgba(4, 0, 51, .25); }
.nmg-intro p, .nmg-intro .nmg-hero__sub { text-shadow: 0 1px 14px rgba(4, 0, 51, .55), 0 0 2px rgba(4, 0, 51, .35); }
.nmg-hero, .nmg-hero .nmg-container { display: flex; flex-direction: column; gap: 32px; }
.nmg-hero__title { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h1); line-height: 1.2; }
.nmg-hero__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.nmg-hero__col { display: flex; flex-direction: column; gap: 20px; }
.nmg-hero__sub { font-family: var(--nmg-serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.nmg-hero__sub::after, .nmg-step::before, .nmg-numbers__col::before { content: ""; display: block; height: 4px; background: var(--nmg-blue); }
.nmg-hero__sub::after { width: 56px; margin-top: 20px; }
.nmg-step::before { width: 40px; }
.nmg-numbers__col::before { width: 48px; }
.nmg-hero__col p { max-width: 560px; }

/* ---------- Services ---------- */
.nmg-services { background: var(--nmg-offwhite); }
.nmg-services__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 20px 1px; }
.nmg-service { display: flex; flex-direction: column; gap: 18px; padding: 40px 36px; background: #fff; border-radius: 16px; box-shadow: 0 4px 4px rgba(0,0,0,.25); }
.nmg-service__num { font-family: var(--nmg-serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--nmg-blue); }
.nmg-service__title { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h3); line-height: 1.2; color: var(--nmg-navy); }
.nmg-service__text { flex: 1; color: var(--nmg-body); }
.nmg-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.nmg-chip, .nmg-chips li { margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--nmg-blue-50); font-weight: 600; font-size: 12px; color: rgba(15,22,69,.85); }

/* ---------- Case accordion ---------- */
.nmg-acc { display: flex; flex-direction: column; gap: 16px; }
.nmg-acc__heading { font: inherit; }
.nmg-acc__item.is-open { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.nmg-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px; border-radius: 12px; text-align: left; transition: background-color .2s; }
.nmg-row__title { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h3); line-height: 1.2; color: var(--nmg-blue-900); }
.nmg-row__right { display: flex; align-items: center; gap: 28px; flex: none; }
.nmg-row__meta { font-weight: 500; font-size: 14px; letter-spacing: 0.04em; color: var(--nmg-muted); text-transform: uppercase; white-space: pre; }
.nmg-row__cir { position: relative; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(15,22,69,.3); display: grid; place-items: center; flex: none; transition: background-color .2s, border-color .2s; }
.nmg-row__plus { font-size: 24px; line-height: 1; color: var(--nmg-navy); }
.nmg-row__minus { display: none; width: 6.3px; height: 1.5px; background: #fff; }
.nmg-row:hover { background: var(--nmg-blue-50); }
.nmg-row:hover .nmg-row__cir { background: rgba(26,20,31,.1); border-color: var(--nmg-blue-900); }
.nmg-row:hover .nmg-row__plus { color: var(--nmg-blue-900); }
.is-open .nmg-row, .is-open .nmg-row:hover { background: var(--nmg-blue); }
.is-open .nmg-row__title { color: var(--nmg-yellow); }
.is-open .nmg-row__meta { color: var(--nmg-blue-50); }
.is-open .nmg-row__cir, .is-open .nmg-row:hover .nmg-row__cir { background: rgba(232,229,255,.2); border-color: var(--nmg-blue-50); }
.is-open .nmg-row__plus { display: none; }
.is-open .nmg-row__minus { display: block; }
.nmg-panel { display: flex; flex-direction: column; gap: 28px; padding-bottom: 16px; background: var(--nmg-blue); border-radius: 16px; overflow: hidden; }
.nmg-panel__vis { height: 380px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 4px rgba(0,0,0,.25); }
.nmg-panel__vis img { width: 100%; height: 100%; object-fit: cover; }
.nmg-panel__sum { display: flex; flex-direction: column; gap: 18px; padding: 0 30px; color: var(--nmg-blue-50); }
.nmg-panel:not(:has(.nmg-panel__vis)) .nmg-panel__sum { padding-top: 28px; }
.nmg-panel__title { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h3); line-height: 1.2; }
.nmg-panel__text { max-width: 1188px; }
.nmg-work--archive .nmg-panel__text { max-width: 900px; }
.nmg-panel__link { display: inline-flex; align-items: center; gap: 10px; padding-top: 4px; font-weight: 600; align-self: flex-start; }
.nmg-panel__link .nmg-arrow { color: var(--nmg-yellow); transition: transform .2s; }
.nmg-panel__link:hover .nmg-arrow { transform: translateX(4px); }
.nmg-acc__panel.is-animating { overflow: hidden; transition: height .35s ease; }

/* ---------- Process ---------- */
.nmg-process__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.nmg-step { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 181px; }
.nmg-step__num { font-family: var(--nmg-serif); font-weight: 600; font-size: 48px; line-height: 1; color: var(--nmg-navy); }
.nmg-step__title { font-family: var(--nmg-serif); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--nmg-navy); }
.nmg-step__text { font-size: 15px; line-height: 1.55; color: var(--nmg-body); }

/* ---------- Clients ---------- */
.nmg-clients__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 17px; }
.nmg-clients__cell { min-width: 0; height: 120px; margin: 0; padding: 24px clamp(16px, 3.3vw, 48px); display: grid; place-items: center; background: #fff; border-radius: 12px; }
.nmg-clients__cell img { width: auto; height: auto; max-width: min(180px, 100%); max-height: 92px; object-fit: contain; }
.nmg-clients__cell a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; }
.nmg-clients__cell { transition: box-shadow .2s; }
.nmg-clients__cell:has(a:hover) { box-shadow: 0 0 0 1.5px var(--nmg-blue), 0 10px 15px rgba(15,22,69,.08); }

/* ---------- Products ---------- */
.nmg-products__wrap { display: flex; gap: 32px; align-items: flex-start; }
.nmg-products__intro { flex: 0 0 437px; display: flex; flex-direction: column; gap: 20px; }
.nmg-products__body { font-size: 18px; line-height: 1.55; color: var(--nmg-muted); }
.nmg-products__grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 27px; }
.nmg-product { display: flex; flex-direction: column; gap: 16px; padding: 40px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; transition: border-color .2s, box-shadow .2s; outline: none; }
.nmg-product__title { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h3); line-height: 1.2; color: var(--nmg-navy); transition: color .2s; }
.nmg-product__text { line-height: 1.58; color: var(--nmg-body); }
.nmg-product:hover, .nmg-product:focus-visible { border-color: var(--nmg-blue); box-shadow: 0 0 0 .5px var(--nmg-blue), 0 10px 15px rgba(15,22,69,.12); }
.nmg-product:hover .nmg-product__title, .nmg-product:focus-visible .nmg-product__title { color: var(--nmg-blue); }
/* Whole card clickable: a link in the card title stretches over the entire card. */
.nmg-product { position: relative; }
.nmg-product__title a { color: inherit; text-decoration: none; }
.nmg-product__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.nmg-product:has(.nmg-product__title a) { cursor: pointer; }
.nmg-product:has(.nmg-product__title a:focus-visible) { border-color: var(--nmg-blue); box-shadow: 0 0 0 2px var(--nmg-blue), 0 10px 15px rgba(15,22,69,.12); }
.nmg-product__title a:focus-visible { outline: none; }
.nmg-product:has(.nmg-product__title a) .nmg-product__title::after { content: "→"; margin-left: .3em; font-family: var(--nmg-sans); font-size: .6em; font-weight: 600; opacity: 0; display: inline-block; transform: translateX(-4px); transition: opacity .2s, transform .2s; vertical-align: middle; }
.nmg-product:has(.nmg-product__title a):hover .nmg-product__title::after { opacity: 1; transform: none; }

/* ---------- Quiz band (home) ---------- */
.nmg-quizband { background: var(--nmg-blue); padding-block: var(--nmg-section-y); }
.nmg-quizband__inner { max-width: calc(680px + 2 * var(--nmg-gutter)); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nmg-quizband__eyebrow { font-weight: 700; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nmg-yellow); text-align: center; }
.nmg-quizband__title { font-family: var(--nmg-serif); font-weight: 600; font-size: clamp(38px, 4.3vw, 62px); line-height: 1; color: #fff; text-align: center; }
.nmg-quizband__text { max-width: 600px; font-size: 18px; line-height: 1.58; color: var(--nmg-soft); }
.nmg-quizband .nmg-btn, .nmg-quizband .wp-block-buttons { margin-top: 8px; }

/* ---------- Numbers ---------- */
.nmg-numbers .nmg-container { display: flex; flex-direction: column; gap: 64px; }
.nmg-numbers__photo { height: clamp(260px, 36vw, 520px); border-radius: 24px; overflow: hidden; }
.nmg-numbers__photo { margin: 0; }
.nmg-numbers__photo img { width: 100%; height: 100%; object-fit: cover; }
.nmg-numbers__body .nmg-head { margin-bottom: 32px; }
.nmg-numbers__row { display: flex; justify-content: space-between; gap: 32px; }
.nmg-numbers__col { flex: 0 1 380px; display: flex; flex-direction: column; gap: 14px; }
.nmg-numbers__value { font-family: var(--nmg-serif); font-weight: 600; font-size: clamp(64px, 7.2vw, 104px); line-height: .96; color: var(--nmg-navy); }
.nmg-numbers__label { font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nmg-muted); }

/* ---------- Final CTA ---------- */
.nmg-finalcta { background: var(--nmg-blue-700); padding-block: clamp(80px, 9.7vw, 140px); }
.nmg-finalcta__inner { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.nmg-finalcta__title { margin-inline: calc(20px - var(--nmg-gutter)); font-family: var(--nmg-serif); font-weight: 400; font-size: clamp(38px, 5vw, 72px); line-height: 1.04; color: #fff; }
.nmg-finalcta__text { max-width: 620px; font-size: 20px; line-height: 1.55; color: var(--nmg-soft); }
.nmg-finalcta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 16px; }

/* ---------- Footer ---------- */
.nmg-footer { background: var(--nmg-ink); padding: 80px 0 52px; }
.nmg-footer__top { display: flex; flex-direction: column; gap: 16px; }
.nmg-footer__brand { font-family: var(--nmg-serif); font-weight: 600; font-size: 32px; line-height: 1.2; color: #fff; }
.nmg-footer__tagline { max-width: 440px; line-height: 1.5; color: var(--nmg-soft); }
.nmg-footer__rule { border: 0; height: 1px; background: rgba(255,255,255,.12); margin: 44px 0; }
.nmg-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
.nmg-footer__copy { color: var(--nmg-muted); }
.nmg-footer__links { display: flex; gap: 28px; font-weight: 500; color: var(--nmg-soft); }
.nmg-footer__links a:hover { color: #fff; }

/* ---------- Inner page band ---------- */
.nmg-band { background: var(--nmg-blue); padding-block: var(--nmg-section-y); }
.nmg-band .nmg-container { display: flex; flex-direction: column; gap: 24px; }
.nmg-band__eyebrow { display: flex; flex-wrap: wrap; gap: 16px; font-size: 16px; color: #fff; text-transform: uppercase; }
.nmg-band__eyebrow strong { font-weight: 700; color: var(--nmg-yellow); }
.nmg-band__eyebrow:not(:has(span)) strong:only-child, .nmg-band__eyebrow:has(> strong:only-child) { letter-spacing: 0.14em; }
.nmg-band__eyebrow-main { font-weight: 700; color: var(--nmg-yellow); text-transform: uppercase; }
.nmg-band__eyebrow-main:only-child { letter-spacing: 0.14em; }
.nmg-band__eyebrow-extra { color: #fff; text-transform: uppercase; }
.nmg-band__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/* Case with its own branding: colours from the case, optional logo on the right. */
.nmg-band--logo .nmg-container { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px); }
.nmg-band__logo { flex: none; width: clamp(88px, 11vw, 168px); }
.nmg-band__logo img { display: block; width: 100%; height: auto; }
.nmg-band--dark-text, .nmg-band--dark-text .nmg-h1, .nmg-band--dark-text .nmg-band__eyebrow-extra { color: #000; }
.nmg-band--dark-text .nmg-band__eyebrow-main { color: #000; }
.nmg-band--brand:not(.nmg-band--dark-text) .nmg-band__eyebrow-main { color: #fff; }

/* ---------- Quiz page ---------- */
.nmg-quiz__box { display: flex; flex-direction: column; align-items: center; gap: 64px; padding-inline: clamp(0px, 4.44vw, 64px); }
.nmg-quiz__progress { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nmg-quiz__step { font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nmg-blue-900); text-align: center; }
.nmg-quiz__track { width: 180px; height: 4px; border-radius: 2px; background: var(--nmg-blue-900); overflow: hidden; }
.nmg-quiz__fill { display: block; height: 4px; background: var(--nmg-blue); transition: width .3s; }
.nmg-quiz__q { width: 100%; }
.nmg-quiz__heading { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 64px; text-align: center; color: var(--nmg-blue-900); }
.nmg-quiz__question { max-width: 1000px; }
.nmg-quiz__hint { max-width: 720px; font-weight: 700; text-align: center; }
.nmg-quiz__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nmg-option { display: flex; flex-direction: column; gap: 20px; padding: 40px 32px; background: var(--nmg-blue-800); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; box-shadow: 0 8px 16px rgba(0,0,0,.13); cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s; }
.nmg-option:hover { transform: translateY(-3px); }
.nmg-option__head { display: flex; align-items: center; justify-content: space-between; }
.nmg-option__num { font-family: var(--nmg-inter); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--nmg-blue-50); }
.nmg-option__check { width: 28px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.nmg-option__ico { grid-area: 1 / 1; }
.nmg-option__ico--on { display: none; }
.nmg-option__title { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h3); line-height: 1.2; color: #fff; margin-bottom: -8px; }
.nmg-option__text { color: var(--nmg-soft); }
.nmg-option:has(input:checked) { background: var(--nmg-blue-50); border-color: var(--nmg-blue-50); box-shadow: 0 8px 16px rgba(233,255,0,.13); }
.nmg-option:has(input:checked) .nmg-option__num { color: var(--nmg-blue); }
.nmg-option:has(input:checked) .nmg-option__check { background: var(--nmg-blue); }
.nmg-option:has(input:checked) .nmg-option__ico--on { display: block; }
.nmg-option:has(input:checked) .nmg-option__ico--off { display: none; }
.nmg-option:has(input:checked) .nmg-option__title { color: #121316; }
.nmg-option:has(input:checked) .nmg-option__text { color: var(--nmg-body); }
.nmg-option:has(input:focus-visible) { outline: 2px solid var(--nmg-blue); outline-offset: 3px; }
.nmg-quiz__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.nmg-quiz__result { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.nmg-quiz__result-title { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h2); line-height: 1.1; color: var(--nmg-navy); }
.nmg-quiz__answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nmg-quiz__answers li { padding: 10px 18px; border-radius: 999px; background: var(--nmg-blue-50); font-weight: 600; font-size: 14px; color: var(--nmg-blue); }
.nmg-quiz__result[hidden], .nmg-quiz__q[hidden], [data-quiz-nav][hidden] { display: none; }

/* ---------- Contact card ---------- */
.nmg-contact__card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(36px, 5vw, 72px); border-radius: 24px; background: linear-gradient(to bottom, #141c5e, #0b0e2e); }
.nmg-contact__l { flex: 0 1 560px; display: flex; flex-direction: column; gap: 22px; }
.nmg-contact__title { max-width: 520px; font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h2); line-height: 1.2; color: #fff; }
.nmg-contact__text { max-width: 440px; color: var(--nmg-soft); }
.nmg-contact__r { flex: 0 1 380px; display: flex; flex-direction: column; gap: 20px; }
.nmg-contact__rr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; color: #fff; }
.nmg-contact__rr a { min-width: 0; overflow-wrap: anywhere; }
.nmg-contact__l, .nmg-contact__r { min-width: 0; max-width: 100%; }
.nmg-contact__rr a:hover { text-decoration: underline; }
.nmg-contact__k, .nmg-contact__rr strong { font-weight: 600; font-size: 15px; color: var(--nmg-yellow); white-space: nowrap; }
.nmg-contact__btn { padding-top: 8px; }

/* ---------- Case detail ---------- */
.nmg-casehero__img, .nmg-wideimg { height: clamp(320px, 56.4vw, 812px); margin: 0; border-radius: 24px; overflow: hidden; }
.nmg-casehero__img img, .nmg-wideimg img { width: 100%; height: 100%; object-fit: cover; }
.nmg-statsbar { background: var(--nmg-blue-50); padding-block: var(--nmg-section-y); }
.nmg-statsbar__row { display: flex; justify-content: space-between; gap: 32px; }
.nmg-statsbar__col { flex: 0 1 280px; display: flex; flex-direction: column; gap: 12px; }
.nmg-statsbar__value { font-family: var(--nmg-serif); font-weight: 600; font-size: var(--nmg-fs-h1); line-height: 1.2; color: var(--nmg-blue); white-space: nowrap; }
.nmg-statsbar__label { font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nmg-blue-900); }
.nmg-narrative__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.nmg-narrative__col { display: flex; flex-direction: column; gap: 24px; }
.nmg-narrative__title { font-family: var(--nmg-inter); font-weight: 600; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; color: var(--nmg-blue-900); }
.nmg-narrative__text { line-height: 1.6; color: var(--nmg-muted); }
.nmg-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.nmg-gallery__item { margin: 0; border-radius: 16px; overflow: hidden; }
.nmg-gallery__item:only-child { grid-column: 1 / -1; }
.nmg-gallery__item img { display: block; width: 100%; height: auto; }
.nmg-nextproj { background: var(--nmg-blue-900); padding-block: var(--nmg-section-y); }
.nmg-nextproj .nmg-container { display: flex; flex-direction: column; gap: 32px; }
.nmg-nextproj__head { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.nmg-nextproj__eyebrow { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nmg-yellow); }
.nmg-nextproj__count { font-weight: 500; color: var(--nmg-blue-50); }
.nmg-nextproj__teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nmg-nextproj__left { display: flex; flex-direction: column; gap: 12px; }
.nmg-nextproj__label { font-weight: 500; font-size: 14px; color: var(--nmg-blue-50); opacity: .6; }
.nmg-nextproj__title { font-family: var(--nmg-inter); font-weight: 600; font-size: clamp(28px, 3.33vw, 48px); line-height: 1.2; color: #fff; }
.nmg-nextproj__cir { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--nmg-yellow); font-size: 32px; color: var(--nmg-blue-900); transition: transform .2s; }
.nmg-nextproj__teaser:hover .nmg-nextproj__cir { transform: translateX(6px); }

/* ---------- Contact page + form ---------- */
.nmg-contactpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(40px, 5vw, 80px); align-items: start; }
.nmg-contactpage__title { font-family: var(--nmg-serif); font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; color: var(--nmg-navy); }
.nmg-contactpage__intro { margin-top: 16px; max-width: 620px; line-height: 1.55; color: var(--nmg-body); }
.nmg-contactpage__aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 40px); border-radius: 24px; background: linear-gradient(to bottom, #141c5e, #0b0e2e); color: #fff; }
.admin-bar .nmg-contactpage__aside { top: 56px; }
.nmg-contactpage__aside-title { font-family: var(--nmg-serif); font-weight: 600; font-size: 24px; line-height: 1.2; color: #fff; }
.nmg-contactpage__aside-title:not(:first-child) { margin-top: 20px; }
.nmg-contactpage__steps { list-style: none; margin: 0; padding: 0; counter-reset: nmgstep; display: flex; flex-direction: column; gap: 14px; }
.nmg-contactpage__steps li { position: relative; padding-left: 44px; line-height: 1.5; color: var(--nmg-soft); counter-increment: nmgstep; }
.nmg-contactpage__steps li::before { content: counter(nmgstep); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--nmg-yellow); color: var(--nmg-blue-900); font-weight: 700; font-size: 14px; }
.nmg-contactpage__steps strong { color: #fff; font-weight: 600; }

.nmg-cf { margin-top: 32px; }
.nmg-cf__form { display: flex; flex-direction: column; gap: 24px; }
.nmg-cf__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nmg-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.nmg-field > label, .nmg-field > legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 14px; color: var(--nmg-navy); }
.nmg-req { color: var(--nmg-blue); }
.nmg-opt { font-weight: 400; color: var(--nmg-muted); }
.nmg-field input:not([type="radio"]):not([type="checkbox"]), .nmg-field textarea { display: block; width: 100%; padding: 14px 16px; border: 1px solid #d9dbe5; border-radius: 12px; background: #fff; font: 16px/1.4 var(--nmg-sans); color: var(--nmg-ink); transition: border-color .15s, box-shadow .15s; }
.nmg-field textarea { min-height: 160px; resize: vertical; }
.nmg-field input::placeholder, .nmg-field textarea::placeholder { color: #9a9db3; }
.nmg-field input:hover, .nmg-field textarea:hover { border-color: #b8bbd0; }
.nmg-field input:focus, .nmg-field textarea:focus { outline: none; border-color: var(--nmg-blue); box-shadow: 0 0 0 3px rgba(22, 0, 255, .15); }
.nmg-field.has-error input, .nmg-field.has-error textarea { border-color: #d6204e; }
.nmg-field__error { margin-top: 6px; font-size: 13px; font-weight: 500; color: #c41a45; }
.nmg-cf__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nmg-cf__chip { position: relative; cursor: pointer; }
.nmg-cf__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nmg-cf__chip span { display: inline-block; padding: 10px 16px; border: 1px solid #d9dbe5; border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; color: var(--nmg-navy); transition: background-color .15s, border-color .15s, color .15s; }
.nmg-cf__chip:hover span { border-color: var(--nmg-blue); }
.nmg-cf__chip input:checked + span { background: var(--nmg-blue-50); border-color: var(--nmg-blue); color: var(--nmg-blue); }
.nmg-cf__chip input:focus-visible + span { outline: 2px solid var(--nmg-blue); outline-offset: 2px; }
.nmg-field > .nmg-cf__check-label { margin-bottom: 0; font-weight: 400; color: var(--nmg-body); }
.nmg-cf__check-label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--nmg-body); cursor: pointer; }
.nmg-cf__check-label input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--nmg-blue); }
.nmg-cf__check-label a { color: var(--nmg-blue); text-decoration: underline; }
.nmg-cf__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.nmg-cf__note { font-size: 13px; color: var(--nmg-muted); }
.nmg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nmg-cf__formerror { padding: 14px 18px; border-radius: 12px; background: #fde8ec; font-weight: 500; font-size: 14px; color: #a3123a; }
.nmg-cf__quiz { padding: 16px 20px; border-radius: 12px; background: var(--nmg-blue-50); }
.nmg-cf__quiz-title { margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--nmg-navy); }
.nmg-cf__quiz .nmg-quiz__answers { justify-content: flex-start; gap: 8px; }
.nmg-cf__quiz .nmg-quiz__answers li { background: #fff; padding: 8px 14px; font-size: 13px; }
.nmg-cf__success { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(28px, 4vw, 48px); border-radius: 16px; background: var(--nmg-blue-50); outline: none; }
.nmg-cf__success[hidden], .nmg-cf__form[hidden] { display: none; }
.nmg-cf__check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--nmg-blue); margin-bottom: 4px; }
.nmg-cf__success-title { font-family: var(--nmg-serif); font-weight: 600; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; color: var(--nmg-navy); }
.nmg-cf__success-text { line-height: 1.55; color: var(--nmg-body); }

/* Thin edge so white images (logos, screenshots) still read as a card on a white page. */
.nmg-casehero__img, .nmg-gallery__item { position: relative; }
.nmg-casehero__img::after, .nmg-gallery__item::after, .nmg-casevideo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 22, 69, .1); pointer-events: none; z-index: 1; }

/* ---------- Case video (instead of the large image) ---------- */
.nmg-casevideo { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; }
.nmg-casevideo__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.nmg-casevideo__toggle { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 600 13px/1 var(--nmg-sans); backdrop-filter: blur(6px); opacity: .85; transition: opacity .2s, background-color .2s; }
.nmg-casevideo__toggle:hover, .nmg-casevideo__toggle:focus-visible { opacity: 1; background: rgba(0,0,0,.75); }
.nmg-casevideo__toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.nmg-casevideo__play { display: none; }
.nmg-casevideo__toggle[aria-pressed="true"]::before { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.nmg-casevideo__toggle[aria-pressed="true"] .nmg-casevideo__pause { display: none; }
.nmg-casevideo__toggle[aria-pressed="true"] .nmg-casevideo__play { display: inline; }

/* ---------- Event page (HRtech 2026) ---------- */
.nmg-band--hrtech { background: linear-gradient(120deg, #fd02f4, #fc0606); }
.nmg-band--dark-text .nmg-band__eyebrow, .nmg-band--dark-text .nmg-band__eyebrow strong { color: #000; }
figure.nmg-band__logo { margin: 0; }
.nmg-event__text { max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; font-size: 17px; line-height: 1.65; color: var(--nmg-body); }
.nmg-event__subtitle { margin: 56px 0 24px; font-family: var(--nmg-serif); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; color: var(--nmg-navy); }
.nmg-event .nmg-head { margin-bottom: 28px; }
.nmg-event__photos { padding-top: 0; }
.nmg-numbers__row--4 .nmg-numbers__col { flex: 1 1 0; min-width: 0; }
.nmg-numbers__row--4 .nmg-numbers__value { font-size: clamp(48px, 5.4vw, 80px); }
.nmg-timeline { list-style: none; margin: 0; padding: 0; max-width: 920px; border-top: 1px solid rgba(15, 22, 69, .12); }
.nmg-timeline li { position: relative; padding: 14px 0 14px 88px; border-bottom: 1px solid rgba(15, 22, 69, .12); line-height: 1.5; color: var(--nmg-ink); }
.nmg-timeline li > strong:first-child { position: absolute; left: 0; top: 14px; font-weight: 700; color: var(--nmg-blue); font-variant-numeric: tabular-nums; }
.nmg-awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nmg-award { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; }
.nmg-award__category { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--nmg-blue); }
.nmg-award__winner { font-family: var(--nmg-serif); font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; color: var(--nmg-navy); }
.nmg-award__text { font-size: 15px; line-height: 1.55; color: var(--nmg-muted); }
.nmg-journeys { display: flex; flex-direction: column; gap: 12px; }
.nmg-journey { border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; overflow: hidden; }
.nmg-journey > summary { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 24px 72px 24px 28px; cursor: pointer; list-style: none; font-family: var(--nmg-serif); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--nmg-blue-900); }
.nmg-journey > summary::-webkit-details-marker { display: none; }
.nmg-journey > summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(15, 22, 69, .3); font-family: var(--nmg-sans); font-weight: 400; font-size: 22px; transition: background-color .2s, color .2s, border-color .2s; }
.nmg-journey[open] > summary::after { content: "–"; background: var(--nmg-blue); border-color: var(--nmg-blue); color: #fff; }
.nmg-journey > summary:hover::after { border-color: var(--nmg-blue-900); }
.nmg-journey__count { font-family: var(--nmg-sans); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--nmg-muted); }
.nmg-journey > :not(summary) { margin-inline: 28px; }
.nmg-journey__tagline { margin-bottom: 8px; font-style: italic; color: var(--nmg-muted); }
.nmg-talks { list-style: none; margin: 0 28px 24px; padding: 0; }
.nmg-talks li { position: relative; padding: 14px 0 14px 80px; border-top: 1px solid rgba(15, 22, 69, .1); line-height: 1.45; color: var(--nmg-ink); }
.nmg-talks li > strong:first-child { position: absolute; left: 0; top: 14px; font-weight: 700; color: var(--nmg-blue); font-variant-numeric: tabular-nums; }
.nmg-talk__who { display: block; margin-top: 4px; font-size: 14px; color: var(--nmg-muted); }

/* ---------- Generic content ---------- */
/* Blocks added directly to a page (outside an NMG section) get normal text width. */
.nmg-content > :not([class*="nmg-"]):not(.wp-block-nmg-case-list):not(.wp-block-nmg-quiz) { max-width: calc(820px + 2 * var(--nmg-gutter)); margin-inline: auto; padding-inline: var(--nmg-gutter); }
.nmg-content > :not([class*="nmg-"]):first-child, .nmg-content > .nmg-band + :not([class*="nmg-"]) { margin-top: var(--nmg-section-y); }
.nmg-content > :not([class*="nmg-"]) a { color: var(--nmg-blue); text-decoration: underline; }
.nmg-content > :not([class*="nmg-"]):last-child { margin-bottom: var(--nmg-section-y); }
.nmg-content > p:not([class*="nmg-"]), .nmg-content > ul:not([class*="nmg-"]), .nmg-content > ol:not([class*="nmg-"]) { margin-block: 1em; line-height: 1.6; color: var(--nmg-body); }
.nmg-content > h2:not([class*="nmg-"]), .nmg-content > h3:not([class*="nmg-"]) { margin-block: 1.4em .5em; font-family: var(--nmg-serif); font-weight: 600; color: var(--nmg-navy); line-height: 1.2; }
.nmg-content > h2:not([class*="nmg-"]) { font-size: clamp(28px, 2.8vw, 40px); }
.nmg-content > figure:not([class*="nmg-"]) { margin-block: 2em; }
.nmg-content > figure img { border-radius: 16px; }
.nmg-prose ul, .nmg-prose ol { padding-left: 1.3em; }
.nmg-prose .nmg-h2 { margin-bottom: .2em; }
.nmg-prose { max-width: calc(820px + 2 * var(--nmg-gutter)); line-height: 1.6; color: var(--nmg-body); }
.nmg-prose > * + * { margin-top: 1em; }
.nmg-prose h2, .nmg-prose h3 { font-family: var(--nmg-serif); color: var(--nmg-navy); line-height: 1.2; }
.nmg-prose a { color: var(--nmg-blue); text-decoration: underline; }

/* ---------- Yellow dot cursor (desktop with a mouse only) ---------- */
.nmg-cursor { position: fixed; top: 0; left: 0; z-index: 2147483647; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--nmg-yellow); box-shadow: 0 0 0 1px rgba(4, 0, 51, .22); pointer-events: none; opacity: 0; will-change: transform; transition: width .25s ease, height .25s ease, margin .25s ease, opacity .2s ease, background-color .25s ease, box-shadow .25s ease; }
.nmg-cursor.is-visible { opacity: 1; }
.nmg-cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: rgba(233, 255, 0, .35); box-shadow: 0 0 0 2px var(--nmg-yellow), 0 0 0 3px rgba(4, 0, 51, .18); }
.nmg-cursor.is-down { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.nmg-cursor.is-hover.is-down { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.nmg-cursor.is-text { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
	html.nmg-cursor-active, html.nmg-cursor-active * { cursor: none !important; }
	html.nmg-cursor-active input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]), html.nmg-cursor-active textarea, html.nmg-cursor-active select, html.nmg-cursor-active [contenteditable="true"] { cursor: auto !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.nmg-services__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nmg-process__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nmg-clients__grid { gap: 12px; }
	.nmg-clients__cell { height: 104px; }
	.nmg-products__wrap { flex-direction: column; }
	.nmg-products__intro { flex-basis: auto; max-width: 560px; }
	.nmg-products__grid { width: 100%; }
	.nmg-quiz__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nmg-contact__card { flex-direction: column; align-items: flex-start; }
	.nmg-contact__l, .nmg-contact__r { flex-basis: auto; }
}

@media (max-width: 960px) {
	.nmg-burger { display: block; }
	.nmg-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px var(--nmg-gutter) 32px; background: var(--nmg-blue-900); display: none; }
	.nmg-header--hero .nmg-nav { background: var(--nmg-blue-900); box-shadow: 0 12px 24px rgba(4,0,51,.25); }
	.nmg-nav.is-open { display: flex; }
	.nmg-nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
	.nmg-nav__list a { font-size: 18px; }
	.nmg-navbar { padding-block: 24px; }
	.nmg-intro { padding-top: 116px; }
	.nmg-brand__text { font-size: 40px; }
	.nmg-narrative__grid { grid-template-columns: 1fr; gap: 48px; }
	.nmg-contactpage__grid { grid-template-columns: minmax(0, 1fr); }
	.nmg-awards { grid-template-columns: minmax(0, 1fr); }
	.nmg-band--logo .nmg-container { flex-direction: column-reverse; align-items: flex-start; }
	.nmg-band__logo { width: 72px; }
	.nmg-contactpage__aside { position: static; }
	.nmg-row__meta { white-space: normal; text-align: right; }
}

@media (max-width: 720px) {
	.nmg-hero__cols, .nmg-services__row, .nmg-products__grid, .nmg-gallery__grid, .nmg-quiz__grid { grid-template-columns: minmax(0, 1fr); }
	.nmg-process__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nmg-clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.nmg-clients__cell { height: 88px; padding: 14px 18px; }
	.nmg-clients__cell img { max-height: 56px; }
	.nmg-numbers__row, .nmg-statsbar__row { flex-direction: column; gap: 36px; }
	.nmg-numbers__col, .nmg-statsbar__col { flex-basis: auto; }
	.nmg-row { padding: 20px; align-items: flex-start; }
	.nmg-row__right { gap: 14px; }
	.nmg-row__meta { display: none; }
	.nmg-panel__vis { height: 220px; }
	.nmg-panel__sum { padding: 0 20px; }
	.nmg-product { padding: 28px; }
	.nmg-footer__bottom { flex-direction: column; align-items: flex-start; }
	.nmg-nextproj__head { flex-direction: column; gap: 8px; }
	.nmg-nextproj__cir { width: 56px; height: 56px; font-size: 26px; }
	.nmg-quiz__box { gap: 40px; }
	.nmg-quiz__heading { margin-bottom: 40px; }
	.nmg-option { padding: 28px 24px; }
	.nmg-numbers__row--4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
	.nmg-timeline li, .nmg-talks li { padding-left: 64px; }
	.nmg-journey > summary { padding: 20px 64px 20px 20px; }
	.nmg-journey > summary::after { right: 16px; }
	.nmg-journey > :not(summary) { margin-inline: 20px; }
	.nmg-talks { margin: 0 20px 20px; }
	.nmg-cf__row { grid-template-columns: minmax(0, 1fr); }
	.nmg-contact__card { padding: 32px 24px; }
}

@media (max-width: 380px) {
	.nmg-contact__rr { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.nmg-intro__video { display: none; }
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* v1.6.1 — keep the e-mail address on one line: it shrinks to fit its card instead of breaking mid-word */
.nmg-contact__r, .nmg-contactpage__aside { container-type: inline-size; }
.nmg-contact__r .nmg-contact__rr a[href^="mailto:"], .nmg-contactpage__aside .nmg-contact__rr a[href^="mailto:"] { overflow-wrap: normal; word-break: normal; font-size: max(13px, min(1em, 4.4cqi)); }

/* v1.7.0 — legal text pages (cookie policy) */
.nmg-prose ul { list-style: disc; }
.nmg-prose ol { list-style: decimal; }
.nmg-prose li + li { margin-top: .4em; }
.nmg-prose h2.nmg-prose__h2 { margin-top: 1.8em; font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); }
.nmg-prose code { padding: .1em .35em; border-radius: 4px; background: var(--nmg-blue-50); font-size: .9em; overflow-wrap: anywhere; }
