/* Runtime helpers for the standalone Grelix pages */

/* ---- fx/hover.js: hover variants (class nx-hv on the component root; mouse/pen and keyboard focus only) ---- */
/* Rolling labels: the label and its copy below both move up by --nx-roll (set by hover.js). */
.framer-1OiBZ .framer-1p5wo9u,
.framer-1OiBZ .framer-1rc3ocx,
.framer-1OiBZ .framer-1w8n0rw,
.framer-1OiBZ .framer-1z0kyn2 { transition: transform var(--nx-btn-dur, .4s) var(--nx-btn-ease, ease); }
.framer-1OiBZ.nx-hv .framer-1p5wo9u { transform: translateY(calc(-1 * var(--nx-roll, 38px))) !important; }
.framer-1OiBZ.nx-hv .framer-1rc3ocx { transform: translateX(-50%) translateY(calc(-1 * var(--nx-roll, 38px))) !important; }
/* Arrow circle: the arrow leaves through the top right, a copy enters from the bottom left. */
.framer-1OiBZ { --nx-arrow: 25px; }
.framer-1OiBZ.framer-v-va376u { --nx-arrow: 32px; }
.framer-1OiBZ.nx-hv .framer-1w8n0rw,
.framer-1OiBZ.nx-hv .framer-1z0kyn2 { transform: translate(var(--nx-arrow), calc(-1 * var(--nx-arrow))); }

.framer-omY86 .framer-1um54ec,
.framer-omY86 .framer-1nx9870 { transition: transform var(--nx-nav-dur, .6s) var(--nx-nav-ease, ease); }
.framer-omY86.nx-hv .framer-1um54ec { transform: translateY(calc(-1 * var(--nx-roll, 25px))) !important; }
.framer-omY86.nx-hv .framer-1nx9870 { transform: translateX(-50%) translateY(calc(-1 * var(--nx-roll, 25px))) !important; }

/* Cards: arrow swap (project, case), background zoom (project, service), image zoom (blog). */
.framer-DQC2o .framer-jt6yax,
.framer-DQC2o .framer-1t0ijjk,
.framer-mcXM3 .framer-zl11fr,
.framer-mcXM3 .framer-1fupke3 { transition: transform var(--nx-card-dur, .4s) var(--nx-card-ease, ease); }
.framer-DQC2o.nx-hv .framer-jt6yax,
.framer-DQC2o.nx-hv .framer-1t0ijjk { transform: translate(45px, -45px); }
.framer-mcXM3.nx-hv .framer-zl11fr,
.framer-mcXM3.nx-hv .framer-1fupke3 { transform: translate(30px, -30px); }
.framer-mcXM3.framer-v-1e5gsqc { transition: opacity var(--nx-card-dur, .4s) var(--nx-card-ease, ease); }
.framer-mcXM3.framer-v-1e5gsqc.nx-hv { opacity: .9 !important; }

.framer-DQC2o .framer-1siw2vu,
.framer-P2xmt .framer-1kkjgmf,
.framer-uGWnB .framer-t77m28 { transition: top var(--nx-card-dur, .4s) var(--nx-card-ease, ease), right var(--nx-card-dur, .4s) var(--nx-card-ease, ease), bottom var(--nx-card-dur, .4s) var(--nx-card-ease, ease), left var(--nx-card-dur, .4s) var(--nx-card-ease, ease); }
.framer-DQC2o.framer-v-1a8hz9b.nx-hv .framer-1siw2vu,
.framer-P2xmt.nx-hv .framer-1kkjgmf,
.framer-uGWnB.nx-hv .framer-t77m28 { inset: -8px; }
.framer-DQC2o.framer-v-12vk901.nx-hv .framer-1siw2vu { inset: -5px; }

.framer-zEEb6 .framer-1yovpzp { transition: transform var(--nx-blog-dur, .6s) var(--nx-blog-ease, ease); }
.framer-zEEb6 .framer-xvpzci { transition: opacity var(--nx-blog-dur, .6s) var(--nx-blog-ease, ease); }
.framer-zEEb6.nx-hv .framer-1yovpzp { transform: scale(1.05); }
.framer-zEEb6.nx-hv .framer-xvpzci { opacity: .75 !important; }

/* Footer social icon grows 16 -> 20px (15 -> 18px on the small variant). */
.framer-Cj7xi .framer-1v5qit5 { transition: transform var(--nx-card-dur, .4s) var(--nx-card-ease, ease); }
.framer-Cj7xi.nx-hv .framer-1v5qit5 { transform: scale(1.25); }
.framer-Cj7xi.framer-v-1cwpa0h.nx-hv .framer-1v5qit5 { transform: scale(1.2); }

