/* =========================================================================
   Cognihex — site styles
   ========================================================================= */

/* ---------- Design Tokens ------------------------------------------------ */
:root {
  --surface: 249 249 249;
  --background: 249 249 249;
  --on-surface: 26 28 28;
  --on-surface-variant: 71 77 88;
  --outline-variant: 194 198 214;

  --surface-container: 238 238 238;
  --surface-container-low: 243 243 243;
  --surface-container-lowest: 255 255 255;
  --surface-container-high: 232 232 232;

  --primary: 17 24 39;
  --primary-container: 30 41 59;
  --primary-soft: 71 85 105;
  --on-primary: 255 255 255;

  --examally-primary: 0 88 190;
  --examally-container: 33 112 228;

  --app-nav-height: 4rem;
  --app-container-max: 76rem;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: rgb(var(--background));
  color: rgb(var(--on-surface));
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', Roboto,
    Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: rgb(var(--on-surface));
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgb(var(--primary));
  outline-offset: 2px;
  border-radius: 6px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: rgb(var(--primary));
  color: rgb(var(--on-primary));
  font-weight: 700;
  border-radius: 8px;
  z-index: 100;
}

/* ---------- Layout primitives ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--app-container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* ---------- Top Navigation --------------------------------------------- */
.top-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(var(--background) / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--outline-variant) / 0.4);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--app-nav-height);
  max-width: var(--app-container-max);
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgb(var(--primary));
  color: rgb(var(--on-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.brand__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  color: rgb(var(--on-surface));
}

.top-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--on-surface-variant));
  transition:
    color 150ms var(--ease-standard),
    background-color 150ms var(--ease-standard);
}

.nav-link:hover {
  color: rgb(var(--primary));
  background: rgba(var(--primary) / 0.04);
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 0.65rem;
  transition:
    transform 150ms var(--ease-standard),
    background-color 150ms var(--ease-standard),
    color 150ms var(--ease-standard),
    border-color 150ms var(--ease-standard);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: rgb(var(--primary));
  color: rgb(var(--on-primary));
}

.btn--primary:hover {
  background: rgb(var(--primary-container));
}

.btn--ghost {
  background: transparent;
  color: rgb(var(--on-surface));
  border: 1px solid rgb(var(--outline-variant));
}

.btn--ghost:hover {
  border-color: rgb(var(--primary));
  color: rgb(var(--primary));
}

.btn--lg {
  padding: 0.9rem 1.35rem;
  font-size: 0.95rem;
}

/* ---------- Product card (ExamAlly) ------------------------------------ */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgb(var(--surface-container-lowest));
  border: 1px solid rgba(var(--outline-variant) / 0.7);
  border-radius: 1rem;
  color: inherit;
  transition:
    transform 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    border-color 200ms var(--ease-standard);
  min-height: 13rem;
}

a.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--examally-primary) / 0.5);
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.22);
}

.product-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-card__mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgb(var(--examally-primary)) 0%,
    rgb(var(--examally-container)) 100%
  );
  box-shadow: 0 10px 22px -12px rgba(var(--examally-primary) / 0.6);
}

.product-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: rgb(var(--on-surface));
}

.product-card__sub {
  color: rgb(var(--on-surface-variant));
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0.35rem;
  border: 1px solid rgba(var(--outline-variant) / 0.8);
  color: rgb(var(--on-surface-variant));
  background: rgb(var(--surface));
}

.chip--primary {
  color: rgb(var(--examally-primary));
  border-color: rgba(var(--examally-primary) / 0.3);
  background: rgba(var(--examally-primary) / 0.06);
}

.product-card__visit {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgb(var(--examally-primary));
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

a.product-card:hover .product-card__visit {
  text-decoration: underline;
}

/* ---------- 404 (minimal; v2 footer/nav need cx2-page on body) -------- */
body.nf-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nf-404__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--app-nav-height) + 3rem) 1.5rem 3rem;
}

