:root {
      --accent: #6b9cff;
      --bg-dark: #0b0f19;
      --glass: rgba(255,255,255,.08);
      --glass-strong: rgba(255,255,255,.16);
      --text: #eef2ff;
      --muted: #c7d2fe;
      --radius: 24px;
      --shadow: 0 10px 30px rgba(0,0,0,.35);
      --panel-speed: 550ms;
      --zoom-speed: 800ms;
    }

    /* Reset & base */
    * { box-sizing: border-box; }
    //html, body { height: 100%; }
    //body {
    //  margin: 0;
    //  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    //  color: var(--text);
    //  background: radial-gradient(1200px 800px at 20% -10%, #12203a 0%, #0b0f19 45%, #070b14 100%);
    //}

    .shell {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 3rem clamp(1rem, 3vw, 2rem);
      color: #FFFFFF;
    }

    .gateway {
      position: relative;
      width: min(1200px, 100%);
      min-height: 70vh;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: 1fr 1fr;
      transition: transform .5s ease;
      isolation: isolate;
    }

    .gateway:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

    /* Center divider cue */
    .divider {
      position: absolute; inset: 0; pointer-events: none; z-index: 3;
      background: linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.12) 50%, transparent 50.3%);
      mix-blend-mode: screen;
      opacity: .35;
      transition: opacity .3s ease;
    }

    .gateway:hover .divider { opacity: .6; }

    .panel {
      position: relative;
      overflow: hidden;
      transition: flex-basis var(--panel-speed) ease, transform var(--panel-speed) ease;
      display: grid;
      place-items: stretch;
      cursor: pointer;
    }


    

    /* For the expansion effect, we switch to flex on large screens */
    @media (min-width: 900px) {
      .gateway { display: flex; }
      .panel { flex: 1 1 50%; }
      .panel:hover { z-index: 2; }
      .panel:hover ~ .panel { transform: scale(.99); }
      .gateway:has(.panel.left:hover) .left { flex-basis: 70%; }
      .gateway:has(.panel.left:hover) .right { flex-basis: 30%; }
      .gateway:has(.panel.right:hover) .right { flex-basis: 70%; }
      .gateway:has(.panel.right:hover) .left { flex-basis: 30%; }
      /* Keyboard support */
      .gateway:has(.panel.left:focus-within) .left { flex-basis: 70%; }
      .gateway:has(.panel.left:focus-within) .right { flex-basis: 30%; }
      .gateway:has(.panel.right:focus-within) .right { flex-basis: 70%; }
      .gateway:has(.panel.right:focus-within) .left { flex-basis: 30%; }
    }

    /* Mobile/Tablet: stack vertically, tap to expand */
    @media (max-width: 899px) {
      .gateway { grid-template-columns: 1fr; }
      .panel { min-height: 45vh; }
      .panel.active { min-height: 60vh; }
    }

    .bg {
      position: absolute; inset: -4%; z-index: 0;
      background-size: cover; background-position: center;
      filter: saturate(105%) contrast(102%);
      transform: scale(1.05);
      transition: transform var(--zoom-speed) ease, filter .6s ease, opacity .6s ease;
      will-change: transform;
    }
    .bg img,
    .bg picture {
      /*position: absolute;*/
      inset: 0;
      width: 100%;
      height: 100%;
      min-height: 740px;
      object-fit: cover; /* This makes the image cover the area without distortion */
      z-index: 0;
    }

    .block--type-two-way-complex .overlay {
      position: relative; z-index: 2;
      display: grid; place-items: center;
      padding: clamp(1rem, 5vw, 3rem);
      background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.45));
      backdrop-filter: blur(2px);
    }

    .cardy {
      width: min(560px, 88%);
      background: linear-gradient(180deg, var(--glass), var(--glass-strong));
      border: 1px solid rgba(255,255,255,.12);
      border-radius: calc(var(--radius) * 0.85);
      padding: clamp(1rem, 3.6vw, 2rem);
      box-shadow: 0 8px 24px rgba(0,0,0,.35);
      transform: translateY(6px);
      transition: transform .5s ease, box-shadow .5s ease, background .5s ease, border-color .5s ease;
    }

    .panel:hover .cardy, .panel:focus-within .cardy {
      transform: translateY(0);
      box-shadow: 0 12px 30px rgba(0,0,0,.45);
      background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.20));
      border-color: rgba(255,255,255,.25);
    }
    .field--name-field-left-block-body,
    .field--name-field-right-block-body {
      margin-bottom: 1em;
    }

    .block--type-two-way-complex h2 {
      margin: 0 0 .35rem 0;
      font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
      letter-spacing: .2px;
    }

    .block--type-two-way-complex p { 
      margin: .25rem 0 1rem 0; 
      color: var(--text); 
      line-height: 1.45; 
      font-size: 1.2em;
      font-family: Lato;
    }

    .cta {
      display: inline-grid; place-items: center; gap: .5rem;
      grid-auto-flow: column;
      padding: .85rem 1.1rem;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.28);
      background: radial-gradient(160% 200% at 0% 0%, rgba(255,255,255,.22), rgba(255,255,255,.06));
      color: #fff; text-decoration: none; font-weight: 600;
      transition: transform .25s ease, box-shadow .25s ease, border-color .3s ease, background .3s ease;
      box-shadow: 0 6px 18px rgba(0,0,0,.28);
      will-change: transform;
    }
    .cta:focus { outline: 3px solid var(--accent); outline-offset: 3px; }

    .panel:hover .cta, .panel:focus-within .cta { border-color: rgba(255,255,255,.45); }

    .cta .arrow { transition: transform .25s ease; display: inline-block; }
    .cta:hover .arrow { transform: translateX(3px); }

    /* Magnetic micro‑interaction (limited range) */
    .magnet { transform: translate3d(var(--mx, 0), var(--my, 0), 0); }
    .magnet:hover {
      background-color: rgba(255, 255, 0, 0.2);
    }
    /* Prefers-reduced-motion accessibility */
    @media (prefers-reduced-motion: reduce) {
      .bg, .panel, .cardy, .cta { transition: none !important; }
      .gateway { scroll-behavior: auto; }
    }

    /* Tiny helper badge */
    .badge {
      position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
      z-index: 4; opacity: .9;
      font-size: 12px; letter-spacing: .3px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.18);
      padding: .35rem .6rem; border-radius: 999px;
      backdrop-filter: blur(2px);
    }
    /* In two-way-complex.css */