/* Opacity-only hovers: newsletter button .5 (tween .2s), header logo .8. */
.framer-ZSTlN.framer-v-q7y9nx { transition: opacity .2s cubic-bezier(.44, 0, .56, 1); }
.framer-ZSTlN.framer-v-q7y9nx.nx-hv { opacity: .5 !important; }
.framer-I04Dp.framer-v-1czgnop { transition: opacity var(--nx-logo-dur, .8s) var(--nx-logo-ease, ease); }
.framer-I04Dp.framer-v-1czgnop.nx-hv { opacity: .8 !important; }

/* Hover transitions stay on under reduced motion, like the original (see RESPECT_REDUCED_MOTION in motion.js). To respect it:
@media (prefers-reduced-motion: reduce) {
  .framer-1OiBZ *, .framer-omY86 *, .framer-DQC2o *, .framer-mcXM3 *, .framer-zEEb6 *, .framer-P2xmt *, .framer-uGWnB *, .framer-Cj7xi * { transition: none !important; }
} */

/* ---- fx/gallery.js: case-studies gallery ---- */
.framer-bAJXO a.framer-mcXM3.framer-v-1ln7zrq { cursor: pointer; }
.framer-bAJXO a.framer-mcXM3:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---- fx/hero-cards.js: hero photo cards opening like accenture.com's content-grid cards ---- */
.nx-hc {
  --nx-hc-ease: cubic-bezier(.85, 0, 0, 1);
  background: #0b0c13;
  cursor: pointer;
  transition: scale 550ms var(--nx-hc-ease);
}
.nx-hc > [data-framer-background-image-wrapper] {
  transition: filter 550ms var(--nx-hc-ease), opacity 550ms var(--nx-hc-ease), transform 550ms var(--nx-hc-ease);
}
.nx-hc--open { scale: 1.02; }
.nx-hc--open > [data-framer-background-image-wrapper] { filter: blur(60px); opacity: .5; transform: scale(1.6); }
.nx-hc__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px 24px;
  color: #fff;
  font-family: "Golos Text", "Golos Text Placeholder", sans-serif;
  transform: translateX(100%);
  transition: transform 550ms var(--nx-hc-ease);
}
.nx-hc--open .nx-hc__panel { transform: none; }
.nx-hc__title { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.nx-hc__text { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.nx-hc__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
  margin-top: 8px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}
.nx-hc__cta svg { color: var(--token-cb780473-ffdc-4607-ad3c-df53b8b397ae, #14b8ae); transition: translate 300ms ease; }
.nx-hc__cta:hover svg, .nx-hc__cta:focus-visible svg { translate: 3px 0; }
.nx-hc__cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---- fx/megamenu.js ---- */
body { /* Grelix defines its colour tokens on body, so these must resolve there */
  /* Neutral greys like accenture.com's menu: near-black bar, #202020 panel, lighter side column */
  --nx-mm-bar: #111111;
  --nx-mm-bg: #202020;
  --nx-mm-side: #282828;
  --nx-mm-tile: #2c2c2c;
  --nx-mm-label: #a3a3a3;
  --nx-mm-rule: rgba(255, 255, 255, .09);
  --nx-mm-accent: var(--token-cb780473-ffdc-4607-ad3c-df53b8b397ae, #14b8ae);
}
/* header goes solid while a panel is open (also at the top of the page, where it is transparent) */
.framer-7yD4g { transition: background-color .4s; }
.framer-7yD4g.nx-mm-open { background-color: var(--nx-mm-bar) !important; }
.nx-mm-host { position: relative; display: flex; align-items: center; }
.nx-mm__toggle {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: -6px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .7); cursor: pointer;
  transition: color .3s, transform .5s cubic-bezier(.2, 0, 0, 1);
}
.nx-mm__toggle:hover, .nx-mm-active .nx-mm__toggle { color: var(--nx-mm-accent); }
.nx-mm-active .nx-mm__toggle { transform: rotate(180deg); }
.nx-mm__toggle:focus-visible, .nx-mm__item:focus-visible, .nx-mm__link:focus-visible, .nx-acc__toggle:focus-visible, .nx-acc__link:focus-visible {
  outline: 2px solid var(--nx-mm-accent); outline-offset: 2px;
}
.nx-mm {
  position: fixed; z-index: 100; box-sizing: border-box; font-family: "Golos Text Variable", "Golos Text", "Golos Text Placeholder", sans-serif;
  background: var(--nx-mm-bg); border: 1px solid var(--nx-mm-rule); border-top: 1px solid var(--nx-mm-rule);
  border-radius: 0 0 20px 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.nx-mm[hidden], .nx-mm__panel[hidden] { display: none; }
.nx-mm__panel { display: flex; }
.nx-mm__col { padding: 32px 36px 36px; min-width: 0; }
.nx-mm__col--services { flex: 1 1 0; }
.nx-mm__col--links { flex: 0 0 300px; border-left: 1px solid var(--nx-mm-rule); background: var(--nx-mm-side); border-radius: 0 0 20px 0; }
.nx-mm__col--links:first-child { flex: 1 1 auto; border-left: 0; background: none; }
.nx-mm__title { margin: 0 0 18px; font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-mm-label); }
.nx-mm__list { list-style: none; margin: 0; padding: 0; }
.nx-mm__col--services .nx-mm__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.nx-mm__item, .nx-mm__link {
  position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 14px 44px 14px 14px; border-radius: 14px;
  color: #fff; text-decoration: none; transition: background-color .3s;
}
.nx-mm__link { align-items: center; padding: 11px 44px 11px 14px; }
.nx-mm__item:hover, .nx-mm__item:focus-visible, .nx-mm__link:hover, .nx-mm__link:focus-visible { background: rgba(255, 255, 255, .07); }
.nx-mm__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--nx-mm-tile); border: 1px solid var(--nx-mm-rule); transition: border-color .3s, background-color .3s;
}
.nx-mm__icon img { width: 24px; height: 24px; display: block; }
.nx-mm__item:hover .nx-mm__icon, .nx-mm__item:focus-visible .nx-mm__icon { border-color: var(--nx-mm-accent); background: rgba(255, 255, 255, .08); }
.nx-mm__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nx-mm__name { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; transition: color .3s; }
.nx-mm__text { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.nx-mm__item:hover .nx-mm__name, .nx-mm__link:hover .nx-mm__name, .nx-mm__item:focus-visible .nx-mm__name, .nx-mm__link:focus-visible .nx-mm__name { color: var(--nx-mm-accent); }
.nx-mm__arrow {
  position: absolute; right: 16px; top: 50%; margin-top: -8px; display: grid; color: var(--nx-mm-accent);
  opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .5s cubic-bezier(.2, 0, 0, 1);
}
.nx-mm__item:hover .nx-mm__arrow, .nx-mm__link:hover .nx-mm__arrow, .nx-mm__item:focus-visible .nx-mm__arrow, .nx-mm__link:focus-visible .nx-mm__arrow { opacity: 1; transform: none; }
@media (max-width: 1249.98px) { .nx-mm, .nx-mm-host > .nx-mm__toggle { display: none !important; } }

/* tablet / phone accordion inside the open menu (the menu's items are centred) */
.nx-acc { display: flex !important; flex-flow: row wrap; justify-content: center; align-items: center; gap: 0 12px; width: 100%; }
.nx-acc__toggle {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: transform .5s cubic-bezier(.2, 0, 0, 1), color .3s;
}
.nx-acc--open > .nx-acc__toggle { transform: rotate(180deg); color: var(--nx-mm-accent); }
.nx-acc__list { flex: 0 0 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, 0, 0, 1); font-family: "Golos Text Variable", "Golos Text", sans-serif; }
.nx-acc--open > .nx-acc__list { grid-template-rows: 1fr; }
.nx-acc__inner { overflow: hidden; display: flex; flex-direction: column; align-items: center; min-height: 0; visibility: hidden; transition: visibility 0s .5s; }
.nx-acc--open .nx-acc__inner { visibility: visible; transition-delay: 0s; }
.nx-acc__title { margin: 16px 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-mm-label); }
.nx-acc__link { padding: 9px 0; color: rgba(255, 255, 255, .8); font-size: 18px; line-height: 1.3; text-align: center; text-decoration: none; }
.nx-acc__link:hover { color: var(--nx-mm-accent); }
.nx-acc__inner > :last-child { margin-bottom: 8px; }
@media (min-width: 1250px) { .nx-acc__toggle, .nx-acc__list { display: none; } }