.nf-404__inner {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.nf-404__inner .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.cx2-page.nf-404 .nf-404__inner .eyebrow {
  color: var(--cx2-rose);
}

.nf-404__inner h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.nf-404__inner p {
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

body.cx2-page.nf-404 .nf-404__inner p {
  font-size: var(--cx2-text-lead);
  color: var(--cx2-ink-muted);
}

body.nf-404 .cx-wave {
  display: block;
  line-height: 0;
  margin-top: auto;
}

body.nf-404 .cx-wave-svg {
  display: block;
  width: 100%;
  height: clamp(2rem, 4vw, 3.5rem);
}

body.cx2-page.nf-404 .cx-wave-path {
  fill: var(--cx2-ink);
}

body.nf-404 .cx-footer {
  margin-top: 0;
}

/* ---------- Layout & sections --------------------------------------------- */

body.cx2-page #main {
  padding-top: var(--app-nav-height);
}

body.cx2-page {
  --cx2-paper: #f6f3ee;
  --cx2-paper-deep: #ebe6de;
  --cx2-surface: #ffffff;
  --cx2-ink: #141820;
  --cx2-ink-muted: #4a4f5c;
  --cx2-slate: #2e5c8a;
  --cx2-slate-soft: rgba(46, 92, 138, 0.12);
  --cx2-rose: #7a3d4e;
  --cx2-rose-soft: rgba(122, 61, 78, 0.1);
  --cx2-border: rgba(20, 24, 32, 0.08);
  --cx2-shadow: 0 24px 64px -32px rgba(20, 24, 32, 0.18);
  --cx2-shadow-soft: 0 12px 40px -20px rgba(46, 92, 138, 0.14);
  --cx2-radius: 1.25rem;
  --cx2-radius-lg: 1.75rem;
  --cx2-max: 76rem;
  --cx2-text-sm: 0.875rem;
  --cx2-text-base: 1rem;
  --cx2-text-lead: 1.125rem;
  --cx2-display: clamp(2.25rem, 5vw, 3.5rem);
  --cx2-h2: clamp(1.65rem, 3.2vw, 2.25rem);
  --cx2-h3: clamp(1.1rem, 2vw, 1.25rem);
  --cx2-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --cx2-font-body: Inter, system-ui, sans-serif;
  --cx2-ease: cubic-bezier(0.4, 0, 0.2, 1);

  background: var(--cx2-paper);
  color: var(--cx2-ink);
  font-family: var(--cx2-font-body);
  font-size: var(--cx2-text-base);
  line-height: 1.65;
}

body.cx2-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, var(--cx2-slate-soft), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 20%, var(--cx2-rose-soft), transparent 50%),
    var(--cx2-paper);
}

body.cx2-page h1,
body.cx2-page h2,
body.cx2-page h3 {
  font-family: var(--cx2-font-display);
  color: var(--cx2-ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.cx2-page .container {
  max-width: var(--cx2-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Typography utilities ---------------------------------------- */
.cx2-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--cx2-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cx2-rose);
}

.cx2-prose {
  font-size: var(--cx2-text-lead);
  line-height: 1.68;
  color: var(--cx2-ink-muted);
}

.cx2-prose p {
  margin: 0 0 1rem;
}

.cx2-prose p:last-child {
  margin-bottom: 0;
}

.cx2-inline-link {
  color: var(--cx2-slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(46, 92, 138, 0.35);
  transition: color 0.2s var(--cx2-ease);
}

.cx2-inline-link:hover {
  color: var(--cx2-rose);
}

/* ---------- Section shell ------------------------------------------------ */
.cx2-section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 6.5rem);
}

.cx2-section__inner {
  position: relative;
  z-index: 1;
}

/* ---------- Waves (visible dividers) ------------------------------------- */
.cx2-wave {
  display: block;
  line-height: 0;
  margin-top: -1px;
}

.cx2-wave-svg {
  display: block;
  width: 100%;
  height: clamp(2rem, 4vw, 3.5rem);
}

.cx2-wave-path {
  fill: var(--cx2-paper);
}

.cx2-section--who + .cx2-wave .cx2-wave-path,
.cx2-section--who .cx2-wave--bottom .cx2-wave-path {
  fill: var(--cx2-paper-deep);
}

.cx2-section--who {
  background: var(--cx2-paper-deep);
}

.cx2-section--pillars {
  background: var(--cx2-surface);
}

.cx2-section--pillars + .cx2-wave .cx2-wave-path {
  fill: var(--cx2-paper);
}

@media (prefers-reduced-motion: no-preference) {
  .cx2-wave-path {
    animation: cx2-wave-drift 14s ease-in-out infinite alternate;
  }
}

@keyframes cx2-wave-drift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-2%);
  }
}

