/* ── Chip Generations Widget Styles (25% Left / 75% Right Equal Space) ── */

.mxgen-display {
  position: relative;
  width: 100%;
  padding: clamp(60px, 7vw, 90px) var(--gut, 24px) clamp(50px, 6vw, 80px);
  background: transparent;
  overflow: hidden;
  color: #ffffff;
  box-sizing: border-box;
}

/* Subtle ambient backdrop radial glow behind the chips */
.mxgen-display::before {
  content: "";
  position: absolute;
  top: 32%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: min(1080px, 92vw);
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(31, 177, 213, 0.09) 0%, rgba(31, 177, 213, 0.02) 55%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ── Split Layout: Left 25% / Right 75% ── */
@media (min-width: 1025px) {
  .mxgen-display.mxgen-layout--split {
    padding-left: 0;
    padding-right: 0;
  }
}

.mxgen-left:empty {
  display: none;
}

.mxgen-layout--split .mxgen-inner {
  display: grid;
  grid-template-columns: 25% 75%;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mxgen-layout--full .mxgen-inner {
  display: block;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Left Column (25%) ── */
.mxgen-left {
  position: relative;
  padding: 40px clamp(20px, 2.5vw, 40px) 20px 0;
  box-sizing: border-box;
}

/* Vertical divider at 25% mark */
.mxgen-layout--split .mxgen-left::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(113, 205, 222, 0.04) 0%, rgba(113, 205, 222, 0.16) 30%, rgba(113, 205, 222, 0.16) 75%, transparent 100%);
  pointer-events: none;
}

.mxgen-eyebrow {
  display: block;
  font-family: var(--display, 'Open Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turquoise, #1fb1d5);
  margin-bottom: 16px;
}

.mxgen-title {
  font-family: var(--display, 'Open Sans', sans-serif);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 16px;
}

.mxgen-desc {
  font-family: var(--body, 'Open Sans', sans-serif);
  font-size: 14px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

/* ── Right Column (75%) ── */
.mxgen-right {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* 3 Equal Columns inside the 75% Right Space (Each is 25% of total width) */
.mxgen-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0 auto;
  z-index: 1;
}

/* Vertical dividers at 50% and 75% marks */
.mxgen-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 30px 18px 0;
  box-sizing: border-box;
}

.mxgen-chip:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(113, 205, 222, 0.04) 0%, rgba(113, 205, 222, 0.16) 30%, rgba(113, 205, 222, 0.16) 75%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.mxgen-chip-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Chip image container and hover physics */
.mxgen-photo {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: clamp(200px, 20vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 0 6px 16px;
}

.mxgen-photo::before {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 11%;
  right: 11%;
  height: 48%;
  border-radius: 50%;
  filter: blur(38px);
  background: radial-gradient(ellipse, rgba(30, 143, 162, 0.16), transparent 72%);
  pointer-events: none;
}

.mxgen-photo img {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 86%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.75));
  animation: mxgen-chip-float 6.5s ease-in-out infinite;
  will-change: transform;
}

.mxgen-chip:nth-child(1) .mxgen-photo img {
  animation-delay: 0s;
}

.mxgen-chip:nth-child(2) .mxgen-photo img {
  animation-delay: -2.2s;
}

.mxgen-chip:nth-child(3) .mxgen-photo img {
  animation-delay: -4.4s;
}

@keyframes mxgen-chip-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mxgen-chip:hover .mxgen-photo img {
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(31, 177, 213, 0.35));
}

/* Glowing plinth light pool beneath each chip */
.mxgen-plinth {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 9px;
  height: 14px;
  border: 1px solid rgba(66, 174, 199, 0.38);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 171, 198, 0.14), transparent 66%);
  box-shadow: 0 0 28px rgba(30, 185, 210, 0.09), inset 0 0 24px rgba(22, 164, 187, 0.09);
  transform: perspective(150px) rotateX(52deg);
  pointer-events: none;
  z-index: 1;
}

