/* ==========================================================================
   Padre Pio Insurance Brokers - shared design system
   Loaded by every page. Page-specific styles stay in each HTML file.
   ========================================================================== */

  :root{
    --purple:#5D2F88;
    --purple-deep:#3C1C5C;
    --purple-ink:#2A1442;
    --lilac:#B3A3CA;
    --lilac-soft:#ECE6F3;
    --lilac-line:#E2D9ED;
    --paper:#FAF8FC;
    --white:#ffffff;
    --ink:#23192E;
    --muted:#6C6178;
    --orange:#F2A33C;
    --line:#E7E0F0;
    --shadow:0 1px 2px rgba(42,20,66,.06), 0 12px 30px -12px rgba(42,20,66,.18);
    --shadow-lg:0 30px 70px -30px rgba(42,20,66,.45);
    --maxw:1180px;
    --nav-h:74px;
    --ease:cubic-bezier(.22,.61,.36,1);
  }

  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{
    margin:0;
    font-family:Inter,system-ui,sans-serif;
    color:var(--ink);
    background:var(--paper);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
  }
  h1,h2,h3{font-family:'Playfair Display',Georgia,serif;font-weight:500;letter-spacing:-.01em;line-height:1.08;margin:0}
  p{margin:0}
  a{color:inherit;text-decoration:none}
  img{max-width:100%}

  .wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}

  .eyebrow{
    font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
    color:var(--purple);display:inline-flex;align-items:center;gap:.7em;
  }
  .eyebrow::before{content:"";width:26px;height:2px;background:var(--purple);display:inline-block;border-radius:2px}
  .eyebrow.on-dark{color:var(--lilac)}
  .eyebrow.on-dark::before{background:var(--lilac)}

  /* ---------- NAV ---------- */
  header.nav{
    position:sticky;top:0;z-index:50;
    backdrop-filter:saturate(140%) blur(12px);
    background:rgba(250,248,252,.82);
    border-bottom:1px solid transparent;
    transition:border-color .3s, background .3s;
  }
  header.nav.scrolled{border-bottom-color:var(--line);background:rgba(250,248,252,.94)}
  .nav-inner{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h)}
  .logo{display:flex;align-items:center;gap:11px;font-weight:700;font-size:1.18rem;color:var(--purple-ink);letter-spacing:-.01em}
  .logo .mark{width:34px;height:34px;flex:0 0 auto}
  .logo b{font-weight:700}
  .logo span{font-weight:400;color:var(--muted);font-size:.66rem;letter-spacing:.22em;text-transform:uppercase;display:block;margin-top:-2px}
  nav.links{display:flex;align-items:center;gap:32px}
  nav.links a{font-size:.92rem;font-weight:500;color:var(--ink);opacity:.82;transition:opacity .2s;position:relative}
  nav.links a:hover{opacity:1}
  nav.links a.active{opacity:1;color:var(--purple);font-weight:600}
  nav.links a.active::after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:2px;background:var(--purple);border-radius:2px}
  .mobile-menu a.active{color:var(--purple)}
  .btn{
    display:inline-flex;align-items:center;gap:.55em;font-weight:600;font-size:.92rem;
    padding:.72em 1.35em;border-radius:999px;transition:transform .2s var(--ease), box-shadow .2s, background .2s;
    cursor:pointer;border:none;white-space:nowrap;
  }
  .btn-primary{background:var(--purple);color:#fff;box-shadow:0 8px 20px -8px rgba(93,47,136,.6)}
  .btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 26px -10px rgba(93,47,136,.7)}
  .btn-ghost{background:transparent;color:var(--purple-ink);border:1.5px solid var(--lilac-line)}
  .btn-ghost:hover{border-color:var(--purple);transform:translateY(-2px)}
  .btn-light{background:#fff;color:var(--purple-ink)}
  .btn-light:hover{transform:translateY(-2px);box-shadow:0 14px 26px -10px rgba(0,0,0,.3)}
  .btn-outline-light{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.4)}
  .btn-outline-light:hover{border-color:#fff;transform:translateY(-2px)}
  .btn-wa{display:inline-flex;align-items:center;gap:.5em;background:var(--orange);color:var(--purple-ink);font-weight:700;font-size:.95rem;padding:.5em .95em .5em .5em;border-radius:999px;box-shadow:0 14px 30px -10px rgba(242,163,60,.55);text-transform:none;border:none}
  .btn-wa:hover{transform:translateY(-2px);filter:brightness(1.05)}
  .btn-wa .wa{width:34px;height:34px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;color:var(--purple);flex:0 0 auto}
  .btn-wa b{font-weight:800;letter-spacing:.02em}
  .btn-wa .arw{opacity:.7;font-weight:700;margin-right:.04em}
  .nav-cta{display:flex;align-items:center;gap:14px}
  .menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
  .logo-img{height:36px;width:auto;display:block}
  .ft .logo-img{height:40px}

  /* ---------- HERO ---------- */
  /* filename is versioned so a swapped image is not masked by the 30-day image cache */
  .hero{position:relative;overflow:hidden;color:#fff;background:#3c1c5c url("hero-5.jpg") right top/cover no-repeat}
  .hex{position:absolute;inset:0;opacity:.42;pointer-events:none}
  .hero>.hex{z-index:1}
  .hero .glow{position:absolute;width:540px;height:540px;right:8%;top:-150px;border-radius:50%;z-index:1;
    background:radial-gradient(circle, rgba(196,156,230,.42) 0%, rgba(196,156,230,0) 66%);pointer-events:none}
  .hero-grid{position:relative;z-index:3;display:grid;grid-template-columns:1.06fr .94fr;gap:18px;align-items:center;min-height:582px;padding-block:54px 22px}
  .hero-copy{max-width:600px}
  .hero h1{font-size:clamp(2.15rem,4.4vw,3.15rem);font-weight:800;letter-spacing:-.015em;line-height:1.04;margin:16px 0 0;text-transform:uppercase}
  .hero .sub{font-family:'Playfair Display',serif;font-style:italic;font-weight:500;font-size:clamp(1.3rem,2.4vw,1.75rem);color:var(--lilac);margin:12px 0 0}
  .hero p.lead{font-size:1.06rem;color:rgba(255,255,255,.82);max-width:498px;margin:18px 0 0;line-height:1.55}
  .hero-cta{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap;align-items:center}
  .hero-figure{display:none}
  .hero-figure img{position:absolute;right:-2%;bottom:0;height:clamp(420px,52vw,640px);width:auto;display:block}
  /* balanced 4-up stat bar */
  .statbar{position:relative;z-index:3;border-top:1px solid rgba(255,255,255,.16);display:grid;grid-template-columns:repeat(4,1fr)}
  /* the hero photo runs behind these figures; a full-bleed scrim keeps them legible */
  .statbar::before{content:"";position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);
    width:100vw;background:linear-gradient(180deg,rgba(42,20,66,.62),rgba(42,20,66,.86));
    backdrop-filter:blur(3px);z-index:0;pointer-events:none}
  .statbar .item{position:relative;z-index:1}
  .statbar .item{padding:22px 28px}
  .statbar .item:first-child{padding-left:0}
  .statbar .item:last-child{padding-right:0}
  .statbar .item + .item{border-left:1px solid rgba(255,255,255,.13)}
  .statbar .num{font-family:'Playfair Display',serif;font-size:1.75rem;font-weight:600;color:#fff;line-height:1;display:block;white-space:nowrap}
  .statbar .num b{color:var(--orange);font-weight:600}
  .statbar .lbl{font-size:.8rem;color:rgba(255,255,255,.64);margin-top:9px;line-height:1.35;display:block}

  /* ---------- SECTION SHELL ---------- */
  .section{padding:96px 0}
  .section.tight{padding:72px 0}
  .sec-head{max-width:680px;margin-bottom:52px}
  .sec-head h2{font-size:clamp(2rem,3.6vw,2.85rem);margin-top:16px}
  .sec-head p{color:var(--muted);font-size:1.08rem;margin-top:16px}

  /* ---------- VALUE CHAIN HUB ---------- */
  .hub-band{background:linear-gradient(180deg,#fff 0%,var(--paper) 100%);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .hub{display:grid;grid-template-columns:1fr auto 1fr;gap:28px;align-items:stretch;margin-top:8px}
  .hub-col{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 24px;box-shadow:var(--shadow)}
  .hub-col h4{font-family:Inter,sans-serif;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 0 16px}
  .hub-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
  .hub-col li{display:flex;align-items:center;gap:11px;font-size:.96rem;font-weight:500}
  .hub-col li::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--lilac);flex:0 0 auto;transform:rotate(45deg)}
  .hub-center{display:flex;align-items:center;justify-content:center}
  .hub-core{
    background:radial-gradient(120% 120% at 30% 20%,#6e3aa0,var(--purple) 55%,var(--purple-deep));
    color:#fff;border-radius:20px;padding:34px 26px;text-align:center;min-width:220px;
    box-shadow:var(--shadow-lg);position:relative;overflow:hidden;
  }
  .hub-core .mark{width:46px;height:46px;margin:0 auto 14px;display:block}
  .hub-core strong{display:block;font-family:'Playfair Display',serif;font-weight:500;font-size:1.45rem;line-height:1.12}
  .hub-core .roles{margin-top:16px;display:flex;flex-direction:column;gap:8px}
  .hub-core .roles span{font-size:.82rem;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);padding:7px 10px;border-radius:8px}

  /* ---------- DISCIPLINES ---------- */
  .disc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
  .disc{
    background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px 28px;
    box-shadow:var(--shadow);transition:transform .3s var(--ease),box-shadow .3s,border-color .3s;
  }
  .disc:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--lilac)}
  .disc .ico{width:48px;height:48px;border-radius:12px;background:var(--lilac-soft);display:flex;align-items:center;justify-content:center;color:var(--purple);margin-bottom:18px}
  .disc h3{font-size:1.35rem;margin-bottom:10px}
  .disc .lead-out{font-size:1rem;font-weight:600;color:var(--ink);line-height:1.4;margin:0 0 16px}
  .disc ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
  .disc li{font-size:.92rem;color:var(--ink);opacity:.85;padding-left:18px;position:relative}
  .disc li::before{content:"";position:absolute;left:0;top:.62em;width:7px;height:2px;background:var(--purple);border-radius:2px}

  /* ---------- SECTORS ---------- */
  .sectors{background:var(--purple-ink);color:#fff;position:relative;overflow:hidden}
  .sectors .hex{opacity:.22}
  .sec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;position:relative}
  .sector{
    background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.12);border-radius:16px;
    padding:30px 30px;transition:background .3s,border-color .3s,transform .3s var(--ease);
  }
  .sector:hover{background:rgba(255,255,255,.08);border-color:var(--lilac);transform:translateY(-4px)}
  .sector .k{font-family:'Playfair Display',serif;font-size:.95rem;color:var(--lilac);font-style:italic}
  .sector h3{font-size:1.3rem;margin:8px 0 12px;color:#fff}
  .sector .need{font-size:.92rem;color:rgba(255,255,255,.62);margin-bottom:12px}
  .sector .do{font-size:.98rem;color:rgba(255,255,255,.9);line-height:1.55}

  /* ---------- NO EXTRA COST ---------- */
  .nocost{background:#f3eff9;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .nocost-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:6px}
  .ncard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 26px;box-shadow:var(--shadow);transition:transform .3s var(--ease),box-shadow .3s,border-color .3s}
  .ncard:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:var(--lilac)}
  .ncard .ico{width:44px;height:44px;border-radius:11px;background:var(--lilac-soft);display:flex;align-items:center;justify-content:center;color:var(--purple);margin-bottom:16px}
  .ncard h4{font-size:1.12rem;margin:0 0 8px;color:var(--ink)}
  .ncard p{font-size:.94rem;color:var(--ink);opacity:.82;line-height:1.55;margin:0}

  /* ---------- CREDIBILITY BAND ---------- */
  .cred{background:#fff;border-top:1px solid var(--line)}
  .cred-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:54px;align-items:center}
  .cred-photo{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:4/3.2;background:var(--purple);box-shadow:var(--shadow-lg)}
  .cred-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:grayscale(1) contrast(1.05)}
  .cred-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(140deg, rgba(93,47,136,.5) 0%, rgba(60,28,92,.62) 100%);mix-blend-mode:multiply}
  .cred-photo .badge{position:absolute;left:22px;bottom:22px;z-index:2;background:rgba(255,255,255,.95);color:var(--purple-ink);border-radius:14px;padding:14px 18px;display:flex;align-items:center;gap:13px;box-shadow:var(--shadow)}
  .cred-photo .badge .mk{width:32px;height:32px;color:var(--purple);flex:0 0 auto}
  .cred-photo .badge b{font-family:'Playfair Display',serif;font-weight:600;font-size:1.02rem;display:block;line-height:1.1}
  .cred-photo .badge small{font-size:.74rem;color:var(--muted)}
  .cred-copy .eyebrow{margin-bottom:16px}
  .cred-copy h2{font-size:clamp(1.9rem,3.3vw,2.6rem)}
  .cred-copy p{color:var(--muted);font-size:1.05rem;margin-top:16px}
  .cred-stats{display:flex;flex-wrap:wrap;margin:28px 0 30px}
  .cred-stats > div{padding:2px 24px}
  .cred-stats > div + div{border-left:1px solid var(--line)}
  .cred-stats > div:first-child{padding-left:0}
  .cred-stats .v{font-family:'Playfair Display',serif;font-size:1.95rem;font-weight:500;color:var(--purple);line-height:1;white-space:nowrap}
  .cred-stats .v b{color:var(--orange);font-weight:600}
  .cred-stats .c{font-size:.78rem;color:var(--muted);margin-top:7px;max-width:128px}
  .cred-banner{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:1700/837;background:var(--purple);box-shadow:var(--shadow-lg);margin-bottom:42px}
  .cred-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%}
  .cred-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(42,20,66,0) 58%, rgba(42,20,66,.5) 100%)}
  .cred-banner .badge{position:absolute;left:24px;bottom:24px;z-index:2;background:rgba(255,255,255,.95);color:var(--purple-ink);border-radius:14px;padding:13px 18px;display:flex;align-items:center;gap:13px;box-shadow:var(--shadow)}
  .cred-banner .badge .mk{width:32px;height:32px;color:var(--purple);flex:0 0 auto}
  .cred-banner .badge b{font-family:'Playfair Display',serif;font-weight:600;font-size:1.02rem;display:block;line-height:1.1}
  .cred-banner .badge small{font-size:.74rem;color:var(--muted)}
  .cred-grid2{display:grid;grid-template-columns:1.25fr 1fr;gap:50px;align-items:center}
  .cred-side{display:flex;flex-direction:column;align-items:flex-start}
  .tlogo{height:32px;width:auto;max-width:142px;object-fit:contain;margin-bottom:20px;align-self:flex-start}
  .logo-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:26px 22px;align-items:center;justify-items:center}
  .plogo{max-height:52px;max-width:100%;width:auto;height:auto;object-fit:contain;opacity:.92;transition:transform .25s var(--ease),opacity .25s}
  .plogo:hover{opacity:1;transform:scale(1.07)}

  /* ---------- TESTIMONIALS ---------- */
  .tcards{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
  .tcard{
    background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px 30px;box-shadow:var(--shadow);
    display:flex;flex-direction:column;
  }
  .tcard .stat{display:flex;gap:30px;margin-bottom:20px;flex-wrap:wrap}
  .tcard .stat .s{display:flex;flex-direction:column}
  .tcard .stat .v{font-family:'Playfair Display',serif;font-size:2.1rem;font-weight:500;color:var(--purple);line-height:1}
  .tcard .stat .c{font-size:.76rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-top:6px}
  .tcard h3{font-size:1.28rem;margin-bottom:12px}
  .tcard p{color:var(--ink);opacity:.82;font-size:.97rem}
  .tcard .who{margin-top:auto;padding-top:20px;font-size:.86rem;font-weight:600;color:var(--purple-ink);display:flex;align-items:center;gap:9px}
  .tcard .who::before{content:"";width:22px;height:2px;background:var(--lilac);border-radius:2px}

  /* ---------- COMPOUND / FLYWHEEL ---------- */
  .compound{background:linear-gradient(180deg,var(--lilac-soft),#fff)}
  .flow{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;counter-reset:step}
  .step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 22px;position:relative}
  .step .n{font-family:'Playfair Display',serif;font-size:1.1rem;color:#fff;background:var(--purple);width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;margin-bottom:14px}
  .step p{font-size:.95rem;color:var(--ink);opacity:.85}

  /* ---------- PARTNERS ---------- */
  .partners{background:#fff;border-top:1px solid var(--line)}
  .marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
  .track{display:flex;gap:18px;width:max-content;animation:scroll 38s linear infinite}
  .partners:hover .track{animation-play-state:paused}
  @keyframes scroll{to{transform:translateX(-50%)}}
  .chip{
    flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:12px;
    padding:16px 26px;font-weight:600;color:var(--muted);font-size:1rem;letter-spacing:.01em;
  }

  /* ---------- PVM ---------- */
  .pvm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
  .pvm{padding:30px 28px;border-left:3px solid var(--lilac);background:#fff;border-radius:0 14px 14px 0;box-shadow:var(--shadow)}
  .pvm .ico{color:var(--purple);margin-bottom:14px}
  .pvm h3{font-size:1.5rem;margin-bottom:12px;font-style:italic}
  .pvm p{color:var(--muted);font-size:1rem}

  /* ---------- CTA ---------- */
  .cta-band{position:relative;overflow:hidden;color:#fff;
    background:radial-gradient(120% 140% at 80% 10%,#6e3aa0,var(--purple) 45%,var(--purple-deep) 90%);
    border-radius:28px;padding:64px 56px;
    width:calc(100% - 56px);max-width:calc(var(--maxw) - 56px);margin-inline:auto;margin-block-start:96px;
  }
  .cta-band .hex{opacity:.32;z-index:2}
  .cta-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1);opacity:.16;z-index:0;pointer-events:none}
  .cta-inner{position:relative;z-index:3;max-width:640px}
  .cta-band h2{font-size:clamp(2rem,3.6vw,2.9rem);margin:14px 0 0}
  .cta-band p{color:rgba(255,255,255,.85);font-size:1.1rem;margin:18px 0 0}
  .cta-band .row{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap}

  /* ---------- FOOTER ---------- */
  footer.ft{background:var(--purple-ink);color:rgba(255,255,255,.78);margin-top:96px;padding:72px 0 34px}
  .ft-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
  .ft .logo{color:#fff}
  .ft .logo span{color:rgba(255,255,255,.5)}
  .ft-blurb{margin-top:18px;font-size:.92rem;color:rgba(255,255,255,.62);max-width:280px}
  .ft h5{font-family:Inter,sans-serif;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:var(--lilac);margin:0 0 16px;font-weight:600}
  .ft ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
  .ft ul a{font-size:.92rem;color:rgba(255,255,255,.74)}
  .ft ul a:hover{color:#fff}
  .ft-addr{font-size:.92rem;line-height:1.7;color:rgba(255,255,255,.74)}
  .ft-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(255,255,255,.12);margin-top:52px;padding-top:24px;font-size:.82rem;color:rgba(255,255,255,.5);flex-wrap:wrap;gap:14px}
  .socials{display:flex;gap:10px}
  .socials a{width:34px;height:34px;border-radius:8px;border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);transition:.2s}
  .socials a:hover{border-color:var(--lilac);color:#fff}

  .tag-micro{display:inline-block;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--orange);padding:3px 9px;border-radius:6px;vertical-align:middle;margin-left:8px}

  /* ---------- REVEAL ---------- */
  .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
  .reveal.in{opacity:1;transform:none}

  /* ---------- RESPONSIVE ---------- */
  @media(max-width:960px){
    .hub{grid-template-columns:1fr}
    .hub-center{order:-1}
    .disc-grid,.flow,.pvm-grid,.nocost-grid{grid-template-columns:1fr}
    .tcards{grid-template-columns:1fr}
    .sec-grid{grid-template-columns:repeat(2,1fr)}
    .cred-grid{grid-template-columns:1fr;gap:34px}
    .cred-grid2{grid-template-columns:1fr;gap:26px}
    .logo-grid{grid-template-columns:repeat(4,1fr);gap:28px 20px}
    .hero{background:radial-gradient(110% 120% at 72% 42%, #6e3aa0 0%, #5d2f88 30%, #3c1c5c 72%, #281340 100%)}
    .hero-grid{grid-template-columns:1fr;min-height:0;padding-block:36px 12px}
    /* position:relative is required — the image inside is absolutely positioned and
       would otherwise resolve against .hero and cover the whole section. */
    .hero-figure{display:block;position:relative;height:300px;order:2;margin-top:8px;border-radius:18px;overflow:hidden}
    .hero-figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 24%;right:auto;bottom:auto;transform:none;display:block}
    .ft-top{grid-template-columns:1fr 1fr}
  }
  @media(max-width:720px){
    .section{padding:68px 0}
    .sec-grid{grid-template-columns:1fr}
    .logo-grid{grid-template-columns:repeat(3,1fr);gap:24px 16px}
    .statbar{grid-template-columns:1fr 1fr}
    .statbar .item{padding:16px 14px}
    .statbar .item + .item{border-left:none}
    .statbar .item:nth-child(2n){border-left:1px solid rgba(255,255,255,.13)}
    .statbar .item:nth-child(n+3){border-top:1px solid rgba(255,255,255,.13)}
    .cta-band{padding:48px 34px;width:calc(100% - 48px);margin-block-start:66px}
    .wrap{padding:0 24px}
    .ft-top{grid-template-columns:1fr}
    .ft-bottom{flex-direction:column;align-items:flex-start}
  }
  .mobile-menu{display:none;position:absolute;top:var(--nav-h);left:0;right:0;background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);padding:12px 28px 20px;flex-direction:column;gap:4px;z-index:49}
  .mobile-menu a{padding:13px 2px;font-weight:600;color:var(--ink);border-bottom:1px solid var(--line)}
  .mobile-menu .mm-wa{margin-top:14px;justify-content:center;border-bottom:none;color:var(--purple-ink)}
  .mobile-menu.open{display:flex}
  @media(min-width:1001px){.mobile-menu{display:none!important}}
  @media(prefers-reduced-motion:reduce){
    *{animation:none!important}
    .reveal{opacity:1;transform:none;transition:none}
    html{scroll-behavior:auto}
  }
  /* ==========================================================================
     MOBILE REFINEMENTS
     Layered after the base system above, so these rules win on equal specificity.
     ========================================================================== */

  /* ---------- global safety ---------- */
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{overflow-x:hidden}

  /* Grid and flex children default to min-width:auto, which lets nowrap figures
     and long unbroken words push the page wider than the viewport. */
  .hero-grid>*,.statbar>*,.hub>*,.disc-grid>*,.sec-grid>*,.nocost-grid>*,
  .cred-grid>*,.cred-grid2>*,.tcards>*,.flow>*,.pvm-grid>*,.ft-top>*,
  .logo-grid>*,.cred-stats>*{min-width:0}
  h1,h2,h3,h4,h5,p,li{overflow-wrap:break-word}

  /* ---------- nav ----------
     The desktop bar needs ~915px for its logo, four links and two buttons.
     Hand over to the hamburger before it starts to crowd. */
  @media(max-width:1000px){
    nav.links,.nav-cta .btn-ghost{display:none}
    .menu-toggle{display:inline-flex;align-items:center;justify-content:center;
      width:44px;height:44px;padding:0;margin-right:-8px}
    .nav-cta{gap:10px}
  }
  /* Below this the primary CTA no longer fits beside the logo; the menu carries it. */
  @media(max-width:560px){
    .nav-cta .btn{display:none}
  }
  .mobile-menu{max-height:calc(100dvh - var(--nav-h));overflow-y:auto;overscroll-behavior:contain}
  .mobile-menu a:not(.mm-wa){display:flex;align-items:center;min-height:48px;padding:12px 2px}

  /* ---------- headings ----------
     The clamp() floors were set for desktop and stay too large on a phone. */
  @media(max-width:560px){
    .hero h1,.a-hero h1,.cl-hero h1,.c-hero h1,
    .h-hero h1,.p-hero h1,.r-hero h1{font-size:clamp(1.7rem,7.2vw,2.3rem);letter-spacing:-.01em}
    .sec-head h2,.cta-band h2{font-size:clamp(1.55rem,6.2vw,2rem)}
    .hero .sub,.p-hero .sub{font-size:1.15rem}
    .hero p.lead,.a-hero .lead,.cl-hero .lead,.c-hero .lead,
    .h-hero .lead,.p-hero .lead,.r-hero .lead{font-size:1rem}
    .sec-head p{font-size:1rem}
  }

  /* ---------- touch targets ---------- */
  @media(max-width:1000px){
    .socials a{width:44px;height:44px}
    .route a.val,.ft ul a{display:inline-block;padding:2px 0}
  }

  /* ---------- small phones ---------- */
  @media(max-width:480px){
    :root{--nav-h:64px}
    .wrap{padding:0 20px}
    .logo-img{height:30px}
    .ft .logo-img{height:34px}
    .section{padding:62px 0}
    .section.tight{padding:52px 0}
    .sec-head{margin-bottom:38px}
    .hero-grid{padding-block:46px 22px}
    .hero p.lead{margin-top:16px}
    .hero-cta{margin-top:26px}

    /* Two columns of stats leaves ~150px each — one column reads better. */
    .statbar{grid-template-columns:1fr}
    .statbar .item{padding:14px 2px}
    .statbar .item + .item{border-left:none;border-top:1px solid rgba(255,255,255,.13)}
    .statbar .item:nth-child(2n){border-left:none}
    .statbar .num{white-space:normal;font-size:1.5rem}

    /* Full-width CTAs are easier to hit than side-by-side pills. */
    .hero-cta,.cta-band .row{flex-direction:column;align-items:stretch;gap:10px}
    .hero-cta .btn,.cta-band .row .btn{width:100%;justify-content:center}
    .hero-cta .btn-wa,.cta-band .row .btn-wa{justify-content:center}
    .cta-band{padding:34px 22px;width:calc(100% - 40px);border-radius:22px;margin-block-start:54px}

    /* Give copy back the room the card padding was taking. */
    .disc,.ncard,.sector,.tcard,.pvm,.step,.hub-col{padding:22px 18px}
    .disc h3,.sector h3{font-size:1.18rem}
    .hub-core{min-width:0;padding:26px 20px}

    .logo-grid{grid-template-columns:repeat(2,1fr);gap:20px 14px}
    .plogo{max-height:44px}

    /* These stats wrap onto several lines, where a left divider reads as a stray rule. */
    .cred-stats{gap:16px 0}
    .cred-stats > div{padding:2px 16px}
    .cred-stats > div + div{border-left:none}
    .cred-stats .v{font-size:1.6rem;white-space:normal}
    .cred-stats .c{max-width:none}

    .tcard .stat{gap:18px}
    .tcard .stat .v{font-size:1.7rem}
    .chip{padding:13px 18px;font-size:.92rem}

    footer.ft{margin-top:64px;padding:52px 0 28px}
    .ft-top{gap:30px}
    .ft-bottom{margin-top:38px}
  }