/* ---------- Nav (v2 polish) ---------------------------------------------- */
body.cx2-page .cx-top-nav {
  background: rgba(246, 243, 238, 0.72);
  border-bottom: 1px solid var(--cx2-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.cx2-page .cx-top-nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px -16px rgba(20, 24, 32, 0.12);
}

body.cx2-page .brand__mark {
  background: var(--cx2-ink);
  color: var(--cx2-paper);
  border-radius: 0.5rem;
  font-family: var(--cx2-font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.cx2-page .brand__name {
  color: var(--cx2-ink);
  font-family: var(--cx2-font-display);
}

body.cx2-page .nav-link {
  color: var(--cx2-ink-muted);
  font-size: var(--cx2-text-sm);
  font-weight: 500;
}

body.cx2-page .nav-link:hover {
  color: var(--cx2-ink);
}

body.cx2-page .nav-toggle {
  border-color: var(--cx2-border);
  color: var(--cx2-ink);
  background: rgba(255, 255, 255, 0.6);
}

body.cx2-page .top-nav__drawer-panel {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--cx2-border);
}

body.cx2-page .top-nav__inner {
  flex-wrap: nowrap;
  gap: 0.75rem 1.25rem;
}

body.cx2-page .brand {
  flex-shrink: 0;
}

.cx2-primary-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx2-primary-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-family: var(--cx2-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cx2-ink-muted);
  text-decoration: none;
  transition:
    color 0.2s var(--cx2-ease),
    background 0.2s var(--cx2-ease);
  white-space: nowrap;
}

.cx2-primary-nav__link:hover,
.cx2-primary-nav__link:focus-visible {
  color: var(--cx2-ink);
  background: rgba(46, 92, 138, 0.08);
}

.cx2-primary-nav--desktop {
  display: none;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .cx2-primary-nav--desktop {
    display: flex;
  }
}

.cx2-primary-nav--mobile {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.cx2-primary-nav--mobile .cx2-primary-nav__link {
  justify-content: center;
  width: 100%;
}

/* ---------- Contact card ------------------------------------------------- */
.cx2-section--contact {
  padding-block: clamp(3.5rem, 8vw, 5rem);
  background: var(--cx2-paper);
}

.cx2-contact-card {
  max-width: 32rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  background: var(--cx2-surface);
  border: 1px solid var(--cx2-border);
  border-radius: var(--cx2-radius-lg);
  box-shadow: var(--cx2-shadow-soft);
}

.cx2-contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: var(--cx2-h2);
}

.cx2-contact-card__lead {
  margin: 0 0 1.5rem;
  font-size: var(--cx2-text-lead);
  line-height: 1.65;
  color: var(--cx2-ink-muted);
}

.cx2-contact-card__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--cx2-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cx2-slate);
  text-decoration: none;
  background: var(--cx2-slate-soft);
  border: 1px solid rgba(46, 92, 138, 0.2);
  transition:
    background 0.2s var(--cx2-ease),
    color 0.2s var(--cx2-ease);
}

.cx2-contact-card__email:hover {
  color: var(--cx2-ink);
  background: rgba(46, 92, 138, 0.16);
}

/* ---------- Legal pages (v2 typography) -------------------------------- */
body.cx2-page .cx-legal {
  scroll-margin-top: calc(var(--app-nav-height) + 0.75rem);
}

body.cx2-page .cx-legal__padding {
  padding-block: calc(var(--app-nav-height) + clamp(2rem, 5vw, 3rem))
    clamp(3rem, 8vw, 4.5rem);
}