.panel {
  position: relative;
  overflow: hidden;
  transition: flex-basis var(--panel-speed) ease, transform var(--panel-speed) ease;
  display: grid;
  place-items: stretch;
  cursor: pointer;
  will-change: flex-basis, transform; /* Add this line */
}

.bg {
  position: absolute; inset: -4%; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(105%) contrast(102%);
  transform: scale(1.05);
  transition: transform var(--zoom-speed) ease, filter .6s ease, opacity .6s ease;
  will-change: transform; /* This was already here, which is great! */
}

.cardy {
  width: min(560px, 88%);
  background: linear-gradient(180deg, var(--glass), var(--glass-strong));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) * 0.85);
  padding: clamp(1rem, 3.6vw, 2rem);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transform: translateY(6px);
  transition: transform .5s ease, box-shadow .5s ease, background .5s ease, border-color .5s ease;
  will-change: transform, box-shadow; /* Add this line */
}

.cta {
  display: inline-grid; place-items: center; gap: .5rem;
  /* ... existing styles ... */
  transition: transform .25s ease, box-shadow .25s ease, border-color .3s ease, background .3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  will-change: transform; /* Change from will-change: transform; to this */
}

section.panel.left {
  border-radius: 1em 0 0 1em;
}
section.panel.right {
  border-radius: 0 1em 1em 0;
}

@media (max-width: 35em) {

  section.panel.right,
  section.panel.left {
    border-radius: 0;
  }
  section.panel.right .overlay {
    border-radius: 0 0 1.25em 1.25em;
  }
  section.panel.left .overlay {
    border-radius: 1.25em 1.25em 0 0;
  }
  .gateway {
    border-radius: 0;
  }
  .shell,
  .block-content-two_way_complex {
    padding: 0;
  }

}

@media (max-width: 62em) {

  section.panel.right,
  section.panel.left {
    border-radius: 0;
  }
  section.panel.right .overlay {
    border-radius: 0 0 1.25em 1.25em;
  }
  section.panel.left .overlay {
    border-radius: 1.25em 1.25em 0 0;
  }

}
