

    * {margin:0; padding:0; box-sizing:border-box;}
    body {
      font-family: 'Nunito', sans-serif;
        background: white;
      min-height:200vh;
    }
  :root{
    --brand:#203162;
    --accent:#3a4f85;
    --bg:#ffffff;
    --card-bg:#203162;
    --muted:#6b7a99;
    --radius:20px;
    --maxw:1700px;
    --ease: cubic-bezier(.16,.9,.3,1);
  }

  body {
  font-family: 'Quicksand', sans-serif; /* For paragraphs and general text */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Agrandir', sans-serif; 
}





  /*/////////// Loader //////////*/
/* 

      .loader-circle { position:fixed; inset:0; display:grid; place-items:center; z-index:99999;
    background:linear-gradient(180deg,#fff,#f5f8ff); transition:opacity .45s; }
  .loader-circle.hidden{ opacity:0; visibility:hidden; pointer-events:none; }

  .circle-wrap { width:160px; height:160px; display:grid; place-items:center; border-radius:18px;
     padding:18px; }
  .circle-svg { transform:rotate(-90deg); width:110px; height:110px; display:block; }
  .percent { font-size:22px; font-weight:700; color:#0b1330; margin-top:10px; text-align:center; }

  svg circle { fill:none; stroke-width:10; stroke-linecap:round; }
  .bg { stroke:#e8eefc; }
  .fg { stroke:#203162; stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset .5s linear; }

  @media(max-width:520px){ .circle-wrap{ width:128px; height:128px } .percent{ font-size:18px } } */




  :root { --glass-bg: rgba(255,255,255,0.06); --glass-border: rgba(255,255,255,0.08); --accent: #00bcd4; --accent2:#7c3aed; --fg:#ffffff; }

  .loader-2 { position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center; background: linear-gradient(180deg,#071029 0%, #081226 60%); font-family: Inter, system-ui, sans-serif; color:var(--fg); }

  .glass-wrap {
    width: min(88vw, 560px);
    max-width:560px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 80px rgba(2,8,20,0.6);
    display:flex; gap:20px; align-items:center; position:relative; overflow:visible;
    backdrop-filter: blur(6px);
  }

  .rings { width:120px; height:120px; position:relative; flex:0 0 120px; }
  .ring-svg { width:100%; height:100%; overflow:visible; position:absolute; left:0; top:0; }
  .ring-svg circle { fill:none; stroke: rgba(255,255,255,0.06); stroke-width:6; stroke-linecap:round; transform-origin:center; stroke-dasharray: 280; stroke-dashoffset: 280; }

  .ring-a circle { stroke-width:6; animation: ringA 1.8s cubic-bezier(.2,.9,.2,1) forwards; }
  .ring-b circle { stroke-width:5; animation: ringB 1.6s cubic-bezier(.2,.9,.2,1) .15s forwards; }
  .ring-c circle { stroke-width:4; animation: ringC 1.4s cubic-bezier(.2,.9,.2,1) .3s forwards; }

  @keyframes ringA { to { stroke-dashoffset: 60; stroke: var(--accent); } }
  @keyframes ringB { to { stroke-dashoffset: 80; stroke: var(--accent2); } }
  @keyframes ringC { to { stroke-dashoffset: 160; stroke: linear-gradient(90deg,#00bcd4,#7c3aed); stroke: #ffd; } }

  .glass-content { flex:1; display:flex; flex-direction:column; gap:8px; align-items:flex-start; justify-content:center; min-width:220px; }
  .brand { font-size: clamp(18px, 2.2vw, 22px); font-weight:800; letter-spacing: -0.01em; color:var(--fg); }
  .progress { display:flex; align-items:baseline; gap:6px; font-weight:800; font-size: clamp(34px, 6vw, 42px); color:var(--fg); }
  .progress small { font-size: 14px; font-weight:600; opacity:0.75; }

  .tag { color: rgba(255,255,255,0.85); font-size: clamp(13px, 2vw, 16px); }

  /* exit */
  body.loaded .loader-2 { opacity:0; transform: translateY(-8px); transition: opacity .5s ease, transform .5s ease; pointer-events:none; }

  /* reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .ring-svg circle { animation:none !important; stroke-dashoffset:0 !important; }
  }

  /* responsive */
  @media (max-width:520px) {
    .glass-wrap { padding:14px; gap:12px; }
    .rings { display:none; }
    .glass-content { align-items:center; text-align:center; }
  }

  

  /* ===== Scroll Progress Bar ===== */
    #progress-bar {
      position:fixed;
      top:0;
      left:0;
      height:4px;
      width:0;
      background:#203162;
      z-index:3000;
      transition:width 0.25s ease;
    }


      /* ===== Navbar ===== */
    .navbar {
      position:sticky;
      top:0;
      height: 140px;
      width:100%;
      background:white;
      backdrop-filter:blur(12px);
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:12px 5%;
      z-index:1500; /* below overlay and mobile menu */
      /* box-shadow:0 4px 12px rgba(0,0,0,0.05); */
      transition:all 0.3s ease;
    }

    .navbar img { height:278px; transition:transform 0.3s ease, filter 0.3s ease; }
    .navbar img:hover { transform:scale(1.08); filter:drop-shadow(0 0 6px #203162); }

    /* ===== Nav Links ===== */
    .nav-links { display:flex; align-items:center; gap:32px; }
    .nav-links a {
      text-decoration:none; color:#203162; font-weight:500;
      position:relative; transition:color 0.3s ease;
    }
    .nav-links a::after {
      content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px; background:#203162;
      transition:width 0.3s ease;
    }
    .nav-links a:hover::after { width:100%; }
    .nav-links a.active { font-weight:600; }

    /* ===== Dropdown ===== */
    .dropdown { position:relative; }
    .dropdown-content {
      position:absolute; top:150%; left:0; min-width:180px;
      background:#203162; border-radius:8px; box-shadow:0 4px 20px rgba(0,0,0,0.15);
      opacity:0; visibility:hidden; transform:translateY(10px);
      transition:opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.7s;
    }
    .dropdown:hover .dropdown-content {
      opacity:1; visibility:visible; transform:translateY(0);
      transition:opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
    }
    .dropdown-content a {
      display:block; padding:10px 16px; color:#fff; text-decoration:none; font-size:15px;
      transition:background 0.3s ease, padding-left 0.3s ease;
    }
    .dropdown-content a:hover { background:#2c478a; padding-left:20px; }

    /* ===== Book Now Button ===== */
    .book-btn {
      background:linear-gradient(135deg, #203162, #3a4f85);
      color:#fff; padding:10px 20px; border-radius:30px; text-decoration:none; font-weight:600;
      transition:all 0.3s ease; box-shadow:0 4px 12px rgba(32,49,98,0.3);
    }
    .book-btn:hover { box-shadow:0 6px 18px rgba(32,49,98,0.5); transform:translateY(-2px); }

    /* ===== Mobile Menu ===== */
    .hamburger {
      display:none; flex-direction:column; gap:5px; cursor:pointer; z-index:3500; position:relative;
    }
    .hamburger span { width:26px; height:3px; background:#203162; border-radius:2px; transition:all 0.3s ease; }
    .hamburger.active span:nth-child(1){ transform:rotate(45deg) translate(5px,5px); }
    .hamburger.active span:nth-child(2){ opacity:0; }
    .hamburger.active span:nth-child(3){ transform:rotate(-45deg) translate(5px,-5px); }

    /* Overlay (hidden by default) */
    .overlay {
      position:fixed; inset:0; background:rgba(0,0,0,0.48);
      opacity:0; visibility:hidden; transition:opacity 0.28s ease, visibility 0.28s;
      z-index:1750; /* above navbar (1500) but below mobile menu (2000) */
    }
    .overlay.show { opacity:1; visibility:visible; }

    .mobile-menu {
      position:fixed; top:0; right:-100%; width:320px; max-width:80vw; height:100vh;
       background:  #203162 ; box-shadow:-6px 0 30px rgba(0,0,0,0.12);
      display:flex; flex-direction:column; padding:80px 20px 20px; gap:20px;
      transition:right 0.38s cubic-bezier(.22,.9,.18,1);
      z-index:2000; /* above overlay & navbar */
    }
    .mobile-menu.open { right:0; }

    /* Close button inside drawer */
    .close-btn {
      position:absolute; top:18px; right:18px; font-size:28px; font-weight:700;
      color:#fff; cursor:pointer; transition:color .2s;
    }
    .close-btn:hover { color:#5a77be; }

    .mobile-menu a {
      color:#fff; font-size:18px; text-decoration:none; position:relative; transition:color .2s;
    }
    .mobile-menu a::after {
      content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:#203162; transition:width .25s;
    }
    .mobile-menu a:hover::after { width:100%; color: #5a77be; }

    /* Mobile dropdown */
    .mobile-dropdown { position:relative; }
    .mobile-dropdown-content {
      max-height:0; opacity:0; overflow:hidden; background:#203162; border-radius:6px;
      transition:max-height 0.45s ease, opacity 0.32s ease;
    }
    .mobile-dropdown.open .mobile-dropdown-content { max-height:300px; opacity:1; }
    .mobile-dropdown-content a {
      display:block; padding:10px 16px; color:#fff; text-decoration:none; font-size:15px;
      transition:background .2s, padding-left .25s;
    }
    .mobile-dropdown-content a:hover { background:#2c478a; padding-left:20px; }

    @media (max-width:900px) {
      .nav-links, .book-btn { display:none; }
      .hamburger { display:flex; }
    }

    /* Prevent page scroll when menu open (applied via JS class on body) */
    body.menu-open { overflow:hidden; touch-action:none; }


  .container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }

  .hero-section{ padding: clamp(36px,6vw,72px) 0; background: linear-gradient(180deg, #fbfcff, #fff); }

  /* main card */
  .hero-card{
    position: relative;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:28px;
    background: linear-gradient(180deg, rgba(32,49,98,1), rgba(32,49,98,0.92));
    border-radius: var(--radius);
    padding: clamp(22px,3.2vw,38px);
    align-items:center;
    box-shadow: 0 18px 40px rgba(13,24,48,0.18);
    color: #ffffff;
    overflow: hidden;
  }

  /* LEFT content */
  .hero-content { max-width: 640px; }
  .hero-title{
    font-size: 3rem;
    line-height: 1.03;
    margin: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-lead{
    margin: 0 0 20px 0;
    color: rgba(255,255,255,0.92);
    font-size: clamp(15px, 1.8vw, 17px);
    max-width: 56ch;
  }

  .hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; }
  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:10px 16px; border-radius:999px; font-weight:700; text-decoration:none;
    transition: transform .22s ease, box-shadow .22s ease, opacity .18s ease;
  }
  .btn-primary{
    /* background: linear-gradient(135deg, var(--brand), var(--accent)); */
    color:#fff; box-shadow: 0 10px 30px rgba(19,33,68,0.22);
  }
  .btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 38px rgba(19,33,68,0.26); }
  .btn-outline{
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.18);
  }
  .btn-outline:hover{ background: rgba(255,255,255,0.06); }

/* Prevent the image from being affected by translateX of parent */
.hero-media-inner {
  width: 100%;
  max-width: 470px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(8,18,48,0.28);
}

/* Float animation only on inner div */
.hero-media-inner img {
  width: 100%; 
   height: auto;
  animation: floatUpDown 5s ease-in-out infinite;
}

/* Reset overflow for hero-media */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: visible; /* allow animate-item translateX to show fully */
}

  /* small decorative glow (subtle) */
  .hero-card::before{
    content:"";
    position:absolute;
    right:-12%;
    top:-8%;
    width:420px; height:420px;
    background: radial-gradient(closest-side, rgba(58,79,133,0.22), transparent 40%);
    filter: blur(42px);
    pointer-events:none;
    z-index:0;
  }

  /* ensure content sits above the decorative glow */
  .hero-card > * { position: relative; z-index: 1; }

  /* Responsive: stack on small screens */
  @media (max-width:920px){
    .hero-card{ grid-template-columns: 1fr; gap:18px; padding: clamp(18px,5vw,28px); }
    .hero-media{ order: -1; } /* image first on small screens */
    .hero-title{ font-size: clamp(28px, 6.6vw, 36px); }
    .hero-media img{ max-width: 92%; }
    .container{ margin-top: 37px;}
  }


  /* Base for all animate items */
.animate-item {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: all 0.8s ease-out var(--delay, 0ms);
}

/* Directions */
.animate-item[data-direction="left"] {
  transform: translateX(-50px);
}
.animate-item[data-direction="right"] {
  transform: translateX(50px);
}
.animate-item[data-direction="top"] {
  transform: translateY(-50px);
}
.animate-item[data-direction="bottom"] {
  transform: translateY(50px);
}

/* When animation triggers */
.hero-card.play .animate-item {
  opacity: 1;
  transform: translateX(0) translateY(0);
}











  /* ---------- Directional keyframes ---------- */
  @keyframes fromLeft { 0%{ opacity:0; transform:translateX(-28px) scale(.995);} 60%{ opacity:1; transform:translateX(6px) scale(1.005);} 100%{ opacity:1; transform:none; } }
  @keyframes fromRight{ 0%{ opacity:0; transform:translateX(28px) scale(.995);} 60%{ opacity:1; transform:translateX(-6px) scale(1.005);} 100%{ opacity:1; transform:none; } }
  @keyframes fromBottom{ 0%{ opacity:0; transform:translateY(28px) scale(.995);} 60%{ opacity:1; transform:translateY(-6px) scale(1.005);} 100%{ opacity:1; transform:none; } }
  @keyframes scaleIn{ 0%{ opacity:0; transform:scale(.92) translateY(8px);} 60%{ opacity:1; transform:scale(1.02) translateY(-4px);} 100%{ opacity:1; transform:none; } }

  /* animation base (items are initially invisible) */
  .animate-item { opacity:0; transform:translateY(12px) scale(.995); will-change: transform, opacity; }

  /* when .play is added, animation plays using direction + delay */
  .play .animate-item{
    animation-duration: 700ms;
    animation-fill-mode: both;
    animation-timing-function: var(--ease);
    animation-delay: var(--delay, 0ms);
  }

  .play .animate-item[data-direction="left"]   { animation-name: fromLeft; }
  .play .animate-item[data-direction="right"]  { animation-name: fromRight; }
  .play .animate-item[data-direction="bottom"] { animation-name: fromBottom; }
  .play .animate-item[data-direction="scale"]  { animation-name: scaleIn; }

  @media (prefers-reduced-motion: reduce){
    .animate-item{ animation:none !important; opacity:1; transform:none; }
  }


      /* Section background and layout */
  .intro-section { background: #86c2f8; padding: clamp(36px, 6vw, 64px) 0; margin:0 auto; padding:0 20px;   }
  .intro-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

  /* Left media */
  .intro-media { display:flex; align-items:center; justify-content:center; }
  .intro-media img { width:100%; height:auto; max-width:620px; border-radius:14px;  }
  /* Floating animation */
.float-image img {
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);   /* normal position */
  }
  50% {
    transform: translateY(-15px); /* goes up a little */
  }
}


  /* Right copy */
  .intro-copy { color: #08203a; } /* dark text on light-blue bg */
  .intro-heading { font-size: clamp(1.4rem, 3vw, 28px); margin: 0 0 12px; font-weight:800; color:#09203b; }
  .intro-text { margin: 0 0 18px; font-size: clamp(15px,1.7vw,16px); line-height:1.55; color: rgba(4,24,44,0.94); max-width:62ch; }

  /* Button with animated color-fill hover */
  .contact-btn {
    --btn-bg: linear-gradient(135deg, var(--brand), var(--accent));
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 18px;
    border-radius:999px;
    position:relative;
    overflow:hidden;
    color:#fff;
    background: transparent;
    border: 2px solid #fff;
    font-weight:700;
    text-decoration:none;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
    z-index:1;
  }

  /* decorative fill (slides in from left) */
  .contact-btn .fill{
    position:absolute; left:0; top:0; bottom:0; width:0%;
    background: var(--btn-bg);
    z-index:0;
    transition: width .42s var(--ease);
  }
  .contact-btn .btn-icon, .contact-btn span { position: relative; z-index:2; }

  /* Hover state: fill expands, slight lift */
  .contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(19,33,68,0.18);
  }
  .contact-btn:hover .fill { width: 110%; } /* overflow so rounded edges fill cleanly */

  /* icon motion on hover */
  .contact-btn .btn-icon { transition: transform .36s var(--ease), color .36s var(--ease); color: #fff; }
  .contact-btn:hover .btn-icon { transform: translateY(-3px) rotate(-6deg); }

  /* make text readable when fill covers (color remains white) */
  .contact-btn span { transition: color .28s var(--ease); color:#fff; }

  /* Accessibility: focus-visible shows outline and expands fill */
  .contact-btn:focus-visible { outline: 3px solid rgba(0,0,0,0.06); outline-offset:4px; }
  .contact-btn:focus-visible .fill { width: 100%; }

  /* animate-item base (reuse your existing approach) */
  .animate-item { opacity:0; transform: translateY(12px) scale(.995); will-change: transform, opacity; }
  .intro-section.play .animate-item { animation-duration: 640ms; animation-fill-mode: both; animation-timing-function: var(--ease); animation-delay: var(--delay, 0ms); }
  .intro-section.play .animate-item[data-direction="left"]  { animation-name: fromLeft;  }
  .intro-section.play .animate-item[data-direction="right"] { animation-name: fromRight; }
  .intro-section.play .animate-item[data-direction="bottom"]{ animation-name: fromBottom; }
  .intro-section.play .animate-item[data-direction="scale"] { animation-name: scaleIn; }

  /* small responsive adjustments */
  @media (max-width: 920px) {
    .intro-inner { grid-template-columns: 1fr; gap: 18px; height: 700px; }
    .intro-media { order: -1; } /* show image first on mobile */
    .intro-copy { padding: 0 6px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .intro-media img, .contact-btn, .animate-item { transition: none !important; animation: none !important; transform: none !important; }
  }

  /* reuse entrance keyframes (ensure these exist in your stylesheet, otherwise copy from hero) */
  @keyframes fromLeft  { 0%{ opacity:0; transform:translateX(-28px) scale(.995);} 60%{ opacity:1; transform:translateX(6px) scale(1.005);} 100%{ opacity:1; transform:none; } }
  @keyframes fromRight { 0%{ opacity:0; transform:translateX(28px) scale(.995);} 60%{ opacity:1; transform:translateX(-6px) scale(1.005);} 100%{ opacity:1; transform:none; } }
  @keyframes fromBottom{ 0%{ opacity:0; transform:translateY(28px) scale(.995);} 60%{ opacity:1; transform:translateY(-6px) scale(1.005);} 100%{ opacity:1; transform:none; } }
  @keyframes scaleIn   { 0%{ opacity:0; transform:scale(.92) translateY(8px);} 60%{ opacity:1; transform:scale(1.02) translateY(-4px);} 100%{ opacity:1; transform:none; } }



















 :root{
    --maxw:1200px;
    --brand: #203162;
    --accent: #86c2f8;
    --bg: #203162; /* if you want card bg */
    --text-contrast: #fff;
  }

  .container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; box-sizing:border-box; }

  .financial-chaos{
    background-color: #203162;   /* as you wanted */
    color: var(--text-contrast);
    padding: clamp(28px,6vw,56px);
    border-radius: 20px;
    overflow: hidden;
  }

  .chaos-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 36px);
    align-items: center;
  }

  /* TEXT COLUMN */
  .chaos-text { max-width: 72ch; }

  .kicker{
    font-size: clamp(.95rem, 1.6vw, 1.04rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .95;
  }

  .chaos-title{
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    margin: 6px 0 20px;
    line-height: 1.02;
    font-weight: 900;
    color: #ffffff;
  }

  .chaos-features{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 22px;
  }

  .feature{
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 12px 30px rgba(8,18,48,0.18);
  }

  .feature h4{
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 800;
  }
  .feature p{
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: clamp(.95rem, 1.6vw, 1rem);
    line-height: 1.5;
    opacity: 0.95;
  }

  .chaos-cta{
    margin-top: 18px;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    font-weight: 800;
    color: #eaf5ff;
    line-height: 1.3;
  }

  /* IMAGE COLUMN */
  .chaos-media{
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .chaos-media img{
    width:100%;
    max-width: 520px;
    height:auto;
    display:block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 22px 70px rgba(8,18,48,0.32);
    transform-origin: center;
  }

  /* reveal helpers (base) */
  .animate-item{
    opacity: 0;
    transform: translateX(0) translateY(0);
    transition: transform .72s cubic-bezier(.16,.9,.32,1) var(--delay, 0ms),
                opacity .52s ease var(--delay, 0ms);
    will-change: transform, opacity;
  }

  .animate-item[data-direction="left"]  { transform: translateX(-36px); }
  .animate-item[data-direction="right"] { transform: translateX(36px);  }
  .animate-item[data-direction="top"]   { transform: translateY(-26px);  }
  .animate-item[data-direction="bottom"]{ transform: translateY(26px);   }

  .animate-item.in-view{
    opacity: 1;
    transform: translateX(0) translateY(0);
  }

  /* small floating for image when visible */
  .animate-item.in-view .chaos-media img,
  .chaos-media.animate-item.in-view img{
    animation: floatTiny 7s ease-in-out infinite;
  }
  @keyframes floatTiny{ 0%{transform:translateY(0)} 50%{transform:translateY(-8px)} 100%{transform:translateY(0)} }

  /* Responsive: stack on small screens */
  @media (max-width: 920px){
    .chaos-grid{ grid-template-columns: 1fr; gap: 18px; }
    .chaos-media{ order: 2; } /* keep text visible first on mobile */
    .chaos-features{ grid-template-columns: 1fr; }
    .chaos-title{ font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
    .chaos-cta{ font-size: 1rem; }
    .feature{ padding: 12px; }
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce){
    .animate-item{ transition: none !important; transform: none !important; opacity: 1 !important; }
    .chaos-media img{ animation: none !important; }
  }



.modal {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.6);
  margin-right: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-content {
  width: min(600px, 92vw);
  background: #fff; border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(30px);
  transition: transform .3s ease;
}
.modal.is-open .modal-content { transform: translateY(0); }

.close-btn {
  position: absolute; top: 10px; right: 14px;
  font-size: 1.8rem; line-height: 1; border: 0; background: transparent; cursor: pointer;
}


/* ---------- Modal container & content (improved responsiveness) ---------- */
/* Modal container */
/* ========== Clean Modal CSS ========== */

/* Box-sizing helper (if not already set globally) */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* ---------- Backdrop & container (rendered; visibility via .is-open) ---------- */
.modal {
  position: fixed;
  inset: 0;                        /* top/right/bottom/left = 0 */
  z-index: 10000;
  display: grid;
  place-items: center;             /* center modal-content */
  padding: clamp(12px, 3vw, 24px); /* breathing room left & right on all screens */
  background: rgba(0,0,0,0.60);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain;    /* contain scrolling inside modal */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

/* Visible/open state */
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- Modal content (centered, scrollable inside) ---------- */
.modal-content {
  width: 100%;                     /* fill available space constrained by padding */
  max-width: 980px;                /* controls max width (so left/right gaps remain equal) */
  margin: 40px auto;               /* center horizontally; vertical gap from top */
  background: #ffffff;
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: 0 26px 80px rgba(8,18,48,0.28);
  max-height: 92vh;                /* allow inner scrolling on small viewports */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px);
  transition: transform .28s cubic-bezier(.2,.9,.2,1);
  position: relative;
}

/* Bring content fully into place when modal is open */
.modal.is-open .modal-content {
  transform: translateY(0);
}

/* Thin custom scrollbar (optional, desktop) */
.modal-content::-webkit-scrollbar { height: 8px; width: 10px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(32,49,98,0.12); border-radius: 8px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }

/* ---------- Body-lock helpers (use in JS to prevent background scroll) ---------- */
.body-lock {
  overflow: hidden !important;
  height: 100vh !important;
}
.body-lock-fix {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
}

/* ---------- Close button (inside modal top-right) ---------- */
.close-btn {
  position: absolute;
  top: clamp(8px, 1.8vw, 14px);
  right: clamp(10px, 1.8vw, 18px);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1;
  border: 0;
  background: transparent;
  color: #203162;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
  z-index: 30;
}
.close-btn:hover { transform: scale(1.06); background: rgba(32,49,98,0.04); }

/* ---------- Modal layout: text left, image right (vb-grid) ---------- */
.vb-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr; /* slightly larger text column on wide screens */
  gap: clamp(18px, 3.5vw, 36px);
  align-items: start;
  width: 100%;
}

/* Text column */
.vb-text {
  max-width: 78ch; /* readable measure on wide screens */
}

/* Headline + paragraphs */
.vb-text h3 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  margin: 0 0 12px;
  color: #203162;
  font-weight: 800;
}
.vb-text p {
  font-size: clamp(0.98rem, 1.6vw, 1.06rem);
  line-height: 1.68;
  color: #2b3a67;
  margin: 0 0 14px;
  word-break: break-word;
}

/* Image column */
.vb-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vb-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 14px 40px rgba(32,49,98,0.12);
  display: block;
}

/* Optional small label under image */
.company-label {
  margin-top: 12px;
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.6vw, 0.98rem);
}

/* ---------- Animation helpers (toggle .in-view in JS) ---------- */
.animate-item {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: transform 0.72s cubic-bezier(.16,.9,.32,1) var(--delay, 0ms),
              opacity 0.52s ease var(--delay, 0ms);
  will-change: transform, opacity;
}
.animate-item[data-direction="left"]  { transform: translateX(-40px); }
.animate-item[data-direction="right"] { transform: translateX(40px);  }
.animate-item[data-direction="top"]   { transform: translateY(-30px);  }
.animate-item[data-direction="bottom"]{ transform: translateY(30px);   }

.animate-item.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ---------- Responsive breakpoints ---------- */
/* Tablet / small laptop: stack columns */
@media (max-width: 920px) {
  .vb-grid { grid-template-columns: 1fr; }
  .vb-media { order: -1; }               /* show image first on narrow screens (optional) */
  .modal-content { padding: clamp(14px, 3vw, 22px); max-height: 94vh; }
  .vb-media img { max-width: 92%; }
  .vb-text { max-width: 66ch; }
}

/* Small phones: tighter spacing */
@media (max-width: 520px) {
  .vb-grid { gap: 14px; }
  .vb-text h3 { font-size: clamp(1.4rem, 7.5vw, 1.95rem); }
  .vb-text p { font-size: clamp(0.92rem, 3.6vw, 1rem); }
  .vb-text { padding-inline: 6px; }
  .vb-media img { border-radius: 10px; box-shadow: 0 10px 28px rgba(32,49,98,0.12); }
  .close-btn { top: 8px; right: 10px; }
}

/* Very short landscape phones */
@media (max-height: 420px) and (orientation: landscape) {
  .modal { padding: 8px; }
  .modal-content { max-height: 96vh; padding: 12px; }
  .vb-grid { gap: 10px; grid-auto-rows: min-content; }
}





/* ======================= Contact Section ======================= */
.contact-section {
  border-radius: 20px;
  margin: 20px;
  padding: clamp(60px, 6vw, 100px) 0;
  background: linear-gradient(180deg, #cecfcf, #fff);
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #203162;
}

.contact-lead {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(32,49,98,0.8);
  max-width: 45ch;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form input, .form textarea {
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #203162;
  font-size: 1rem;
  transition: all 0.3s ease, box-shadow 0.4s ease;
  background: #fff;
}

.form input:focus, .form textarea:focus {
  border-color: #86c2f8;
  box-shadow: 0 0 20px rgba(38, 0, 255, 0.4);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: #203162;
  box-shadow: 0 8px 30px rgba(25, 0, 255, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  left: -50%;
  top: 0;
  width: 200%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-25deg) translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::after {
  transform: skewX(-25deg) translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(161, 193, 245, 0.4);
}

/* Image */
.contact-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(32,49,98,0.15);
  transition: transform 0.4s ease;
}

.contact-image img:hover {
  transform: translateY(-8px) scale(1.03);
}

/* Animate Items */
.animate-item {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: all 0.8s ease-out var(--delay, 0ms);
}

.animate-item[data-direction="left"] { transform: translateX(-50px); }
.animate-item[data-direction="right"] { transform: translateX(50px); }
.animate-item[data-direction="top"] { transform: translateY(-50px); }
.animate-item[data-direction="bottom"] { transform: translateY(50px); }

.contact-section.play .animate-item {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ======================= Responsive ======================= */
@media (max-width: 920px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-image { order: -1; } /* image on top */
  .contact-image img { max-width: 90%; }
}







/* ======================= CTA Section ======================= */
.cta-section {
  padding: clamp(60px, 6vw, 100px) 0;
  background: linear-gradient(180deg, #203162, #1a2650);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.cta-text {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 600px;
}




.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  background: #fff;             /* initial background */
  color: #203162;               /* initial text color */
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(32,49,98,0.12);
}

/* Hover Background Fill */
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;                 /* start hidden on the left */
  width: 100%;
  height: 100%;
  background: #86c2f8;
  transition: all 0.4s ease;
  z-index: 0;                  /* behind text */
  pointer-events: none;        /* allow hover events */
}

/* Text and Arrow stay above pseudo-element */
.cta-btn span,
.cta-btn .cta-arrow {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

/* Hover Effects */
.cta-btn:hover::before {
  left: 0;                     /* slide in from left */
}

.cta-btn:hover {
  color: #fff;                 /* text turns white */
  transform: translateY(-2px); /* subtle pop */
  box-shadow: 0 12px 28px rgba(0,123,255,0.3); /* glow shadow */
}

.cta-btn:hover .cta-arrow {
  transform: translateX(8px);  /* arrow slides */
  transition: transform 0.4s ease;
}


/* ======================= Animate Items ======================= */
.animate-item {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: all 0.8s ease-out var(--delay, 0ms);
}

.animate-item[data-direction="left"] { transform: translateX(-50px); }
.animate-item[data-direction="right"] { transform: translateX(50px); }
.animate-item[data-direction="top"] { transform: translateY(-50px); }
.animate-item[data-direction="bottom"] { transform: translateY(50px); }

.cta-section.play .animate-item {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ======================= Responsive ======================= */
@media (max-width: 920px) {
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .cta-text {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
}







  /* ================= Why Choose Section ================= */
.why-choose-section {
  /* padding: clamp(80px, 8vw, 140px) 20px; */
  padding: 20px;
  background: #203162;
  border-radius: 20px;
  margin: 30px;
  overflow: hidden;
}

.why-choose-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.why-choose-media img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(32,49,98,0.15);
}

.why-choose-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.why-choose-content ul {
  list-style: disc inside;
  color: #fff;
  line-height: 1.7;
}

.why-choose-content li {
  margin-bottom: 18px;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* Animate Items Base */
.animate-item {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: all 0.8s ease-out var(--delay, 0ms);
}

/* Directions */
.animate-item[data-direction="left"] { transform: translateX(-50px); }
.animate-item[data-direction="right"] { transform: translateX(50px); }
.animate-item[data-direction="top"] { transform: translateY(-50px); }
.animate-item[data-direction="bottom"] { transform: translateY(50px); }

/* Trigger animation when in view */
.animate-item.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ================= Responsive ================= */
@media (max-width: 920px) {
  .why-choose-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .why-choose-media img {
    max-width: 90%;
    margin: 0 auto;
  }
  .why-choose-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .why-choose-content li {
    font-size: clamp(0.95rem, 4vw, 1rem);
  }
}





/* Footer (responsive: 4 cols → 2 cols → 1 col) */
.finanza-footer {
  background: #203162;
  color: var(--footer-contrast);
  padding: clamp(28px,5vh,48px) 18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* grid: 4 columns on very wide screens */
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}

/* cards */
.footer-card {
  background: transparent;
  padding: 6px 4px;
  min-height: 80px;
  text-align: left; /* default for desktop */
}

/* headings & text */
.footer-heading {
  margin: 0 0 10px 0;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-weight: 800;
  color: var(--footer-contrast);
}

.footer-text {
  margin: 0;
  color: var(--muted-contrast);
  font-size: clamp(.95rem,1.9vw,1rem);
  line-height: 1.6;
}

/* ICAEW row */
/* .icaew-row {
  display:flex;
  align-items:center;
  gap:12px;
} */
.icaew-logo {
height: 240px; width: 240px;
  margin-top: -80px;
  display:block;
  border-radius:8px;
  /* background: rgba(255,255,255,0.04); */
  padding:6px;
  /* margin-bottom: 700px; */
}

/* Services list */
.footer-subheading{
  margin:0 0 8px 0;
  font-weight:800;
  font-size:1rem;
  color:var(--footer-contrast);
}
.footer-list{
  margin:0;
  padding-left:18px;
  color:var(--muted-contrast);
  font-size: .98rem;
  line-height:1.7;
}
.footer-list li{ margin-bottom:8px; }

/* Contact & CTA */
.footer-contact { margin:6px 0; color:var(--muted-contrast); font-size: .98rem; text-decoration: none; }
.footer-contact a { color: var(--footer-contrast); text-decoration: underline; text-decoration: none; }

.cta-book {
  display:inline-block;
  background: #ffffff;
  color: var(--footer-bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s ease;
}
.cta-book:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); }

/* bottom line */
.footer-bottom {
  max-width: var(--max-w);
  margin: 18px auto 0;
  color: rgba(255,255,255,0.65);
  font-size: .92rem;
  text-align:center;
  padding-top:12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ------------------ RESPONSIVE LAYOUT ------------------ */

/* Medium screens: 2 columns */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens: 1 column and center everything */
@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  /* center each card’s content */
  .footer-card {
    text-align: center;
  }

  /* center headings and text */
  .footer-heading { text-align: center; }
  .footer-text { text-align: center; }

  /* stack ICAEW logo and text vertically and center */
  .icaew-logo {
width: 300px;
  }
  .icaew-name, .icaew-sub { text-align:center; }

  /* center lists and make bullets visible inside */
  .footer-list {
    padding-left: 0;
    list-style-position: inside;
    display: inline-block; /* shrink to content width for nicer centering */
    text-align: left; /* keep list items left-aligned inside the centered block */
  }
}

/* Very small devices: extra spacing tweaks */
@media (max-width: 520px) {
  .icaew-logo { width:270px; height: 300px; }
  .footer-card { padding: 10px 6px; }
  .footer-list { font-size: .95rem; }
}

/* ---------- Reveal animation helpers (unchanged) ---------- */
.reveal { opacity:0; transform: translateY(12px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.9,.2,1); will-change: transform, opacity; transition-delay: var(--delay, 0ms); }
.reveal.in-view { opacity:1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
  .cta-book { transition: none !important; }
}





.services-section {
  background-color: #f8f9fc;
  padding: clamp(60px, 8vw, 100px) 20px;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  color: #0b1330;
}

.section-heading {
  font-family: 'Agrandir', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.section-subheading {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 50px;
  color: #3a3f5c;
}

/* Cards Container */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Single Card */
.service-card {
  position: relative;
  background: #ffffff;
  padding: 40px 20px 20px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.9,.2,1), box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  cursor: pointer;
}

.card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #203162; /* Blue background */
  display: grid;
  place-items: center;
  transition: background 0.4s ease, transform 0.4s ease;
}

.card-icon .material-icons {
  color: #fff;
  font-size: 28px;
}


/* Optional hover effect on icon */
.service-card:hover .card-icon {
  transform: translateY(-6px);
}


.service-card h5 {
  font-family: 'Agrandir', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 12px;
  color: #203162;
}

.service-card p {
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  color: #3a3f5c;
}

/* Hover Effect: color fill from bottom to top */
.service-card::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 0%;
  background: linear-gradient(135deg,#203162,#86c2f8);
  border-radius: 16px;
  z-index: 0;
  transition: height 0.4s ease;
}

.service-card:hover::before { height: 100%; }

.service-card:hover h5,
.service-card:hover p,
.service-card:hover .card-icon { color: #fff; z-index:1; position:relative; }

/* Cards wrapper content z-index */
.service-card * { position: relative; z-index: 1; }

/* Card icon hover */
.service-card:hover .card-icon { background: rgba(255,255,255,0.2); }

/* Responsive Grid */
@media (max-width: 1200px) {
  .cards-wrapper { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
  .cards-wrapper { grid-template-columns: 1fr; gap: 24px; }
}

/* Animate on scroll */
.animate-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.9,.2,1);
  transition-delay: var(--delay, 0ms);
}

.animate-item.in-view {
  opacity: 1;
  transform: translateY(0);
}











/* ===== Modal compact CSS (safe to drop in) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 24px);
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  overscroll-behavior: contain;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-content {
  width: 100%;
  max-width: 980px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  padding: clamp(16px, 2.6vw, 28px);
  box-shadow: 0 26px 80px rgba(8,18,48,0.24);
  max-height: 92vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px);
  transition: transform .28s cubic-bezier(.2,.9,.2,1);
  position: relative;
}
.modal.is-open .modal-content { transform: translateY(0); }

/* Close */
.close-btn {
  position: absolute;
  top: clamp(8px, 1.8vw, 14px);
  right: clamp(10px, 1.8vw, 18px);
  font-size: clamp(18px,2.2vw,22px);
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #203162;
  z-index: 30;
}

/* Grid layout */
.vb-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 3.5vw, 36px);
  align-items: start;
  width: 100%;
}

.vb-text { max-width: 78ch; }
.vb-text h3 { font-size: clamp(1.6rem,3.6vw,2.6rem); margin:0 0 12px; color:#203162; font-weight:800; }
.vb-text p { font-size: clamp(.98rem,1.6vw,1.06rem); color:#2b3a67; line-height:1.68; margin:0 0 14px; }

/* media / image */
.vb-media { display:flex; flex-direction:column; align-items:center; gap:12px; }
.vb-media img { width:100%; max-width:520px; height:auto; border-radius:12px; box-shadow:0 14px 40px rgba(32,49,98,0.12); object-fit:cover; display:block; }
.company-label { background:#007bff; color:#fff; padding:8px 16px; border-radius:999px; font-weight:600; font-size:clamp(.85rem,1.4vw,.98rem); }

/* animate helpers */
.animate-item { opacity:0; transform:translateX(0) translateY(0); transition: transform .72s cubic-bezier(.16,.9,.32,1) var(--delay,0ms), opacity .52s ease var(--delay,0ms); will-change:transform,opacity; }
.animate-item[data-direction="left"] { transform: translateX(-40px); }
.animate-item[data-direction="right"] { transform: translateX(40px); }
.animate-item[data-direction="top"] { transform: translateY(-30px); }
.animate-item[data-direction="bottom"] { transform: translateY(30px); }
.animate-item.in-view { opacity:1; transform:translateX(0) translateY(0); }

/* responsive */
@media (max-width:920px) {
  .vb-grid { grid-template-columns: 1fr; }
  .vb-media { order:-1; } /* image first on narrow screens */
  .modal-content { max-height:94vh; padding: clamp(14px,3vw,22px); }
  .vb-media img { max-width:92%; }
  .vb-text { max-width:66ch; }
}
@media (max-width:520px) {
  .vb-text h3 { font-size: clamp(1.4rem,7.5vw,1.95rem); }
  .vb-text p { font-size: clamp(0.92rem,3.6vw,1rem); }
  .close-btn { top:8px; right:10px; }
}







/* ---------- Modal backdrop (visibility via .is-open) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10050;
  display: grid; place-items: center;
  padding: clamp(12px,3vw,24px);
  background: rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  overscroll-behavior: contain;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ---------- Modal content ---------- */
.modal-content {
  width: 100%; max-width: 980px;
  margin: 36px auto;
  background: #fff;
  border-radius: 14px;
  padding: clamp(16px,2.6vw,28px);
  box-shadow: 0 26px 80px rgba(8,18,48,0.24);
  max-height: 92vh; overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px);
  transition: transform .28s cubic-bezier(.2,.9,.2,1);
  position: relative;
}
.modal.is-open .modal-content { transform: translateY(0); }

/* ---------- Close button ---------- */
.close-btn {
  position: absolute; top: clamp(8px,1.8vw,14px); right: clamp(10px,1.8vw,18px);
  background: transparent; border: 0; color: #203162;
  font-size: clamp(18px,2.2vw,22px); cursor: pointer; z-index: 30;
}
.close-btn:hover { transform: scale(1.05); }

/* ---------- Grid layout (text left / image right) ---------- */
.vb-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px,3.5vw,36px);
  align-items: start; width: 100%;
}
.vb-text { max-width: 78ch; }
.vb-text h3 { font-size: clamp(1.6rem,3.6vw,2.6rem); margin:0 0 12px; color:#203162; font-weight:800; }
.vb-text p { font-size: clamp(.98rem,1.6vw,1.06rem); color:#2b3a67; line-height:1.68; margin:0 0 14px; }

/* image column */
.vb-media { display:flex; flex-direction:column; align-items:center; gap:12px; }
.vb-media img { width:100%; max-width:520px; border-radius:12px; object-fit:cover; box-shadow:0 14px 40px rgba(32,49,98,0.12); }
.company-label { display:inline-block; margin-top:12px; background:#007bff; color:#fff; padding:8px 16px; border-radius:999px; font-weight:600; font-size:clamp(.85rem,1.4vw,.98rem); }

/* ---------- Animation helpers ---------- */
.animate-item {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: transform .72s cubic-bezier(.16,.9,.32,1) var(--delay,0ms), opacity .52s ease var(--delay,0ms);
  will-change: transform, opacity;
}
.animate-item[data-direction="left"]  { transform: translateX(-40px); }
.animate-item[data-direction="right"] { transform: translateX(40px);  }
.animate-item[data-direction="top"]   { transform: translateY(-30px);  }
.animate-item[data-direction="bottom"]{ transform: translateY(30px);   }
.animate-item.in-view { opacity: 1; transform: translateX(0) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .vb-grid { grid-template-columns: 1fr; }
  .vb-media { order: -1; } /* image first on narrow screens — optional */
  .modal-content { max-height: 94vh; padding: clamp(14px,3vw,22px); }
  .vb-media img { max-width: 92%; }
  .vb-text { max-width: 66ch; }
}
@media (max-width: 520px) {
  .vb-text h3 { font-size: clamp(1.4rem,7.5vw,1.95rem); }
  .vb-text p { font-size: clamp(0.92rem,3.6vw,1rem); }
  .close-btn { top:8px; right:10px; }
}





/* ----- Modal backdrop & container ----- */
.modal {
  position: fixed; inset: 0; z-index:10050;
  display: grid; place-items: center;
  padding: clamp(12px,3vw,24px);
  background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  overscroll-behavior: contain;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ----- Modal content ----- */
.modal-content {
  width: 100%; max-width: 980px;
  margin: 36px auto; background:#fff; border-radius:14px;
  padding: clamp(16px,2.6vw,28px);
  box-shadow: 0 26px 80px rgba(8,18,48,0.24);
  max-height: 92vh; overflow:auto; -webkit-overflow-scrolling: touch;
  transform: translateY(18px); transition: transform .28s cubic-bezier(.2,.9,.2,1);
  position: relative;
}
.modal.is-open .modal-content { transform: translateY(0); }

/* ----- Close button ----- */
.close-btn {
  position: absolute; top: clamp(8px,1.8vw,14px); right: clamp(10px,1.8vw,18px);
  background: transparent; border:0; font-size: clamp(18px,2.2vw,22px); cursor:pointer; color:#203162; z-index:30;
}
.close-btn:hover { transform: scale(.98); color:#007bff; }

/* ----- Grid layout ----- */
.vb-grid { display:grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(18px,3.5vw,36px); align-items:start; width:100%; }
.vb-text { max-width:78ch; }
.vb-text h3 { font-size: clamp(1.6rem,3.6vw,2.2rem); margin:0 0 12px; color:#203162; font-weight:800; }
.vb-text p { font-size: clamp(.98rem,1.6vw,1.04rem); color:#2b3a67; line-height:1.68; margin:0 0 14px; }

/* ----- Image column ----- */
.vb-media { display:flex; flex-direction:column; align-items:center; gap:12px; }
.vb-media img { width:100%; max-width:520px; height:auto; border-radius:12px; object-fit:cover; box-shadow:0 14px 40px rgba(32,49,98,0.12); display:block; }
.company-label { margin-top:8px; background:#007bff; color:#fff; padding:8px 16px; border-radius:999px; font-weight:600; font-size:clamp(.85rem,1.4vw,.98rem); }

/* ----- Button style (primary) ----- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:40px; font-weight:700; text-decoration:none; cursor:pointer; border:0; }
.btn-primary { background: #fff; color:#0b3a6b; box-shadow:0 8px 30px rgba(11,58,107,0.08); transition: color .32s ease, transform .2s ease, box-shadow .2s ease; position:relative; overflow:hidden; }
.btn-primary::before { content:''; position:absolute; left:-100%; top:0; width:100%; height:100%; background: linear-gradient(120deg,#007bff,#00aaff); transition: left .38s cubic-bezier(.2,.9,.2,1); z-index:0; pointer-events:none; }
.btn-primary span, .btn-primary .icon { position:relative; z-index:1; }
.btn-primary:hover::before { left:0; }
.btn-primary:hover { color:#fff; transform: translateY(-2px); box-shadow:0 12px 36px rgba(0,123,255,0.22); }

/* ----- Animate helpers ----- */
.animate-item { opacity:0; transform:translateX(0) translateY(0); transition: transform .72s cubic-bezier(.16,.9,.32,1) var(--delay,0ms), opacity .52s ease var(--delay,0ms); will-change:transform,opacity; }
.animate-item[data-direction="left"]  { transform: translateX(-40px); }
.animate-item[data-direction="right"] { transform: translateX(40px);  }
.animate-item[data-direction="top"]   { transform: translateY(-30px);  }
.animate-item[data-direction="bottom"]{ transform: translateY(30px);   }
.animate-item.in-view { opacity:1; transform: translateX(0) translateY(0); }

/* ----- Responsive tweaks ----- */
@media (max-width:920px) {
  .vb-grid { grid-template-columns: 1fr; }
  .vb-media { order:-1; } /* show image first on narrow screens */
  .modal-content { max-height:94vh; padding: clamp(14px,3vw,22px); }
  .vb-media img { max-width:92%; }
  .vb-text { max-width:66ch; }
}
@media (max-width:520px) {
  .vb-text h3 { font-size: clamp(1.4rem,7.5vw,1.9rem); }
  .vb-text p { font-size: clamp(.92rem,3.6vw,1rem); }
  .close-btn { top:8px; right:10px; }
}