body.cx2-page .cx-legal__inner {
  max-width: 46rem;
}

body.cx2-page .cx-legal__inner h1,
body.cx2-page .cx-legal__inner h2,
body.cx2-page .cx-legal__inner h3 {
  font-family: var(--cx2-font-display);
  color: var(--cx2-ink);
}

body.cx2-page .cx-legal__inner h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
}

body.cx2-page .cx-legal__meta,
body.cx2-page .cx-legal__inner p,
body.cx2-page .cx-legal__inner li {
  font-family: var(--cx2-font-body);
  font-size: var(--cx2-text-base);
  line-height: 1.68;
  color: var(--cx2-ink-muted);
}

body.cx2-page .cx-legal__notice {
  background: var(--cx2-surface);
  border: 1px solid var(--cx2-border);
  color: var(--cx2-ink-muted);
}

body.cx2-page .cx-legal__inner a {
  color: var(--cx2-slate);
  font-weight: 600;
}

body.cx2-page .cx-legal__inner a:hover {
  color: var(--cx2-rose);
}

body.cx2-page .cx-legal__inner h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: clamp(1.2rem, 2vw, 1.35rem);
}

body.cx2-page .cx-legal__inner h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--cx2-ink-muted);
}

body.cx2-page .cx-legal__inner p {
  margin: 0 0 1rem;
}

body.cx2-page .cx-legal__inner ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

body.cx2-page .cx-legal__inner li {
  margin-bottom: 0.45rem;
}

body.cx2-page .cx-footer__grid {
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 719px) {
  body.cx2-page .cx-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero --------------------------------------------------------- */
.cx2-section--hero {
  min-height: min(88vh, 52rem);
  padding-block: clamp(5rem, 12vh, 7rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.cx2-hero__glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: min(70vw, 42rem);
  height: min(70vw, 42rem);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 40% 40%, rgba(46, 92, 138, 0.2), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(122, 61, 78, 0.12), transparent 50%);
  animation: cx2-glow-drift 18s ease-in-out infinite alternate;
}

@keyframes cx2-glow-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, 4%) scale(1.05);
  }
}

.cx2-hero__stage {
  position: relative;
  display: grid;
  gap: 2.5rem;
  min-height: min(70vh, 40rem);
  align-content: start;
  align-items: start;
}

/* Section illustrations — preserve intrinsic aspect ratio (no grid stretch) */
.cx2-hero__media,
.cx2-vision__media,
.cx2-building__media {
  display: block;
  width: 100%;
  max-width: min(100%, 36rem);
  height: auto;
  align-self: start;
  justify-self: center;
}

.cx2-hero__media img,
.cx2-vision__media img,
.cx2-building__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}

.cx2-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  padding-top: clamp(0.5rem, 3vh, 2rem);
}

.cx2-hero__label {
  margin: 0 0 1rem;
  font-family: var(--cx2-font-display);
  font-size: var(--cx2-text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx2-slate);
}