.mxgen-plinth::before {
  content: "";
  position: absolute;
  inset: -8px 12%;
  border-radius: 50%;
  border: 1px solid rgba(113, 205, 222, 0.16);
  animation: mxgen-ring 4.3s ease-in-out infinite;
}

@keyframes mxgen-ring {
  0%, 100% { opacity: 0.3; transform: scale(0.96); }
  48% { opacity: 1; transform: scale(1.08); }
}

.mxgen-chip:hover .mxgen-plinth {
  border-color: rgba(113, 205, 222, 0.7);
  box-shadow: 0 0 35px rgba(31, 177, 213, 0.55), inset 0 0 20px rgba(31, 177, 213, 0.35);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Chip Name */
.mxgen-chip-name {
  font-family: var(--display, 'Open Sans', -apple-system, sans-serif);
  font-size: clamp(19px, 1.6vw, 23px)!important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center;
  margin: 6px 0 10px;
  position: relative;
  width: 100%;
}

/* ── SVG Rail System ── */
.mxgen-rail {
  position: relative;
  width: 100%;
  margin: 0 auto;
  line-height: 0;
  z-index: 1;
}

.mxgen-rail svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mxgen-branch {
  fill: none;
  stroke: rgba(113, 205, 222, 0.32);
  stroke-width: 1.2;
}

.mxgen-rail-track {
  fill: none;
  stroke: rgba(113, 205, 222, 0.22);
  stroke-width: 1.5;
}

/* Continuous glowing runner beam along the rail */
.mxgen-rail-glow {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 140 860;
  animation: mxgen-beam 4.6s linear infinite;
}

.mxgen-rail-glow.second {
  stroke-dasharray: 90 910;
  animation: mxgen-beam 6.4s linear infinite reverse;
  animation-delay: -2.3s;
}

@keyframes mxgen-beam {
  0% { stroke-dashoffset: 1100; }
  100% { stroke-dashoffset: -1100; }
}

.mxgen-beacon {
  fill: #71cdde;
  filter: drop-shadow(0 0 6px #1fb1d5);
  animation: mxgen-beacon-pulse 2.2s ease-in-out infinite alternate;
}

@keyframes mxgen-beacon-pulse {
  0% { r: 3.5; opacity: 0.65; filter: drop-shadow(0 0 4px #1fb1d5); }
  100% { r: 4.8; opacity: 1; filter: drop-shadow(0 0 10px #71cdde); }
}

.mxgen-rail svg circle[fill="#d5fbff"] {
  filter: drop-shadow(0 0 6px #d5fbff);
}

/* ── Shared Foundation Badge ── */

/* 9-dot diamond pattern icon */

/* ── Responsive Adaptations ── */

/* Tablet & Below (<= 1024px) */
@media (max-width: 1024px) {
  .mxgen-display,
  .mxgen-display.mxgen-layout--split {
    padding: clamp(48px, 6vw, 70px) clamp(20px, 4vw, 36px) clamp(40px, 5vw, 60px);
  }

  .mxgen-layout--split .mxgen-inner {
    grid-template-columns: 1fr;
  }

  .mxgen-left {
    padding: 0 0 36px 0;
    max-width: 680px;
  }

  .mxgen-layout--split .mxgen-left::after {
    display: none;
  }

  .mxgen-photo {
    max-width: 220px;
    height: 220px;
  }

  .mxgen-plinth {
    left: 10%;
    right: 10%;
    height: 14px;
    width: auto;
  }

  .mxgen-chip-name {
    font-size: 19px;
  }
}

/* Small Tablet & Mobile (<= 680px) */
@media (max-width: 680px) {
  .mxgen-display,
  .mxgen-display.mxgen-layout--split {
    padding: 40px 16px 40px;
  }

  .mxgen-left {
    padding: 0 0 28px 0;
    text-align: left;
  }

  .mxgen-eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
  }

  .mxgen-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .mxgen-desc {
    font-size: 13.5px;
    line-height: 1.6;
  }

  /* Stack chips into clean premium cards */
  .mxgen-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mxgen-chip {
    padding: 24px 20px 20px;
    background: radial-gradient(ellipse at 50% 30%, rgba(31, 177, 213, 0.08) 0%, rgba(8, 16, 24, 0.72) 70%);
    border: 1px solid rgba(113, 205, 222, 0.18);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(31, 177, 213, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .mxgen-chip:hover {
    border-color: rgba(113, 205, 222, 0.45);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(31, 177, 213, 0.2);
  }

  .mxgen-chip:not(:last-child)::after {
    display: none;
  }

  .mxgen-photo {
    max-width: 220px;
    height: 200px;
    margin-bottom: 12px;
  }

  .mxgen-photo img {
    max-width: 90%;
    max-height: 90%;
  }

  .mxgen-plinth {
    left: 8%;
    right: 8%;
    height: 12px;
    width: auto;
    bottom: -4px;
  }

  .mxgen-chip-name {
    font-size: 20px;
    margin-bottom: 0;
  }

  /* Hide horizontal 3-column SVG rail on mobile */
  .mxgen-rail {
    display: none;
  }

}

/* ── Reduced Motion Support ── */
@media (prefers-reduced-motion: reduce) {
  .mxgen-plinth::before,
  .mxgen-rail-glow,
  .mxgen-beacon,
  .mxgen-rail svg circle[fill="#d5fbff"] {
    animation: none !important;
  }
  .mxgen-photo img {
    transition: none !important;
  }
}

/* Shared foundation: matches html_design/technology2.html. */
.mxgen-ground-wrap { display:flow-root; margin:0; position:relative; z-index:2; }
.mxgen-ground-wrap::before { content:none; display:none; }
.mxgen-ground{ box-sizing:border-box; font-family:var(--body, "Open Sans", system-ui, sans-serif); line-height:1.6; font-weight:400; flex-wrap:nowrap; width:auto; border-radius:0; backdrop-filter:none; -webkit-backdrop-filter:none; text-decoration:none; transform:none; transition:none; position:relative; z-index:2; display:flex; align-items:center; justify-content:center; gap:17px;
  max-width:720px; margin:-15px auto 0; padding:21px 20px; border:1px solid rgba(113,205,222,.27);
  background:linear-gradient(105deg, rgba(31,177,213,.075), rgba(7,13,19,.93) 34%, rgba(31,177,213,.075));
  box-shadow:0 0 65px rgba(20,160,182,.11), inset 0 0 24px rgba(28,115,135,.045); }
.mxgen-ground-mark{ margin:0; padding:0; flex-shrink:1; display:grid; grid-template-columns:repeat(3,5px); gap:4px; transform:rotate(45deg); margin-right:5px; }
.mxgen-ground-mark i{ margin:0; padding:0; border:0; border-radius:0; opacity:1; display:block; width:5px; height:5px; background:var(--sky, #71cdde); box-shadow:0 0 8px rgba(113,205,222,.5); }
.mxgen-ground-mark i:nth-child(even){ opacity:.34; }
.mxgen-ground b{ margin:0; padding:0; white-space:normal; font-family:var(--display, "Open Sans", system-ui, sans-serif); font-size:clamp(12px,1.05vw,14px); font-weight:700; letter-spacing:.17em;
  text-transform:uppercase; color:#e5fbff; }
.mxgen-ground small{ margin:0; padding:0; display:inline; white-space:normal; font-weight:400; font-size:12px; letter-spacing:.06em; color:rgba(255,255,255,.44); }

@media (max-width:700px) {
  .mxgen-ground { margin:24px 0 0; padding:20px 15px; gap:12px; }
  .mxgen-ground b { font-size:11px; letter-spacing:.08em; }
  .mxgen-ground small { display:none; }
}
