:root{
    --navy:#0f2557;
    --navy-800:#163075;
    --navy-700:#1d3d94;
    --gold:#c9a84c;
    --gold-light:#e4c87a;
    --gold-dark:#a07830;
    --paper:#f7f5f0;
    --paper-dim:#ece8de;
    --ink:#101827;
    --ink-soft:#4b5566;
    --line:#dcd6c6;
    --success:#1f7a4d;
    --card-shadow: 0 20px 50px -20px rgba(15,37,87,.35);
  }
  /* Deck commits to one fixed light identity — no dark-mode variant. */

  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;height:100%;width:100%;}
  body{
    background:var(--paper);
    color:var(--ink);
    font-family:'Cairo',-apple-system,'Segoe UI',sans-serif;
    direction:rtl;
    overflow:hidden;
  }
  .num{font-family:'IBM Plex Mono','Cairo',monospace;font-variant-numeric:tabular-nums;direction:ltr;display:inline-block;}

  /* ── Deck shell ─────────────────────────────────────────── */
  #deck{
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
    background:var(--navy);
  }
  .slide{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    opacity:0;
    pointer-events:none;
    transform:translateY(28px) scale(.97);
    transition:opacity .55s cubic-bezier(.22,.68,.32,1), transform .55s cubic-bezier(.22,.68,.32,1);
    background:var(--paper);
    will-change:transform,opacity;
  }
  .slide.active{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0) scale(1);
    z-index:2;
  }
  /* Outgoing slide: slides out opposite the direction of travel, instead of just vanishing */
  .slide.leave-next{
    opacity:0;
    transform:translateX(-40px) scale(.97);
    transition:opacity .4s ease, transform .4s cubic-bezier(.22,.68,.32,1);
    z-index:1;
  }
  .slide.leave-prev{
    opacity:0;
    transform:translateX(40px) scale(.97);
    transition:opacity .4s ease, transform .4s cubic-bezier(.22,.68,.32,1);
    z-index:1;
  }
  @media (prefers-reduced-motion: reduce){
    .slide{transform:none;}
    .slide.leave-next,.slide.leave-prev{transform:none;}
  }
  .slide-inner{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:clamp(22px,3.6vh,56px) clamp(40px,6vw,96px) clamp(52px,7.5vh,72px);
    min-height:0;
    position:relative;
  }

  /* Ambient background glow for regular (light) content slides — subtle, decorative only */
  .slide:not(.s-cover):not(.s-section):not(.s-close)::before,
  .slide:not(.s-cover):not(.s-section):not(.s-close)::after{
    content:'';
    position:absolute;
    border-radius:50%;
    filter:blur(80px);
    pointer-events:none;
    z-index:0;
  }
  .slide:not(.s-cover):not(.s-section):not(.s-close)::before{
    width:380px;height:380px;
    background:rgba(201,168,76,.10);
    top:-120px;inset-inline-end:-100px;
  }
  .slide:not(.s-cover):not(.s-section):not(.s-close)::after{
    width:320px;height:320px;
    background:rgba(15,37,87,.06);
    bottom:-100px;inset-inline-start:-80px;
  }
  .slide-inner > *{position:relative;z-index:1;}
  @media (prefers-reduced-motion: no-preference){
    .slide.active:not(.s-cover):not(.s-section):not(.s-close)::before{animation:drift1 12s ease-in-out infinite;}
    .slide.active:not(.s-cover):not(.s-section):not(.s-close)::after{animation:drift2 14s ease-in-out infinite;}
  }

  /* ── Entrance animation: direct children of slide-inner rise+fade in, staggered ── */
  @media (prefers-reduced-motion: no-preference){
    @keyframes rise-in{
      from{opacity:0;transform:translateY(16px);}
      to{opacity:1;transform:translateY(0);}
    }
    .slide-inner > *{
      opacity:0;
      animation:rise-in .55s cubic-bezier(.2,.7,.3,1) forwards;
      animation-play-state:paused;
    }
    .slide.active .slide-inner > *{animation-play-state:running;}
    .slide-inner > *:nth-child(1){animation-delay:.05s;}
    .slide-inner > *:nth-child(2){animation-delay:.12s;}
    .slide-inner > *:nth-child(3){animation-delay:.19s;}
    .slide-inner > *:nth-child(4){animation-delay:.26s;}
    .slide-inner > *:nth-child(5){animation-delay:.33s;}
    .slide-inner > *:nth-child(6){animation-delay:.4s;}
    .slide-inner > *:nth-child(n+7){animation-delay:.46s;}
    /* Cards inside a grid/steps list get their own micro-stagger */
    .grid3 > *, .grid2 > *, .steps > *{
      opacity:0;
      animation:rise-in .5s cubic-bezier(.2,.7,.3,1) forwards;
      animation-play-state:paused;
    }
    .slide.active .grid3 > *, .slide.active .grid2 > *, .slide.active .steps > *{animation-play-state:running;}
    .grid3 > *:nth-child(1), .grid2 > *:nth-child(1), .steps > *:nth-child(1){animation-delay:.22s;}
    .grid3 > *:nth-child(2), .grid2 > *:nth-child(2), .steps > *:nth-child(2){animation-delay:.3s;}
    .grid3 > *:nth-child(3), .grid2 > *:nth-child(3), .steps > *:nth-child(3){animation-delay:.38s;}
    .grid3 > *:nth-child(4), .grid2 > *:nth-child(4), .steps > *:nth-child(4){animation-delay:.46s;}
    .grid3 > *:nth-child(5), .steps > *:nth-child(5){animation-delay:.54s;}
    .grid3 > *:nth-child(6){animation-delay:.62s;}
  }
  @media (prefers-reduced-motion: reduce){
    .slide{transition:opacity .3s ease;}
  }

  /* ── Chrome: progress + controls ───────────────────────── */
  #chrome{
    position:absolute;
    inset-inline:0;
    bottom:0;
    height:6px;
    background:rgba(0,0,0,.08);
    z-index:50;
  }
  #chrome-fill{
    height:100%;
    background:linear-gradient(90deg,var(--gold-dark),var(--gold));
    width:0%;
    transition:width .4s ease;
  }
  #nav-hint{
    position:absolute;
    bottom:16px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:14px;
    background:rgba(15,37,87,.88);
    color:#fff;
    border:1px solid rgba(255,255,255,.12);
    padding:8px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
    z-index:60;
    backdrop-filter:blur(6px);
    box-shadow:0 10px 30px -10px rgba(0,0,0,.5);
  }
  #nav-hint .sep{opacity:.35;}
  #nav-hint .count{font-family:'IBM Plex Mono';direction:ltr;color:var(--gold-light);}
  #slide-label{
    position:absolute;
    bottom:14px;
    left:24px;
    max-width:34vw;
    font-size:16px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--gold-light);
    background:var(--navy);
    padding:7px 16px;
    border-radius:999px;
    box-shadow:0 6px 16px -6px rgba(15,37,87,.4);
    z-index:60;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    pointer-events:none;
  }
  #slide-label:empty{display:none;}
  .navbtn{
    background:none;border:none;color:#fff;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    width:26px;height:26px;border-radius:50%;
    transition:background .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
    font-size:15px;
  }
  .navbtn:hover{background:rgba(255,255,255,.15);transform:scale(1.18);}
  .navbtn:active{transform:scale(.92);}
  .navbtn:focus-visible{outline:2px solid var(--gold-light);outline-offset:2px;}

  /* ── Common bits ────────────────────────────────────────── */
  /* Eyebrow text stays in the DOM (read by app.js into #slide-label at the
     bottom-left) but is no longer shown at the top of the slide itself. */
  .eyebrow{
    position:absolute;
    width:1px;height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
  }
  .eyebrow::before{
    content:'';width:28px;height:2px;background:var(--gold);border-radius:2px;
  }
  h1.title{
    font-size:clamp(43px,5.6vw,72px);
    font-weight:900;
    line-height:1.18;
    color:var(--navy);
    margin:0 0 18px;
    text-wrap:balance;
  }
  h1.title .hl{color:var(--gold-dark);}
  .subtitle{
    font-size:clamp(21px,1.9vw,28px);
    color:var(--ink-soft);
    line-height:1.65;
    max-width:66ch;
    margin:0;
  }

  /* ── Big-stage slide: title + one line + full-width media ──
     Built for a large hall screen viewed from a distance, navigated
     with a left/right-only clicker — no side details, no zoom. */
  .stage-inner{padding-top:clamp(20px,3vh,44px);padding-bottom:clamp(76px,11vh,96px);}
  .stage-line{
    font-size:clamp(20px,1.8vw,26px);
    color:var(--ink-soft);
    line-height:1.5;
    max-width:80ch;
    margin:0 0 clamp(16px,2.4vh,28px);
  }