.cx2-hero__title {
  margin: 0;
  font-size: var(--cx2-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cx2-hero__lead {
  margin: 1.25rem 0 0;
  font-size: var(--cx2-text-lead);
  line-height: 1.68;
  color: var(--cx2-ink-muted);
  max-width: 34ch;
}

.cx2-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cx2-hero__media {
  position: relative;
  z-index: 1;
  margin: 0;
}

.cx2-hero__media img {
  aspect-ratio: 1024 / 682;
  margin-inline: auto;
  filter: drop-shadow(var(--cx2-shadow));
}

@media (min-width: 900px) {
  .cx2-hero__stage {
    min-height: min(75vh, 44rem);
  }

  .cx2-hero__media {
    position: absolute;
    right: 6%;
    bottom: -6%;
    width: min(52%, 34rem);
    max-width: none;
    height: auto;
    transform: rotate(-2deg);
  }

  .cx2-hero__media img {
    max-width: 100%;
    margin: 0;
  }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .cx2-hero__media {
    animation: cx2-hero-float 5.5s ease-in-out infinite;
  }
}

@keyframes cx2-hero-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

/* ---------- Who we are (diagram left) ------------------------------------ */
.cx2-who__layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cx2-who__layout {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.cx2-who__diagram-wrap {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--cx2-radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--cx2-border);
  box-shadow: var(--cx2-shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cx2-who__copy {
  max-width: 44rem;
}

.cx2-who__title {
  margin: 0;
  font-size: var(--cx2-h2);
  line-height: 1.28;
}

.cx2-who__closer {
  margin: 1.25rem 0 0;
  font-size: var(--cx2-text-lead);
  line-height: 1.68;
  color: var(--cx2-ink-muted);
}

/* Who diagram (ported from v1) */
.cx-who-diagram {
  display: block;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.cx-who-step__card {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(20, 24, 32, 0.1);
  stroke-width: 1.5;
}

.cx-who-step__label {
  font-family: var(--cx2-font-body);
  font-size: 13px;
  font-weight: 600;
}

.cx-who-step {
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.cx-who-connector {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  opacity: 0.35;
}

.cx-who-bar {
  transition: fill 0.35s ease;
}

.cx-who-feedback__check {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
}

.cx-who-progress__line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
}

.cx-who-progress__dot {
  opacity: 0.35;
  transform-origin: center;
  transform-box: fill-box;
}

.cx-who-diagram.is-animated .cx-who-step--1 {
  animation: cx-who-focus-1 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-step--2 {
  animation: cx-who-focus-2 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-step--3 {
  animation: cx-who-focus-3 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-step--1 .cx-who-step__card {
  animation: cx-who-card-1 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-step--2 .cx-who-step__card {
  animation: cx-who-card-2 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-step--3 .cx-who-step__card {
  animation: cx-who-card-3 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-connector--1 {
  animation: cx-who-draw-conn 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-connector--2 {
  animation: cx-who-draw-conn-2 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-bar--1 {
  animation: cx-who-fill-bar 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-bar--2 {
  animation: cx-who-fill-bar-2 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-bar--3 {
  animation: cx-who-fill-bar-3 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-feedback__ring {
  animation: cx-who-pulse-ring 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-feedback__check {
  animation: cx-who-draw-check 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-progress__line {
  animation: cx-who-draw-line 9s ease-in-out infinite;
}
.cx-who-diagram.is-animated .cx-who-progress__dot {
  animation: cx-who-pulse-dot 9s ease-in-out infinite;
}

@keyframes cx-who-focus-1 {
  0%, 28% { opacity: 1; }
  33%, 100% { opacity: 0.45; }
}
@keyframes cx-who-focus-2 {
  0%, 28% { opacity: 0.45; }
  33%, 61% { opacity: 1; }
  66%, 100% { opacity: 0.45; }
}
@keyframes cx-who-focus-3 {
  0%, 61% { opacity: 0.45; }
  66%, 94% { opacity: 1; }
  100% { opacity: 0.45; }
}
@keyframes cx-who-card-1 {
  0%, 28% {
    stroke: rgba(46, 92, 138, 0.55);
    filter: drop-shadow(0 4px 12px rgba(46, 92, 138, 0.15));
  }
  33%, 100% {
    stroke: rgba(20, 24, 32, 0.1);
    filter: none;
  }
}
@keyframes cx-who-card-2 {
  0%, 28% { stroke: rgba(20, 24, 32, 0.1); filter: none; }
  33%, 61% {
    stroke: rgba(46, 92, 138, 0.55);
    filter: drop-shadow(0 4px 12px rgba(46, 92, 138, 0.15));
  }
  66%, 100% { stroke: rgba(20, 24, 32, 0.1); filter: none; }
}
@keyframes cx-who-card-3 {
  0%, 61% { stroke: rgba(20, 24, 32, 0.1); filter: none; }
  66%, 94% {
    stroke: rgba(122, 61, 78, 0.5);
    filter: drop-shadow(0 4px 12px rgba(122, 61, 78, 0.12));
  }
  100% { stroke: rgba(20, 24, 32, 0.1); filter: none; }
}
@keyframes cx-who-draw-conn {
  0%, 24% { stroke-dashoffset: 24; opacity: 0.2; }
  28%, 61% { stroke-dashoffset: 0; opacity: 1; }
  66%, 100% { stroke-dashoffset: 0; opacity: 0.35; }
}
@keyframes cx-who-draw-conn-2 {
  0%, 57% { stroke-dashoffset: 24; opacity: 0.2; }
  61%, 94% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.35; }
}
@keyframes cx-who-fill-bar {
  0%, 8% { fill: #e8eef5; }
  12%, 28% { fill: #2e5c8a; }
  33%, 100% { fill: #e8eef5; }
}
@keyframes cx-who-fill-bar-2 {
  0%, 14% { fill: #e8eef5; }
  18%, 28% { fill: #2e5c8a; }
  33%, 100% { fill: #e8eef5; }
}
@keyframes cx-who-fill-bar-3 {
  0%, 20% { fill: #e8eef5; }
  24%, 28% { fill: #2e5c8a; }
  33%, 100% { fill: #e8eef5; }
}
@keyframes cx-who-pulse-ring {
  0%, 28% { fill: rgba(46, 92, 138, 0.12); }
  33%, 38% { fill: rgba(46, 92, 138, 0.28); }
  43%, 61% { fill: rgba(46, 92, 138, 0.12); }
  66%, 100% { fill: rgba(46, 92, 138, 0.12); }
}
@keyframes cx-who-draw-check {
  0%, 30% { stroke-dashoffset: 28; }
  38%, 61% { stroke-dashoffset: 0; }
  66%, 100% { stroke-dashoffset: 28; }
}
@keyframes cx-who-draw-line {
  0%, 63% { stroke-dashoffset: 220; }
  72%, 94% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 220; }
}
@keyframes cx-who-pulse-dot {
  0%, 70% { opacity: 0.35; transform: scale(1); }
  78%, 94% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 0.35; transform: scale(1); }
}

/* ---------- Vision (image left, card overlap) ---------------------------- */
.cx2-vision__stage {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .cx2-vision__stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    align-items: start;
  }
}

.cx2-vision__media {
  margin: 0;
  position: relative;
  z-index: 1;
}

.cx2-vision__media img {
  aspect-ratio: 1;
  border-radius: var(--cx2-radius-lg) var(--cx2-radius-lg) var(--cx2-radius)
    var(--cx2-radius-lg);
  filter: drop-shadow(var(--cx2-shadow-soft));
}

.cx2-vision__caption {
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--cx2-font-display);
  font-size: var(--cx2-text-sm);
  font-weight: 600;
  font-style: italic;
  color: var(--cx2-slate);
  border-left: 3px solid var(--cx2-rose);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 0.5rem 0.5rem 0;
}

.cx2-vision__card {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--cx2-surface);
  border: 1px solid var(--cx2-border);
  border-radius: var(--cx2-radius-lg);
  box-shadow: var(--cx2-shadow);
}

@media (min-width: 900px) {
  .cx2-vision__card {
    margin-top: 3rem;
    margin-left: -3.5rem;
    align-self: center;
  }
}

.cx2-vision__card h2 {
  margin: 0 0 1rem;
  font-size: var(--cx2-h2);
}

.cx2-vision__lead {
  margin: 0 0 1.25rem;
  font-size: var(--cx2-text-lead);
  line-height: 1.68;
  color: var(--cx2-ink-muted);
}

.cx2-vision__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cx2-vision__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--cx2-text-base);
  line-height: 1.6;
  color: var(--cx2-ink-muted);
}

.cx2-vision__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cx2-slate), var(--cx2-rose));
}

/* ---------- Pillars bento ------------------------------------------------ */
.cx2-pillars__intro {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.cx2-pillars__intro h2 {
  margin: 0;
  font-size: var(--cx2-h2);
}

.cx2-pillars__intro .cx2-prose {
  margin-top: 0.85rem;
}

.cx2-bento {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .cx2-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(10rem, auto);
    gap: 1.15rem;
  }

  .cx2-bento__item--a {
    grid-column: 1 / span 7;
    grid-row: span 1;
  }

  .cx2-bento__item--b {
    grid-column: 8 / span 5;
  }

  .cx2-bento__item--c {
    grid-column: 1 / span 5;
  }

  .cx2-bento__item--d {
    grid-column: 6 / span 7;
  }
}

.cx2-pillar {
  height: 100%;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  background: var(--cx2-paper);
  border: 1px solid var(--cx2-border);
  border-radius: var(--cx2-radius);
  transition:
    transform 0.35s var(--cx2-ease),
    box-shadow 0.35s var(--cx2-ease),
    border-color 0.35s var(--cx2-ease);
}

.cx2-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 92, 138, 0.2);
  box-shadow: var(--cx2-shadow-soft);
}

.cx2-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: var(--cx2-slate-soft);
  color: var(--cx2-slate);
}

.cx2-pillar h3 {
  margin: 0 0 0.5rem;
  font-size: var(--cx2-h3);
}

.cx2-pillar p {
  margin: 0;
  font-size: var(--cx2-text-base);
  line-height: 1.62;
  color: var(--cx2-ink-muted);
}

.cx2-bento .cx-reveal:nth-child(2) { transition-delay: 0.06s; }
.cx2-bento .cx-reveal:nth-child(3) { transition-delay: 0.12s; }
.cx2-bento .cx-reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Building ----------------------------------------------------- */
.cx2-building__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.cx2-building__head h2 {
  margin: 0 0 0.75rem;
  font-size: var(--cx2-h2);
}

.cx2-building__head > p {
  margin: 0;
  font-size: var(--cx2-text-lead);
  line-height: 1.65;
  color: var(--cx2-ink-muted);
}

.cx2-building__layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .cx2-building__layout {
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.cx2-building__stack h3 {
  margin: 0 0 0.5rem;
  font-size: var(--cx2-h3);
}

.cx2-product-lead {
  margin: 0 0 1.25rem;
  font-size: var(--cx2-text-base);
  line-height: 1.62;
  color: var(--cx2-ink-muted);
}

.cx2-building__media {
  margin: 0;
  position: relative;
}

@media (min-width: 900px) {
  .cx2-building__media {
    margin-top: -4rem;
  }
}

.cx2-building__media img {
  aspect-ratio: 1024 / 768;
  border-radius: var(--cx2-radius-lg);
  filter: drop-shadow(var(--cx2-shadow));
}

/* ---------- Closing band ------------------------------------------------- */
.cx2-section--closing {
  padding-block: clamp(4.5rem, 12vw, 7rem);
  background: var(--cx2-ink);
  color: var(--cx2-paper);
}

.cx2-closing__inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.cx2-closing__title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.28;
  color: var(--cx2-paper);
  letter-spacing: -0.03em;
}

/* ---------- Footer ------------------------------------------------------- */
body.cx2-page .cx-footer {
  background: var(--cx2-ink);
  color: rgba(246, 243, 238, 0.85);
  border-top: none;
  padding-block: 3rem 1.5rem;
}

body.cx2-page .cx-footer__name {
  font-family: var(--cx2-font-display);
  font-size: 1.125rem;
  color: var(--cx2-paper);
}

body.cx2-page .cx-footer__tagline,
body.cx2-page .cx-footer__nav a,
body.cx2-page .cx-footer__contact a {
  color: rgba(246, 243, 238, 0.72);
  font-size: var(--cx2-text-sm);
}

body.cx2-page .cx-footer__nav a:hover,
body.cx2-page .cx-footer__contact a:hover {
  color: var(--cx2-paper);
}

body.cx2-page .cx-footer__nav-label {
  color: rgba(246, 243, 238, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.cx2-page .cx-footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.cx2-page .cx-footer__copy {
  color: rgba(246, 243, 238, 0.45);
  font-size: var(--cx2-text-sm);
}

/* ---------- Scroll reveal (enhanced on v2) ------------------------------- */
body.cx2-page .cx-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s var(--cx2-ease),
    transform 0.7s var(--cx2-ease);
}

body.cx2-page .cx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section scroll + buttons ------------------------------------ */
.cx2-section {
  scroll-margin-top: calc(var(--app-nav-height) + 0.75rem);
}

body.cx2-page .btn--examally-primary {
  background: rgb(var(--examally-primary));
  color: rgb(var(--on-primary));
  border: none;
  border-radius: 0.85rem;
  box-shadow: 0 14px 30px -10px rgba(var(--examally-primary) / 0.55);
}

body.cx2-page .btn--examally-primary:hover {
  opacity: 0.94;
  filter: none;
}

body.cx2-page .nav-link--examally {
  color: rgb(var(--examally-primary));
}

body.cx2-page .btn--examally {
  color: rgb(var(--examally-primary));
  border-color: rgba(var(--examally-primary) / 0.35);
}

body.cx2-page .btn--examally:hover {
  border-color: rgb(var(--examally-primary));
  background: rgba(var(--examally-primary) / 0.06);
}

body.cx2-page .cx-top-nav .top-nav__actions {
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

/* Mobile nav */
body.cx2-page .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--cx2-border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.6);
  color: var(--cx2-ink);
  cursor: pointer;
}

body.cx2-page .nav-toggle__bars {
  display: block;
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

body.cx2-page .nav-toggle__bars::before,
body.cx2-page .nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

body.cx2-page .nav-toggle__bars::before {
  top: -6px;
}

body.cx2-page .nav-toggle__bars::after {
  top: 6px;
}

@media (min-width: 768px) {
  body.cx2-page .nav-toggle {
    display: none;
  }

  body.cx2-page .top-nav__actions--desktop {
    display: flex;
  }
}

@media (max-width: 767px) {
  body.cx2-page .top-nav__actions--desktop {
    display: none;
  }
}

body.cx2-page .top-nav__drawer {
  display: none;
  position: fixed;
  inset: var(--app-nav-height) 0 0 0;
  z-index: 90;
  background: rgba(20, 24, 32, 0.25);
}

body.cx2-page .top-nav__drawer[data-open='true'] {
  display: block;
}

body.cx2-page .top-nav__drawer-panel {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--cx2-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.cx2-page .top-nav__drawer-panel .btn {
  justify-content: center;
}

/* Footer grid */
body.cx2-page .cx-footer__grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  body.cx2-page .cx-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

body.cx2-page .cx-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.cx2-page .cx-footer__nav a {
  font-weight: 600;
  text-decoration: none;
}

body.cx2-page .cx-footer__nav a:hover {
  text-decoration: underline;
}

/* Wave fills between sections */
.cx2-section--hero .cx2-wave-path {
  fill: var(--cx2-paper-deep);
}

.cx2-section--who .cx2-wave--bottom .cx2-wave-path {
  fill: var(--cx2-paper);
}

.cx2-section--vision .cx2-wave .cx2-wave-path {
  fill: var(--cx2-surface);
}

.cx2-section--pillars .cx2-wave-path {
  fill: var(--cx2-paper);
}

/* Hero float on mobile (figure only, no rotation) */
@media (max-width: 899px) {
  .cx2-hero__media {
    transform: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .cx2-hero__media {
      animation: cx2-hero-float-mobile 5.5s ease-in-out infinite;
    }
  }
}

@keyframes cx2-hero-float-mobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.cx2-page .cx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cx2-hero__glow,
  .cx2-hero__media,
  .cx2-wave-path {
    animation: none !important;
  }

  .cx2-hero__media {
    transform: none;
  }

  .cx-who-step { opacity: 1; }
  .cx-who-connector { stroke-dashoffset: 0; opacity: 0.6; }
  .cx-who-feedback__check,
  .cx-who-progress__line { stroke-dashoffset: 0; }
  .cx-who-progress__dot { opacity: 1; }
  .cx-who-diagram.is-animated * { animation: none !important; }

  .cx2-pillar:hover {
    transform: none;
  }
}