/* ---- services pages: light theme ---- */
/* Same look as the sector pages' Content / More sections: white body, #f9f5f1 related band, ink text #0c0e12.
   Grelix colour tokens are re-pointed inside the sections, so text, rules and form fields follow. */
html[data-nx-page="services"] .framer-sn6ulf,
html[data-nx-page^="services/"] .framer-tankl,
html[data-nx-page^="services/"] .framer-1qu976j {
  --token-6764836f-c098-4c05-a6dd-f392de4cbd91: #0c0e12;   /* text (was white) */
  --token-fd5b7ea2-5628-490e-9359-67ca9bfdbd31: #fff;      /* section / card background (was near-black) */
  --token-1e6ba663-1d02-4285-9cfd-601e65f5b2db: #00000014; /* hairlines (was white 5%) */
  --token-130e65bb-2da9-4561-be92-cd28ed7b8b55: #fff;      /* form card / field fill */
  --token-181bb2e4-dfd8-4439-81b8-baa244413157: #0c0e1233; /* field border */
  --token-6357fbe1-7ca5-456f-8291-f8c9f149d380: #0c0e1299; /* placeholder */
  --token-e6485e64-1c59-4965-8887-ac5f9a2a14d9: #0c0e1233;
}
html[data-nx-page^="services/"] .framer-1qu976j { background-color: #f9f5f1; }
html[data-nx-page^="services/"] .framer-1qu976j { --token-fd5b7ea2-5628-490e-9359-67ca9bfdbd31: #f9f5f1; }
/* Form fields: dark typed text, light fill. */
html[data-nx-page^="services/"] .framer-tankl .framer-form-input { color: #0c0e12; border-color: #0c0e1233; background: #fff; }
html[data-nx-page^="services/"] .framer-tankl .framer-form-input::placeholder { color: #0c0e1299; }
/* Photo cards: the fade at the bottom of the image stays dark so the icon chip on the photo keeps its look. */
html[data-nx-page="services"] .framer-sn6ulf .framer-17mln0p { --token-fd5b7ea2-5628-490e-9359-67ca9bfdbd31: #0b0c13; }
/* Disabled submit: the faded orange needs a dark label to stay readable on white. */
html[data-nx-page^="services/"] .framer-tankl .framer-5hWsr { --token-6764836f-c098-4c05-a6dd-f392de4cbd91: #0c0e12; }



/* ---- service pages: full layout ---- */
/* Service pages (data-nx-page "services/*") are composed in build.mjs (composeServicePage): Hero, Statement, What we
   do (the page's Content Section), Offerings, Approach, FAQ, Research, More services, then the contact form. Rhythm:
   dark hero, light statement band, tinted What we do, dark offerings and approach, white FAQ, tinted research, white
   more-services band, dark contact form. */

/* What we do: tinted band, full width, no side form. */
html[data-nx-page^="services/"] .framer-tankl {
  background-color: #f9f5f1;
  --token-fd5b7ea2-5628-490e-9359-67ca9bfdbd31: #f9f5f1;
}
html[data-nx-page^="services/"] .framer-tankl form[data-framer-form] { display: none; }
html[data-nx-page^="services/"] .framer-tankl .framer-1m7t7d4 { justify-content: flex-start; }
html[data-nx-page^="services/"] .framer-tankl .framer-1987r5d { width: 100%; max-width: none; }
@media (min-width: 1250px) {
  /* Picture on the left, text beside it, as wide as the page. */
  html[data-nx-page^="services/"] .framer-tankl .framer-1987r5d {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 80px;
    align-items: start;
  }
  html[data-nx-page^="services/"] .framer-tankl .framer-1987r5d > div:first-child { position: sticky; top: 110px; width: 100%; }
  html[data-nx-page^="services/"] .framer-tankl .framer-uxeqt9 { width: 100%; max-width: 760px; }
}
@media (max-width: 1249.98px) {
  html[data-nx-page^="services/"] .framer-tankl .framer-uxeqt9,
  html[data-nx-page^="services/"] .framer-tankl .framer-1luohea { width: 100%; }
}

/* More services: white band after the tinted research section. */
html[data-nx-page^="services/"] .framer-1qu976j {
  background-color: #fff;
  --token-fd5b7ea2-5628-490e-9359-67ca9bfdbd31: #fff;
}

/* Value cards (Home, and the offerings of full-length pages): NXCI line icons (orange strokes) turn white on the
   orange icon chip. */
[data-framer-name="Value Section"] [data-framer-name="Icon"] img { filter: brightness(0) invert(1); }

/* Approach: the counter bar hangs over the next section; give the FAQ room below it. */
html[data-nx-page^="services/"] [data-framer-name="FAQ Section"] { padding-top: 56px; }

/* The contact form at the end of full-length pages (build.mjs, composePage): "Contact us" buttons jump to it, and it
   keeps the contact page's dark background on light pages (it is transparent over the page in Grelix). */
#contact {
  scroll-margin-top: 70px;
  background-color: var(--token-fd5b7ea2-5628-490e-9359-67ca9bfdbd31, #0b0c13);
}

/* Team (About leadership, R&D experts): Grelix's six-card grid holds two or three people here, so no empty second
   row, and on desktop the cards are centred at their usual width. */
[data-framer-name="Team Section"] .framer-1j7rjup { grid-template-rows: none; }
@media (min-width: 1250px) {
  [data-framer-name="Team Section"] .framer-1j7rjup { grid-template-columns: repeat(auto-fit, minmax(50px, calc((100% - 44px) / 3))); }
}