.stage-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 10px 0 34px;
}

/* ── MacBook Pro mockup: dark bezel screen + metal hinge base ── */
.stage-media .browser-frame {
  width: min(1180px, 92%);
  max-width: 92%;
  aspect-ratio: 16/10;
  height: auto;
  max-height: calc(100vh - 240px); /* يضمن الملاءمة عند F11 */
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 4px 4px;
  overflow: visible;
  background: #1c1c1e !important;
  padding: 16px 16px 20px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 30px 70px -24px rgba(15,37,87,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
}
  .stage-media .browser-frame::before{
    /* camera notch */
    content:'';
    position:absolute;
    top:5px;left:50%;transform:translateX(-50%);
    width:8px;height:8px;border-radius:50%;
    background:#000;
    box-shadow:0 0 0 1.5px rgba(255,255,255,.06);
    z-index:2;
  }
  .stage-media .browser-frame::after{
    /* laptop base / keyboard deck below the screen */
    content:'';
    position:absolute;
    left:-4%;right:-4%;bottom:-24px;
    height:16px;
    background:linear-gradient(#e4e6ea,#b7bac4);
    border-radius:0 0 8px 8px;
    box-shadow:0 12px 20px -10px rgba(0,0,0,.45);
    clip-path:polygon(3% 0,97% 0,100% 100%,0 100%);
  }
  .stage-media .browser-frame:hover{
    transform:translateY(-4px);
  }

.stage-media .browser-frame img,
.stage-media .browser-frame video,
.browser-frame img,
.browser-frame video {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #1c1c1e !important;
  border-radius: 3px;
}
.stage-media .browser-bar{display:none;}
  .browser-frame{
    border-radius:14px;
    overflow:hidden;
    background:#1e1e24;
    box-shadow:0 24px 60px -20px rgba(15,37,87,.4), 0 0 0 4px rgba(15,37,87,.1);
    border:1px solid rgba(15,37,87,.14);
    transition:transform .4s cubic-bezier(.22,.68,.32,1), box-shadow .4s ease;
  }
  .browser-frame:hover{
    transform:translateY(-4px) scale(1.008);
    box-shadow:0 30px 70px -18px rgba(15,37,87,.5), 0 0 0 4px rgba(15,37,87,.16);
  }
  /* Mac-style window chrome bar: traffic-light dots + centered URL pill */
  .browser-bar{
    display:flex;align-items:center;
    flex-shrink:0;
    gap:8px;
    padding:11px 14px;
    background:linear-gradient(#3a3a42,#2c2c33);
    border-bottom:1px solid rgba(0,0,0,.35);
  }
  .browser-dot{width:11px;height:11px;border-radius:50%;background:#c9cedb;flex-shrink:0;}
  .browser-url{display:none;}
  .browser-frame img,.browser-frame video{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top;cursor:zoom-in;}
  .browser-frame{position:relative;display:flex;flex-direction:column;}
  .browser-frame .zoom-hint{
    position:absolute;bottom:10px;inset-inline-end:10px;
    background:rgba(15,23,39,.72);color:#fff;
    font-size:11.5px;font-weight:700;
    padding:5px 11px;border-radius:999px;
    display:flex;align-items:center;gap:5px;
    pointer-events:none;opacity:0;transition:opacity .2s ease;
    backdrop-filter:blur(3px);
  }
  .browser-frame:hover .zoom-hint{opacity:1;}

  footer.slide-foot{
    display:flex;align-items:center;justify-content:space-between;
    padding-top:16px;margin-top:auto;
    border-top:1px solid var(--line);
    font-size:16px;color:var(--ink-soft);
  }
  footer.slide-foot .brand{
    display:flex;align-items:center;gap:8px;font-weight:700;color:var(--navy);
  }
  footer.slide-foot .brand .dot{width:6px;height:6px;border-radius:50%;background:var(--gold);}
  [dir-note]{font-family:'IBM Plex Mono';direction:ltr;}

  /* ── Slide 1: Cover ─────────────────────────────────────── */
  .s-cover{background:radial-gradient(120% 140% at 20% 0%,var(--navy-700) 0%,var(--navy) 55%,#081538 100%);color:#fff;}
  .slide-inner.s-cover{position:relative;overflow:hidden;}
  /* Stamp-like reveal: elements "print" into place — scale down + fade in, like a seal being stamped */
  .cover-reveal{
    display:inline-block;
    opacity:0;
    transform:scale(1.5);
    filter:blur(6px);
    animation:cover-stamp 1.3s cubic-bezier(.16,.9,.3,1) forwards;
    animation-play-state:paused;
  }
  .slide.active .cover-reveal{animation-play-state:running;}
  @keyframes cover-stamp{
    0%{opacity:0;transform:scale(1.6);filter:blur(8px);}
    60%{opacity:1;transform:scale(.96);filter:blur(0);}
    100%{opacity:1;transform:scale(1);filter:blur(0);}
  }
  @media (prefers-reduced-motion: reduce){
    .cover-reveal{animation:none;opacity:1;transform:none;filter:none;}
  }
  .s-cover .cover-authority{
    display:flex;flex-direction:column;align-items:center;
    width:fit-content;
    margin-top:-116px;
  }
  .s-cover .cover-logo{
    display:block;
    width:clamp(104px,9vw,148px);height:clamp(104px,9vw,148px);
    border-radius:50%;
    object-fit:cover;
    margin-bottom:32px;
    background:#fff;
    box-shadow:0 10px 26px -8px rgba(0,0,0,.55);
  }
  .s-cover .cover-grid{
    flex:1;display:grid;grid-template-columns:.32fr 1.68fr;
    gap:clamp(24px,4vw,56px);align-items:center;min-height:0;
    position:relative;z-index:1;
  }
  .s-cover .cover-text{text-align:center;display:flex;flex-direction:column;align-items:center;gap:clamp(24px,4vh,48px);}
  .s-cover .cover-visual{
    display:flex;align-items:center;justify-content:center;height:100%;
    overflow:hidden;
  }
  .s-cover .cover-visual .browser-frame{
    width:100%;max-width:100%;max-height:100%;min-width:0;
    aspect-ratio:1920/1030;
    display:flex;flex-direction:column;
    border:2px solid rgba(228,200,122,.55);
    box-shadow:0 40px 90px -30px rgba(0,0,0,.6), 0 0 0 6px rgba(228,200,122,.08);
  }
  .s-cover .cover-visual .browser-bar{display:none;}
  .s-cover .cover-visual .browser-frame:hover{
    transform:translateY(-4px) scale(1.012);
    box-shadow:0 48px 100px -28px rgba(0,0,0,.65), 0 0 0 6px rgba(228,200,122,.14);
  }
  .s-cover .cover-visual .browser-frame img,.s-cover .cover-visual .browser-frame video{
    flex:1;min-height:0;max-height:none;width:100%;
    object-fit:cover;object-position:center;
  }
  @media (max-width:900px){
    .s-cover .cover-grid{grid-template-columns:1fr;}
    .s-cover .cover-visual{display:none;}
  }
  .s-cover .glow{
    position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;
  }
  .s-cover .glow1{width:520px;height:520px;background:rgba(201,168,76,.22);top:-160px;inset-inline-end:-140px;}
  .s-cover .glow2{width:420px;height:420px;background:rgba(45,80,180,.35);bottom:-160px;inset-inline-start:-120px;}
  @media (prefers-reduced-motion: no-preference){
    @keyframes drift1{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(-18px,22px) scale(1.06);}}
    @keyframes drift2{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(20px,-16px) scale(1.05);}}
    .s-cover .glow1{animation:drift1 9s ease-in-out infinite;}
    .s-cover .glow2{animation:drift2 11s ease-in-out infinite;}
  }
  .s-cover .badge{
    display:flex;align-items:center;gap:16px;
    background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);
    padding:14px 28px 14px 14px;border-radius:999px;margin-bottom:26px;
    font-size:clamp(18px,1.7vw,27px);font-weight:700;letter-spacing:.04em;color:var(--gold-light);
    backdrop-filter:blur(6px);white-space:nowrap;
  }
  .s-cover .badge .scales{
    flex-shrink:0;
    width:54px;height:54px;border-radius:14px;
    background:linear-gradient(135deg,var(--gold-light),var(--gold-dark));
    display:flex;align-items:center;justify-content:center;
    font-size:27px;
    box-shadow:0 8px 18px -6px rgba(201,168,76,.5);
  }
  .s-cover h1{
    font-size:clamp(32px,3vw,58px);
    font-weight:900;line-height:1.15;margin:0;
    text-align:center;
  }
  .s-cover h1 .hl{color:var(--gold-light);white-space:nowrap;display:block;}
  .s-cover p.lead{
    font-size:clamp(20px,1.9vw,25px);
    color:rgba(255,255,255,.72);
    max-width:56ch;line-height:1.6;margin:0 0 26px;
  }
  .s-cover .meta-row{
    display:flex;gap:28px;flex-wrap:wrap;justify-content:flex-start;
    padding-top:20px;border-top:1px solid rgba(255,255,255,.14);
    width:100%;max-width:600px;
  }
  .s-cover .meta-item{text-align:start;}
  .s-cover .meta-item .k{font-size:14px;letter-spacing:.12em;color:rgba(255,255,255,.45);text-transform:uppercase;margin-bottom:5px;}
  .s-cover .meta-item .v{font-size:20px;font-weight:700;color:#fff;}

  /* ── Section divider slides ─────────────────────────────── */
  .s-section{background:var(--navy);color:#fff;position:relative;overflow:hidden;}
  .s-section::before,.s-section::after{
    content:'';position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;z-index:0;
  }
  .s-section::before{width:460px;height:460px;background:rgba(201,168,76,.16);top:-140px;inset-inline-end:-120px;}
  .s-section::after{width:380px;height:380px;background:rgba(45,80,180,.28);bottom:-140px;inset-inline-start:-100px;}
  @media (prefers-reduced-motion: no-preference){
    .slide.active .s-section::before{animation:drift1 10s ease-in-out infinite;}
    .slide.active .s-section::after{animation:drift2 12s ease-in-out infinite;}
  }
  .slide-inner.s-section{justify-content:flex-start;align-items:flex-start;position:relative;}
  .s-section .bignum{
    position:absolute;
    bottom:clamp(-10px,-1vw,10px);
    inset-inline-start:clamp(30px,5vw,80px);
    font-family:'IBM Plex Mono';font-weight:600;
    font-size:clamp(90px,13vw,180px);
    color:rgba(255,255,255,.07);
    line-height:1;
    direction:ltr;
    z-index:0;
    pointer-events:none;
  }
  .s-section .eyebrow, .s-section h1, .s-section p.lead, .s-section .grid3, .s-section .grid2, .s-section .compare-table{
    position:relative;
    z-index:1;
  }
  .s-section .eyebrow{color:var(--gold-light);}
  .s-section .eyebrow::before{background:var(--gold-light);}
  .s-section h1{
    font-size:clamp(40px,6.5vw,85px);font-weight:900;line-height:1.15;
    margin:0 0 clamp(12px,2vh,24px);text-wrap:balance;
  }
  .s-section h1 .hl{color:var(--gold-light);}
  .s-section p.lead{font-size:clamp(19px,1.95vw,28px);color:rgba(255,255,255,.65);max-width:62ch;line-height:1.55;}

  /* ── Traditional vs. electronic auction comparison table ─── */
  .compare-table{max-width:1340px;width:100%;margin-inline:auto;align-self:center;}
  .compare-head{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:clamp(10px,1.6vh,18px);}
  .compare-col-head{
    text-align:center;font-weight:800;font-size:24px;letter-spacing:.02em;
    padding:clamp(10px,1.5vh,16px) 18px;border-radius:12px 12px 0 0;
  }
  .compare-col-head.trad{background:rgba(220,38,38,.14);color:rgba(255,255,255,.75);}
  .compare-col-head.elec{background:rgba(201,168,76,.18);color:var(--gold-light);}
  .compare-row{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:clamp(10px,1.6vh,18px);}
  .compare-cell{
    display:flex;align-items:center;gap:16px;
    padding:clamp(14px,2.4vh,24px) 26px;border-radius:16px;font-size:clamp(18px,1.75vw,24px);line-height:1.4;
    border:1px solid rgba(255,255,255,.1);
    transition:transform .3s cubic-bezier(.22,.68,.32,1);
  }
  .compare-cell:hover{transform:translateY(-3px);}
  .compare-cell.trad{background:rgba(255,255,255,.045);color:#fff;}
  .compare-cell.elec{background:rgba(201,168,76,.1);color:#fff;border-color:rgba(201,168,76,.3);}
  .compare-cell .mark{
    flex-shrink:0;width:38px;height:38px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:18px;font-weight:800;
  }
  .compare-cell.trad .mark{background:rgba(220,38,38,.25);color:#f8b4b4;}
  .compare-cell.elec .mark{background:var(--success);color:#fff;}
  @media (max-width:900px){
    .compare-head,.compare-row{grid-template-columns:1fr;}
  }

  /* ── Two-col content layout ─────────────────────────────── */
  .split{
    display:grid;
    grid-template-columns:.88fr 1.12fr;
    gap:clamp(28px,3.6vw,56px);
    flex:1;
    min-height:0;
    align-items:center;
  }
  .split.left-heavy{grid-template-columns:1.22fr .78fr;}
  .split .col{min-width:0;}
  .split .visual{display:flex;align-items:center;justify-content:center;height:100%;min-height:0;min-width:0;}
  .split .visual .browser-frame{display:flex;flex-direction:column;width:100%;max-width:100%;aspect-ratio:16/10;max-height:100%;min-height:0;}
  .split .visual .browser-frame img,.split .visual .browser-frame video{flex:1;min-height:0;max-height:none;object-fit:cover;object-position:top;}

  /* Feature grid */
  .grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;flex:1;align-content:center;}
  /* Staircase layout: first card (top, right in RTL) sits high, middle card mid-height, last card (left) sits low — fills vertical space diagonally */
  .grid3-stair{
    display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
    flex:1;align-items:start;
  }
  .grid3-stair > *:nth-child(1){margin-top:0;}
  .grid3-stair > *:nth-child(2){margin-top:clamp(110px,21vh,250px);}
  .grid3-stair > *:nth-child(3){margin-top:clamp(230px,42vh,480px);}
  @media (max-width:900px){
    .grid3-stair{grid-template-columns:1fr;}
    .grid3-stair > *:nth-child(2),.grid3-stair > *:nth-child(3){margin-top:0;}
  }
  /* 5-card row: all cards start at the same top and share the same height, row centered in remaining space */
  .grid5-stair{
    display:grid;grid-template-columns:repeat(5,1fr);gap:20px;
    align-items:stretch;
    flex:1;align-content:center;
  }
  @media (max-width:1100px){
    .grid5-stair{grid-template-columns:1fr;}
  }
  .grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;flex:1;align-content:center;}
  .s-section .grid2{flex:none;margin-top:auto;margin-bottom:auto;}
  .feature-card{
    background:#fff;border:1px solid var(--line);border-radius:18px;
    padding:32px 30px;
    box-shadow:0 8px 20px -14px rgba(15,37,87,.25);
    display:flex;flex-direction:column;
    transition:transform .35s cubic-bezier(.22,.68,.32,1), box-shadow .35s ease, border-color .35s ease;
  }
  .grid3-stair .feature-card{
    flex-direction:row-reverse;
    align-items:center;
    gap:22px;
    text-align:right;
    min-height:150px;
  }
  .grid3-stair .feature-card .ico{margin-bottom:0;flex-shrink:0;order:1;}
  .grid3-stair .feature-card h4{order:2;}
  .grid3-stair .feature-card p{order:3;}
  .grid5-stair .feature-card{
    flex-direction:column;
    align-items:flex-start;
    text-align:right;
    gap:0;
    padding:clamp(26px,2.8vw,38px) clamp(24px,2.8vw,36px);
    min-height:0;
    border-radius:22px;
    border-top:4px solid var(--gold);
    position:relative;
    overflow:hidden;
  }
  .grid5-stair .feature-card::after{
    content:'';position:absolute;inset-inline-end:-30px;top:-30px;
    width:120px;height:120px;border-radius:50%;
    background:radial-gradient(circle,rgba(201,168,76,.14),transparent 70%);
    pointer-events:none;
  }
  .grid5-stair .feature-card:hover{
    border-top-color:var(--gold-dark);
  }
  .grid5-stair .feature-card .ico{
    width:clamp(64px,6.2vw,96px);height:clamp(64px,6.2vw,96px);
    font-size:clamp(32px,3vw,50px);border-radius:18px;margin-bottom:20px;order:0;
    background:linear-gradient(135deg,rgba(201,168,76,.2),rgba(201,168,76,.08));
  }
  .grid5-stair .feature-card h4{order:0;font-size:clamp(30px,3vw,42px);margin:0 0 14px;}
  .grid5-stair .feature-card p{order:0;font-size:clamp(24px,2.5vw,33px);line-height:1.5;}
  .feature-card:hover{
    transform:translateY(-6px);
    box-shadow:0 22px 40px -18px rgba(15,37,87,.4);
    border-color:rgba(201,168,76,.5);
  }
  .feature-card .ico{
    width:76px;height:76px;border-radius:16px;
    background:rgba(201,168,76,.14);color:var(--gold-dark);
    display:flex;align-items:center;justify-content:center;
    font-size:38px;margin-bottom:20px;font-weight:800;
    transition:transform .35s cubic-bezier(.34,1.56,.64,1);
  }
  .feature-card:hover .ico{transform:scale(1.12) rotate(-4deg);}
  .feature-card h4{font-size:clamp(26px,2.5vw,36px);font-weight:800;color:var(--navy);margin:0 0 10px;line-height:1.35;}
  .feature-card p{font-size:clamp(19px,1.7vw,25px);color:var(--ink-soft);line-height:1.6;margin:0;}

  /* Steps list */
  .steps{display:flex;flex-direction:column;gap:22px;flex:1;justify-content:center;min-height:0;}
  .step-row{display:flex;gap:18px;align-items:flex-start;}
  .step-num{
    flex-shrink:0;width:47px;height:47px;border-radius:11px;
    background:var(--navy);color:var(--gold-light);
    display:flex;align-items:center;justify-content:center;
    font-family:'IBM Plex Mono';font-weight:700;font-size:20px;
  }
  .step-row.done .step-num{background:var(--success);color:#fff;}
  .step-body h4{font-size:21px;font-weight:800;color:var(--navy);margin:0 0 5px;line-height:1.35;}
  .step-body p{font-size:17.5px;color:var(--ink-soft);margin:0;line-height:1.6;}

  /* Stat tiles */
  .stat-row{display:flex;gap:16px;flex-wrap:wrap;}
  .stat-tile{
    flex:1;min-width:150px;
    background:var(--navy);color:#fff;border-radius:16px;
    padding:28px 26px;
    transition:transform .35s cubic-bezier(.22,.68,.32,1), box-shadow .35s ease;
  }
  .stat-tile:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 34px -16px rgba(15,37,87,.55);
  }
  .stat-tile .v{font-family:'IBM Plex Mono';font-size:clamp(43px,4.2vw,58px);font-weight:700;color:var(--gold-light);direction:ltr;display:block;}
  .stat-tile .k{font-size:19px;color:rgba(255,255,255,.58);margin-top:8px;}

  /* Article list — compact numbered legal articles (short items) */
  .article-list{display:flex;flex-direction:column;gap:16px;flex:1;justify-content:center;}
  .article-row{
    display:flex;gap:20px;align-items:flex-start;
    background:#fff;border:1px solid var(--line);border-radius:14px;
    padding:20px 24px;box-shadow:0 6px 16px -14px rgba(15,37,87,.25);
  }
  .article-row .a-num{
    flex-shrink:0;width:51px;height:51px;border-radius:11px;
    background:var(--navy);color:var(--gold-light);
    display:flex;align-items:center;justify-content:center;
    font-family:'IBM Plex Mono';font-weight:700;font-size:19px;
  }
  .article-row .a-body h4{font-size:22px;font-weight:800;color:var(--navy);margin:0 0 6px;line-height:1.35;}
  .article-row .a-body p{font-size:18.5px;color:var(--ink-soft);margin:0;line-height:1.55;}

  /* Full-text article card — verbatim legal text, one or two articles per slide */
  .article-full{
    flex:1;display:flex;flex-direction:column;justify-content:center;gap:18px;
    min-height:0;
  }
  .article-card{
    background:#fff;border:1px solid var(--line);border-radius:16px;
    padding:22px 28px;box-shadow:0 8px 20px -14px rgba(15,37,87,.22);
    overflow-y:auto;
  }
  .article-card .a-head{
    display:flex;align-items:center;gap:12px;margin-bottom:12px;
    padding-bottom:10px;border-bottom:1px solid var(--line);
  }
  .article-card .a-head .a-num{
    flex-shrink:0;width:42px;height:42px;border-radius:10px;
    background:var(--navy);color:var(--gold-light);
    display:flex;align-items:center;justify-content:center;
    font-family:'IBM Plex Mono';font-weight:700;font-size:17px;
  }
  .article-card .a-head h4{font-size:20px;font-weight:800;color:var(--navy);margin:0;}
  .article-card .a-text{
    font-size:17.5px;color:var(--ink);line-height:1.85;
    text-align:justify;white-space:pre-line;
  }

  /* Category chips */
  .cat-strip{display:flex;gap:14px;flex-wrap:wrap;}
  .cat-chip{
    display:flex;align-items:center;gap:9px;
    background:#fff;border:1px solid var(--line);border-radius:999px;
    padding:12px 22px;font-size:18.5px;font-weight:700;color:var(--navy);
    box-shadow:0 6px 16px -12px rgba(15,37,87,.3);
    transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  }
  .cat-chip:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 14px 26px -14px rgba(15,37,87,.4);}
  .cat-chip .dot{width:9px;height:9px;border-radius:50%;}

  /* Quote / closing */
  .s-close{background:radial-gradient(120% 140% at 80% 100%,var(--navy-700) 0%,var(--navy) 55%,#081538 100%);color:#fff;}
  .slide-inner.s-close{justify-content:center;align-items:center;text-align:center;}
  .close-logo{
    position:absolute;
    left:clamp(40px,6vw,96px);
    top:50%;transform:translateY(-50%);
    height:clamp(140px,20vh,230px);width:clamp(140px,20vh,230px);
    border-radius:50%;
    object-fit:cover;
    background:#fff;
    padding:4px;
    box-sizing:border-box;
    border:3px solid rgba(228,200,122,.55);
    opacity:.95;
    filter:drop-shadow(0 20px 50px rgba(0,0,0,.4));
  }
  .s-close h1{font-size:clamp(54px,7.6vw,98px);font-weight:900;margin:0 0 26px;max-width:26ch;text-wrap:balance;}
  .s-close h1 .hl{color:var(--gold-light);}
  .s-close p{font-size:clamp(27px,2.7vw,38px);color:rgba(255,255,255,.7);max-width:58ch;line-height:1.65;margin:0 0 48px;}
  .cta-row{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;}
  .cta{
    padding:18px 38px;border-radius:13px;font-weight:800;font-size:23px;
    border:1px solid rgba(255,255,255,.2);
    transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .3s ease;
  }
  .cta.primary{background:var(--gold);color:var(--navy);border:none;}
  .cta:hover{transform:translateY(-4px) scale(1.03);box-shadow:0 16px 34px -14px rgba(0,0,0,.5);}
  .cta.primary:hover{background:var(--gold-light);}

  .presenter-note{
    position:absolute;bottom:26px;inset-inline-start:clamp(40px,6vw,96px);
    font-size:12.5px;color:rgba(255,255,255,.42);
    max-width:380px;line-height:1.55;
  }
  .slide:not(.s-cover):not(.s-section):not(.s-close) .presenter-note{color:var(--ink-soft);opacity:.55;}

  /* ── Lightbox ───────────────────────────────────────────── */
  #lightbox{
    position:fixed;inset:0;z-index:200;
    background:rgba(8,13,26,.92);
    display:flex;align-items:center;justify-content:center;
    padding:5vh 5vw;
    opacity:0;pointer-events:none;
    transition:opacity .25s ease;
    backdrop-filter:blur(4px);
  }
  #lightbox.open{opacity:1;pointer-events:auto;}
  #lightbox img,#lightbox video{
    max-width:100%;max-height:100%;
    border-radius:10px;
    box-shadow:0 30px 80px -20px rgba(0,0,0,.7);
    transform:scale(.96);
    transition:transform .25s ease;
    cursor:zoom-out;
  }
  #lightbox.open img,#lightbox.open video{transform:scale(1);}
  #lightbox-close{
    position:absolute;top:22px;inset-inline-end:28px;
    width:44px;height:44px;border-radius:50%;
    background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);
    color:#fff;font-size:20px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .2s ease;
  }
  #lightbox-close:hover{background:rgba(255,255,255,.2);}
  #lightbox-caption{
    position:absolute;bottom:26px;left:50%;transform:translateX(-50%);
    background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
    color:#fff;font-size:13.5px;font-weight:600;
    padding:8px 20px;border-radius:999px;backdrop-filter:blur(4px);
  }

  @media (max-width:900px){
    .split{grid-template-columns:1fr;}
    .grid3{grid-template-columns:1fr 1fr;}
    #nav-hint{font-size:11px;padding:7px 12px;gap:8px;}
  }
