
:root{--bg:#0b0d10;--bg2:#10141a;--panel:rgba(19,23,30,.82);--ink:#f7f3eb;--muted:#b8b1a5;--gold:#d8b45e;--gold2:#f0cf80;--line:rgba(255,255,255,.10);--soft:rgba(255,255,255,.045);--shadow:0 30px 80px rgba(0,0,0,.34);--serif:Georgia,"Times New Roman",serif;--sans:Tahoma,Arial,sans-serif}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:linear-gradient(180deg,#0a0c0f,#0f1217 45%,#0a0c0f);color:var(--ink);font-family:var(--sans);overflow-x:hidden} body.light{--bg:#f5f0e8;--bg2:#ebe4d9;--panel:rgba(255,251,245,.9);--ink:#181510;--muted:#70685d;--line:rgba(20,18,14,.12);--soft:rgba(255,255,255,.62)}
body.light{background:linear-gradient(180deg,#f7f2ea,#eee6da 45%,#f5f0e8)}
a{color:inherit;text-decoration:none} img{max-width:100%;display:block} button{font:inherit} .wrap{width:min(1180px,calc(100% - 24px));margin:auto}
.reveal{opacity:0;transform:translateY(20px);transition:.65s ease} .reveal.show{opacity:1;transform:none}

.header{position:fixed;inset:0 0 auto;height:70px;z-index:100;display:flex;align-items:center;transition:.3s;opacity:0;transform:translateY(-8px);pointer-events:none} .header.scrolled{opacity:1;transform:none;pointer-events:auto;background:rgba(8,10,13,.84);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)} body.light .header.scrolled{background:rgba(247,242,234,.88)}
.header-inner{width:min(1180px,calc(100% - 24px));margin:auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px} .profile-mini{justify-self:start;width:40px;height:40px;border-radius:50%;overflow:hidden;border:1px solid rgba(216,180,94,.35);opacity:0;transform:translateY(-4px);transition:.3s;background:transparent} .header.scrolled .profile-mini{opacity:1;transform:none} .profile-mini img{width:100%;height:100%;object-fit:cover;object-position:center center}
.monogram{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(216,180,94,.32);font-family:var(--serif);font-size:23px;line-height:1;background:rgba(255,255,255,.035);opacity:0;transform:translateY(-4px);transition:.3s} .header.scrolled .monogram{opacity:1;transform:none} .header-name{justify-self:end;font-family:var(--serif);letter-spacing:.16em;font-size:12px;line-height:1.05;opacity:0;transition:.3s} .header.scrolled .header-name{opacity:1}
.theme-btn{position:fixed;left:50%;top:auto;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:95;width:52px;height:52px;border-radius:999px;border:1px solid rgba(216,180,94,.30);background:rgba(10,12,16,.82);color:var(--gold2);backdrop-filter:blur(12px);cursor:pointer;box-shadow:0 14px 36px rgba(0,0,0,.24)} body.light .theme-btn{background:rgba(255,250,242,.9);color:#8f6c26}

.hero{min-height:100svh;position:relative;overflow:hidden;background:radial-gradient(850px 530px at 50% 18%,rgba(216,180,94,.09),transparent 62%),linear-gradient(180deg,#080a0d,#0c0f13 65%,#0a0c0f);padding:92px 0 72px;color:#f7f3eb} .hero::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle at 20% 25%,rgba(216,180,94,.42) 0 1.6px,transparent 2px),radial-gradient(circle at 80% 32%,rgba(216,180,94,.35) 0 1.6px,transparent 2px);background-size:190px 190px,240px 240px;opacity:.22}
.hero-grid{width:min(1180px,calc(100% - 24px));margin:auto;display:grid;grid-template-columns:.95fr 1.05fr;gap:42px;align-items:center;min-height:calc(100svh - 164px)}
.hero-copy{position:relative;z-index:20} .kicker{font-size:12px;color:var(--gold);font-weight:700;letter-spacing:.04em} .hero h1{font-family:var(--serif);font-size:clamp(58px,8vw,106px);line-height:.9;margin:9px 0 0;letter-spacing:-.04em} .en{font-size:11px;letter-spacing:.42em;color:#b8b1a5;margin-top:17px} .statement{font-family:var(--serif);font-size:clamp(26px,3vw,39px);line-height:1.55;margin:28px 0 12px} .statement strong{color:var(--gold2);font-weight:500} .keep{white-space:nowrap} .desc{color:#b8b1a5;line-height:2;font-size:14px;max-width:650px} .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px} .btn{padding:12px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);font-size:12px} .btn.primary{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#19130b;border-color:transparent;font-weight:700}

.stage{height:min(76svh,720px);min-height:540px;position:relative;display:grid;place-items:center;isolation:isolate} .ring,.ring2,.ring3{position:absolute;border-radius:50%;border:1px solid rgba(216,180,94,.22);z-index:1;pointer-events:none} .ring{width:520px;height:520px;box-shadow:0 0 42px rgba(216,180,94,.10),0 0 0 38px rgba(216,180,94,.022)} .ring2{width:610px;height:610px;border-style:dashed;opacity:.62} .ring3{width:420px;height:420px;opacity:.46} .stage-glow{position:absolute;width:600px;height:260px;border-radius:50%;background:radial-gradient(ellipse,rgba(216,180,94,.18),transparent 70%);filter:blur(26px);bottom:6px;z-index:0}
.suit-card{position:relative;z-index:4;width:min(362px,72%);height:90%;display:grid;place-items:end center;overflow:visible;background:transparent;border-radius:0;box-shadow:none;pointer-events:none} .suit-card::before{content:"";position:absolute;z-index:-1;width:82%;height:78%;border-radius:50%;background:radial-gradient(ellipse,rgba(216,180,94,.10),transparent 68%);filter:blur(18px);bottom:4%} .suit-card::after{display:none} .suit-card img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 24px 34px rgba(0,0,0,.24));-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 94%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 94%,transparent 100%)}
.orbit-field{position:absolute;inset:0;z-index:auto;pointer-events:none} .orbit-item{position:absolute;left:50%;top:50%;width:66px;height:66px;margin:-33px;will-change:transform;transition:z-index .08s;transform-style:preserve-3d} .logo-disc{width:66px;height:66px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 14px 30px rgba(0,0,0,.28),0 0 0 1px rgba(216,180,94,.24),0 0 22px rgba(216,180,94,.08);overflow:hidden} .logo-disc svg{width:42px;height:42px;display:block}
.scrollcue{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px;color:#aaa59b;font-size:10px;z-index:30} .mouse{width:26px;height:44px;border:1px solid rgba(216,180,94,.44);border-radius:20px;position:relative} .mouse::after{content:"";position:absolute;left:50%;top:8px;transform:translateX(-50%);width:4px;height:9px;border-radius:4px;background:var(--gold2);animation:drop 1.6s ease infinite} @keyframes drop{0%{opacity:.1;transform:translate(-50%,0)}50%{opacity:1}100%{opacity:.1;transform:translate(-50%,15px)}}

.identity{padding:88px 0;border-top:1px solid var(--line);position:relative} .identity-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:32px;align-items:center} .identity-photo{border-radius:28px;overflow:hidden;min-height:440px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);position:relative} .identity-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.32));pointer-events:none} .identity-photo img{width:100%;height:100%;object-fit:cover;object-position:center 18%} .identity-copy{padding:8px 0} .identity-copy h2,.section-head h2{font-family:var(--serif);font-size:clamp(40px,5vw,68px);line-height:1.06;font-weight:400;margin:8px 0 14px} .identity-copy p{color:var(--muted);line-height:2;font-size:15px;max-width:680px} .identity-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px} .identity-points span{padding:13px 15px;border-radius:18px;border:1px solid var(--line);background:var(--soft);font-size:12px;color:var(--muted)} .quote-line{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);font-family:var(--serif);font-size:24px;line-height:1.5;color:var(--ink)} .quote-line b{color:var(--gold);font-weight:400}

.marquee-wrap{border-block:1px solid var(--line);overflow:hidden;background:rgba(255,255,255,.018)} .marquee-title{text-align:center;padding:13px 12px 7px;color:var(--muted);font-size:11px} .marquee{display:flex;width:max-content;gap:12px;padding:8px 0 14px;animation:mar 29s linear infinite} @keyframes mar{to{transform:translateX(50%)}} .mitem{padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:var(--soft);white-space:nowrap;font-size:12px}
.section{padding:78px 0;border-top:1px solid var(--line)} .section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:25px} .subcopy{max-width:480px;color:var(--muted);font-size:13px;line-height:1.9} .cards-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(270px,1fr);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:3px 2px 16px;scrollbar-width:none} .cards-scroll::-webkit-scrollbar{display:none} .portal,.exp-card,.cert{scroll-snap-align:start}
.portal{min-height:225px;padding:22px;border-radius:26px;border:1px solid rgba(216,180,94,.26);background:linear-gradient(145deg,var(--panel),rgba(255,255,255,.015));position:relative;cursor:pointer;transition:.28s}  .portal .num{font-family:var(--serif);font-size:42px;color:var(--gold)} .portal h3{margin:36px 0 8px;font-size:23px} .portal p,.exp-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.85} .open{position:absolute;left:18px;bottom:16px;color:var(--gold);font-size:11px}
.thought-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:12px} .thought{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:22px;min-height:210px} .thought b{color:var(--gold);font-size:11px} .thought h3{font-family:var(--serif);font-size:29px;margin:18px 0 10px} .thought p{color:var(--muted);font-size:12px;line-height:1.85} .steps{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px} .steps span{font-size:10px;padding:7px 9px;border-radius:99px;border:1px solid var(--line);color:var(--muted)}
.exp-card{min-height:290px;border-radius:26px;padding:20px;background:var(--panel);border:1px solid var(--line);position:relative;transition:.28s;cursor:pointer} .exp-card .thumb{height:92px;border-radius:17px;background:linear-gradient(135deg,rgba(216,180,94,.18),transparent),radial-gradient(circle at 25% 30%,rgba(255,255,255,.08),transparent 45%);margin-bottom:16px} .exp-card small{color:var(--gold)} .exp-card h3{font-size:22px;margin:11px 0 7px}
.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px} .tool-card{border:1px solid var(--line);border-radius:24px;background:var(--panel);padding:20px;min-height:240px} .tool-card h3{margin:0 0 14px} .tool-icons{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:17px} .tool-icons .logo-disc{width:50px;height:50px;box-shadow:none} .tool-icons .logo-disc svg{width:30px;height:30px} .tool-card p{color:var(--muted);font-size:12px;line-height:1.85}
.certtrack{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,280px);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:14px;scrollbar-width:none} .certtrack::-webkit-scrollbar{display:none} .cert{background:linear-gradient(145deg,#f7efda,#ddcfac);color:#1c1a16;border-radius:20px;min-height:180px;padding:18px} .seal{width:40px;height:40px;border:1px solid #8e793c;border-radius:50%;display:grid;place-items:center;color:#8e793c} .cert strong{display:block;font-family:var(--serif);font-size:24px;margin-top:28px} .cert span{font-size:11px;color:#5e5544}
.letter{border:1px solid var(--line);border-radius:28px;background:linear-gradient(135deg,var(--panel),rgba(216,180,94,.05));padding:30px;display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;align-items:center} .letter p{font-family:var(--serif);font-size:clamp(24px,3vw,40px);line-height:1.6;margin:0} .footer{padding:42px 0 90px} .footer-grid{display:flex;justify-content:space-between;gap:20px;align-items:center} .footer-brand{font-family:var(--serif);letter-spacing:.18em;font-size:26px} .mini{font-size:11px;color:var(--muted);letter-spacing:.16em;margin-top:7px}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(10px);display:none;place-items:center;z-index:120;padding:18px} .modal.show{display:grid} .sheet{width:min(700px,100%);max-height:84vh;overflow:auto;border-radius:26px;background:var(--bg2);border:1px solid rgba(216,180,94,.34);padding:28px} .close{float:left;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer} .sheet h3{font-family:var(--serif);font-size:38px;margin:18px 0 12px} .sheet p,.sheet li{color:var(--muted);line-height:1.9;font-size:13px}



/* V6.8 — approved-banner-safe refinements: interactive marquee, full theme coverage, clean discover cue */
.theme-btn{width:102px;height:48px;padding:4px;display:flex;align-items:center;justify-content:space-between;gap:4px;border-radius:999px;border:1px solid rgba(216,180,94,.62);background:rgba(11,13,17,.88);color:var(--gold2);box-shadow:0 14px 36px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.025)}
.theme-option{width:42px;height:38px;border-radius:999px;display:grid;place-items:center;font-size:17px;line-height:1;transition:background .28s ease,color .28s ease,transform .28s ease;flex:0 0 auto}
.theme-option.moon{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#17120a;box-shadow:0 5px 15px rgba(216,180,94,.18)}
.theme-option.sun{color:#d6d0c5;background:transparent}
body.light .theme-btn{background:rgba(255,250,242,.92);border-color:rgba(168,126,39,.52);color:#7f5d1d}
body.light .theme-option.sun{background:linear-gradient(135deg,#c99839,#efc96e);color:#17120a;box-shadow:0 5px 15px rgba(168,126,39,.18)}
body.light .theme-option.moon{background:transparent;color:#6f665a;box-shadow:none}

/* The hero now follows the selected theme without changing its approved structure. */
body.light .hero{background:radial-gradient(850px 530px at 50% 18%,rgba(182,137,46,.11),transparent 62%),linear-gradient(180deg,#f8f2e8,#f1e7d8 65%,#ece1d1);color:#171410}
body.light .hero::before{opacity:.14;background-image:radial-gradient(circle at 20% 25%,rgba(168,126,39,.34) 0 1.6px,transparent 2px),radial-gradient(circle at 80% 32%,rgba(168,126,39,.28) 0 1.6px,transparent 2px)}
body.light .hero .en,body.light .hero .desc{color:#6f675b}
body.light .hero .statement{color:#211c16}
body.light .hero .statement strong{color:#9a6f1f}
body.light .hero .btn:not(.primary){border-color:rgba(30,24,17,.14);background:rgba(255,255,255,.46);color:#211c16}
body.light .hero .ring,body.light .hero .ring2,body.light .hero .ring3{border-color:rgba(168,126,39,.24)}
body.light .hero .stage-glow{background:radial-gradient(ellipse,rgba(182,137,46,.12),transparent 70%)}
body.light .hero .scrollcue{color:#746c60}

/* Discover cue participates in normal flow so it cannot sit behind buttons or the theme control. */
.scrollcue{position:relative;left:auto;bottom:auto;transform:none;width:max-content;margin:14px auto 20px;z-index:30}

/* Seamless, touch/mouse-draggable expertise rail. */
.marquee-wrap{overflow:hidden}
.marquee-viewport{overflow:hidden;width:100%;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;overscroll-behavior-inline:contain}
.marquee-viewport.dragging{cursor:grabbing}
.marquee{display:flex;width:max-content;gap:0;padding:8px 0 14px;animation:none!important;will-change:transform;transform:translate3d(0,0,0)}
.marquee-group{display:flex;align-items:center;gap:12px;padding-inline-end:12px;flex:none}
.mitem{flex:none}

.section{padding:clamp(58px,6vw,74px) 0}
.section-head{margin-bottom:clamp(20px,2.3vw,25px)}

/* V6.9 — post-hero interaction cleanup. Hero visuals remain untouched. */
.scrollcue{display:none!important}
.marquee-wrap{margin-top:0}
.marquee-viewport{
  width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
  -webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;
  touch-action:pan-x pan-y;cursor:grab;direction:ltr;
}
.marquee-viewport::-webkit-scrollbar{display:none}
.marquee-viewport.is-paused{cursor:default}
.marquee{display:flex;width:max-content;gap:0;padding:8px 0 14px;animation:none!important;transform:none!important;will-change:auto}
.marquee-group{display:flex;align-items:center;gap:12px;padding-inline-end:12px;flex:none;direction:rtl}
.mitem{flex:none}

.work-cards{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;
  gap:14px;overflow:visible;padding:10px 2px 16px;scroll-snap-type:none;
}
.work-cards .portal{min-width:0;scroll-snap-align:none}
@media(hover:hover) and (pointer:fine){.work-cards .portal:hover{transform:translateY(-4px)}}
@media(hover:none){.work-cards .portal:hover{transform:none}}

@media(max-width:960px){
  .hero{padding-bottom:34px}
  .work-cards{
    display:grid;grid-auto-flow:column;grid-template-columns:none;
    grid-auto-columns:min(82vw,390px);gap:14px;overflow-x:auto;overflow-y:hidden;
    padding:10px 10px 18px;scroll-snap-type:x proximity;scroll-padding-inline:10px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;
    touch-action:pan-x pan-y;
  }
  .work-cards::-webkit-scrollbar{display:none}
  .work-cards .portal{scroll-snap-align:start;transform:none}
  .work-cards .portal.reveal{transform:translateY(16px)}
  .work-cards .portal.reveal.show{transform:none}
}
@media(max-width:640px){
  .hero{padding-bottom:28px}
  .section#work-style{padding-top:clamp(48px,12vw,62px)}
  .work-cards{grid-auto-columns:84%;padding-inline:8px 18px}
}



/* V6.13 — Studio-style controlled work cards + role-led experience cards. */
.work-slider{width:100%;overflow:visible}
@media(max-width:960px){
  .work-slider{overflow:hidden;direction:ltr;padding:10px 0 18px;touch-action:pan-y;overscroll-behavior-inline:contain}
  .work-cards{display:flex!important;flex-direction:row-reverse!important;gap:14px!important;width:max-content!important;overflow:visible!important;padding:0 18px!important;scroll-snap-type:none!important;scroll-behavior:auto!important;transition:transform .42s cubic-bezier(.22,.78,.22,1);will-change:transform;direction:ltr}
  .work-cards .portal{flex:0 0 min(82vw,390px)!important;width:min(82vw,390px)!important;direction:rtl;scroll-snap-align:none!important}
}
@media(max-width:640px){.work-cards .portal{flex-basis:84vw!important;width:84vw!important}}
.exp-card{overflow:hidden;padding-bottom:48px}
.exp-card .thumb.exp-thumb{height:116px;padding:0;overflow:hidden;background:none}
.exp-card .thumb.exp-thumb svg{width:100%;height:100%;display:block}
.exp-card small{display:block;margin-top:2px;font-size:11px;letter-spacing:.02em}
.exp-card h3{line-height:1.45;margin-top:8px;font-size:21px}
.exp-card p{max-width:34ch}
@media(min-width:961px){.exp-cards{grid-auto-columns:minmax(260px,1fr)}}

/* V6.10 — refined "كيف أعمل؟" cards and smooth detail reveal. */
.work-cards .portal{
  -webkit-tap-highlight-color:transparent;outline:none;user-select:none;-webkit-user-select:none;
  min-height:238px;padding:22px 22px 54px;transform-origin:center;isolation:isolate;
}
.work-cards .portal:focus-visible{box-shadow:0 0 0 2px rgba(216,180,94,.58),0 16px 38px rgba(0,0,0,.18)}
.work-cards .portal:active{transform:scale(.992)}
.work-cards .portal .concept{
  display:inline-flex;align-items:center;min-height:28px;padding:6px 11px;border-radius:999px;
  border:1px solid rgba(216,180,94,.28);background:rgba(216,180,94,.07);color:var(--gold2);
  font-size:11px;font-weight:700;letter-spacing:.02em;
}
body.light .work-cards .portal .concept{color:#8a6420;background:rgba(168,126,39,.08);border-color:rgba(168,126,39,.26)}
.work-cards .portal h3{margin:28px 0 9px;font-size:24px}
.work-cards .portal p{max-width:30ch}
.work-cards .portal .open{transition:transform .25s ease,color .25s ease}
@media(hover:hover) and (pointer:fine){.work-cards .portal:hover .open{transform:translateX(-3px);color:var(--gold2)}}

.modal{
  display:grid!important;opacity:0;visibility:hidden;pointer-events:none;
  background:rgba(3,5,8,.58);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  transition:opacity .28s ease,visibility .28s ease;
}
.modal.show{opacity:1;visibility:visible;pointer-events:auto}
.sheet{
  position:relative;width:min(620px,calc(100vw - 34px));max-height:none;overflow:visible;
  border-radius:28px;padding:0;background:linear-gradient(155deg,var(--bg2),rgba(18,22,29,.98));
  box-shadow:0 30px 90px rgba(0,0,0,.42);transform:translateY(14px) scale(.94);
  opacity:0;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .25s ease;
}
body.light .sheet{background:linear-gradient(155deg,#fffaf2,#eee5d8)}
.modal.show .sheet{transform:none;opacity:1}
#sheetContent{max-height:min(68vh,600px);overflow:auto;padding:clamp(26px,5vw,42px);overscroll-behavior:contain;scrollbar-width:thin}
.close{
  position:absolute;left:-13px;top:-13px;float:none;z-index:3;width:42px;height:42px;
  display:grid;place-items:center;border:1px solid rgba(216,180,94,.34);background:var(--bg2);
  color:var(--ink);box-shadow:0 12px 30px rgba(0,0,0,.30);font-size:25px;line-height:1;
  -webkit-tap-highlight-color:transparent;transition:transform .2s ease,border-color .2s ease;
}
body.light .close{background:#fffaf2}
.close:hover{transform:rotate(5deg) scale(1.04);border-color:rgba(216,180,94,.68)}
.sheet .kicker{font-size:12px;margin-bottom:12px}
.sheet h3{font-family:var(--serif);font-size:clamp(34px,6vw,50px);line-height:1.25;margin:0 0 18px;max-width:14ch}
.sheet p{font-size:14px;line-height:2.05;margin:0;color:var(--muted)}
.modal-flow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.modal-flow span{padding:8px 11px;border-radius:999px;border:1px solid rgba(216,180,94,.24);background:var(--soft);font-size:11px;color:var(--ink)}
.modal-flow i{font-style:normal;color:var(--gold);opacity:.9}
.modal-note{margin-top:20px;padding:14px 16px;border-radius:16px;border-inline-start:2px solid var(--gold);background:rgba(216,180,94,.055);font-size:12px!important;line-height:1.9!important;color:var(--muted)!important}
.portal.modal-source{animation:portalPulse .24s ease}
@keyframes portalPulse{0%{transform:scale(1)}45%{transform:scale(.985)}100%{transform:scale(1)}}
@media(max-width:640px){
  .work-cards .portal{min-height:226px;padding:20px 20px 52px}
  .work-cards .portal h3{font-size:23px;margin-top:24px}
  .sheet{width:calc(100vw - 32px);border-radius:24px}
  #sheetContent{max-height:66vh;padding:28px 23px 26px}
  .close{left:-8px;top:-14px;width:40px;height:40px}
  .sheet h3{font-size:clamp(32px,10vw,44px)}
}
@media(prefers-reduced-motion:reduce){.sheet,.modal,.portal.modal-source{transition:none!important;animation:none!important}}
@media(min-width:961px){.hero{min-height:auto;padding:36px 0 34px} .hero-grid{min-height:auto;grid-template-columns:minmax(380px,.96fr) minmax(420px,1.04fr);gap:48px;align-items:center} .hero-copy{padding-top:14px;max-width:560px;justify-self:end} .stage{height:clamp(470px,44vw,610px);min-height:470px;max-height:610px;justify-self:start} .suit-card{width:min(365px,70%);height:92%} .scrollcue{display:none} .marquee-wrap{margin-top:0} .section{padding:64px 0} .section-head{align-items:end;margin-bottom:22px} .subcopy{max-width:420px}}
@media(min-width:961px) and (max-width:1180px){.hero{padding-top:28px;padding-bottom:28px} .hero-grid{gap:34px;grid-template-columns:minmax(340px,.94fr) minmax(380px,1.06fr)} .hero h1{font-size:clamp(46px,5.8vw,78px)} .statement{font-size:clamp(24px,2.8vw,33px)} .desc{font-size:13px;line-height:1.9} .stage{height:clamp(430px,46vw,560px);min-height:430px}}
@media(max-width:960px){.hero{min-height:auto;padding-top:34px;padding-bottom:58px} .hero-grid{grid-template-columns:1fr;text-align:center;gap:8px} .stage{order:1;height:56svh;min-height:490px;transform:translateY(-34px);margin-bottom:-34px} .hero-copy{order:2} .desc,.statement{margin-inline:auto} .actions{justify-content:center} .identity-grid{grid-template-columns:1fr} .identity-photo{max-width:520px;width:100%;margin:auto;min-height:430px} .section-head{display:block} .subcopy{margin-top:12px} .thought-panel,.tools-grid,.letter{grid-template-columns:1fr} .footer-grid{flex-direction:column;align-items:flex-start}}
@media(max-width:640px){.header-inner,.hero-grid,.wrap{width:min(100% - 18px,1180px)} .theme-btn{left:50%;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateX(-50%);width:96px;height:46px;padding:4px} .stage{min-height:460px;height:54svh;transform:translateY(-48px);margin-bottom:-48px} .ring{width:380px;height:380px;box-shadow:0 0 0 28px rgba(216,180,94,.025)} .ring2{width:445px;height:445px} .ring3{width:305px;height:305px} .suit-card{width:min(255px,66vw);height:86%} .orbit-item{width:58px;height:58px;margin:-29px} .logo-disc{width:58px;height:58px} .logo-disc svg{width:36px;height:36px} .hero h1{font-size:clamp(52px,15vw,76px)} .statement{font-size:clamp(22px,7vw,31px)} .identity{padding:68px 0} .identity-photo{min-height:390px} .identity-points{grid-template-columns:1fr} .cards-scroll{grid-auto-columns:84%} .certtrack{grid-auto-columns:84%}}
@media(prefers-reduced-motion:reduce){.marquee,.mouse::after,.reveal{animation:none!important;transition:none!important}}

/* V6.11 — cleaner detail cards + connected decision experience. */
.sheet{width:min(600px,calc(100vw - 34px))}
#sheetContent{padding:clamp(26px,4.4vw,38px)}
.sheet .kicker{margin-bottom:10px}
.sheet h3{font-size:clamp(32px,5.4vw,46px);line-height:1.32;max-width:16ch;margin-bottom:16px}
.sheet p{font-size:14px;line-height:2}
.modal-process{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.modal-process.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.process-step{position:relative;min-width:0;padding:13px 12px;border-radius:16px;border:1px solid rgba(216,180,94,.22);background:rgba(255,255,255,.025)}
.process-step small{display:block;color:var(--gold);font-family:var(--serif);font-size:11px;letter-spacing:.08em;margin-bottom:7px}
.process-step strong{display:block;font-size:12px;line-height:1.45;color:var(--ink);font-weight:600}
.modal-note{margin-top:14px;padding:15px 16px;border-radius:17px;border:1px solid rgba(216,180,94,.16);border-inline-start:3px solid var(--gold);background:rgba(216,180,94,.045)}
.modal-note small{display:block;color:var(--gold);font-size:10px;font-weight:700;margin-bottom:6px}
.modal-note p{margin:0!important;font-size:12px!important;line-height:1.85!important;color:var(--muted)!important}
body.light .process-step{background:rgba(255,255,255,.42)}

.decision-section{overflow:hidden}
.decision-lab{max-width:980px;margin:0 auto;border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,var(--panel),rgba(255,255,255,.014));padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.12)}
.decision-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;direction:rtl}
.decision-tab{-webkit-tap-highlight-color:transparent;appearance:none;border:0;outline:none;min-width:0;padding:14px 10px 12px;border-radius:16px;background:transparent;color:var(--muted);cursor:pointer;transition:background .25s ease,color .25s ease,transform .25s ease;text-align:center}
.decision-tab span{display:block;font-size:14px;font-weight:700;white-space:nowrap}.decision-tab small{display:block;margin-top:5px;font-size:9px;color:inherit;opacity:.72}
.decision-tab.active{background:rgba(216,180,94,.09);color:var(--gold2)}
.decision-tab:focus-visible{box-shadow:0 0 0 2px rgba(216,180,94,.52)}
.decision-progress{height:2px;background:rgba(255,255,255,.055);border-radius:99px;overflow:hidden;margin:4px 8px 20px;direction:rtl}
.decision-progress span{display:block;height:100%;width:25%;background:linear-gradient(90deg,var(--gold),var(--gold2));border-radius:99px;transition:width .42s cubic-bezier(.2,.8,.2,1)}
.decision-panel{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(210px,.42fr);gap:22px;align-items:stretch;padding:20px 14px 12px;min-height:280px}
.decision-index{font-family:var(--serif);font-size:16px;color:var(--gold);writing-mode:vertical-rl;letter-spacing:.08em;padding-top:4px;opacity:.8}
.decision-content{min-width:0}.decision-label{font-size:11px;color:var(--gold);font-weight:700;margin-bottom:10px}.decision-content h3{font-family:var(--serif);font-size:clamp(32px,4.2vw,54px);line-height:1.18;margin:0 0 16px;font-weight:400}.decision-content p{color:var(--muted);font-size:14px;line-height:2;margin:0;max-width:60ch}.decision-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:19px}.decision-tags span{font-size:10px;padding:7px 10px;border-radius:99px;border:1px solid var(--line);color:var(--muted);background:var(--soft)}
.decision-thought{border-inline-start:1px solid rgba(216,180,94,.20);padding:18px 20px;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;background:linear-gradient(135deg,rgba(216,180,94,.045),transparent);border-radius:0 18px 18px 0}.decision-thought small{color:var(--gold);font-size:10px}.decision-thought strong{font-family:var(--serif);font-size:19px;line-height:1.65;font-weight:400;color:var(--ink)}
.decision-panel.switching .decision-content,.decision-panel.switching .decision-thought{animation:decisionSwap .34s ease both}@keyframes decisionSwap{0%{opacity:.2;transform:translateY(7px)}100%{opacity:1;transform:none}}
body.light .decision-lab{background:linear-gradient(145deg,rgba(255,251,245,.90),rgba(255,255,255,.54))}body.light .decision-tab.active{background:rgba(168,126,39,.09);color:#8a6420}body.light .decision-progress{background:rgba(30,24,17,.07)}
@media(max-width:760px){
  .modal-process,.modal-process.four{grid-template-columns:1fr;gap:8px}.process-step{display:grid;grid-template-columns:32px 1fr;align-items:center;padding:11px 12px}.process-step small{margin:0}.process-step strong{font-size:12px}
  .decision-lab{padding:12px;border-radius:24px}.decision-tabs{gap:4px}.decision-tab{padding:12px 4px 10px;border-radius:13px}.decision-tab span{font-size:12px}.decision-tab small{font-size:8px}.decision-progress{margin:4px 4px 16px}
  .decision-panel{grid-template-columns:1fr;gap:14px;padding:14px 8px 8px;min-height:0}.decision-index{writing-mode:horizontal-tb;font-size:12px}.decision-content h3{font-size:clamp(31px,9.2vw,43px);margin-bottom:13px}.decision-content p{font-size:13px;line-height:1.9}.decision-thought{border-inline-start:0;border-top:1px solid rgba(216,180,94,.18);padding:15px 14px 8px;border-radius:0;background:linear-gradient(180deg,rgba(216,180,94,.035),transparent)}.decision-thought strong{font-size:17px}.decision-tags{margin-top:15px}
}


/* V6.12 — deterministic card navigation + manual decision tabs. */
.work-cards{scroll-snap-type:x mandatory!important;scroll-behavior:smooth}
.work-cards .portal{scroll-snap-stop:always}
@media(max-width:960px){
  .work-cards{overscroll-behavior-inline:contain;touch-action:pan-x pan-y}
}
.decision-hint{margin:4px 10px 10px;text-align:center;color:var(--muted);font-size:10px;line-height:1.6;opacity:.82}
.decision-hint::before{content:"•";color:var(--gold);margin-inline-end:6px}
.decision-progress span{width:25%!important;margin-inline-end:auto;transition:transform .38s cubic-bezier(.2,.8,.2,1)!important;transform:translateX(0)}
.decision-thought{justify-content:flex-start!important}
@media(min-width:961px){
  .decision-section .section-head{display:block;max-width:980px;margin:0 auto 28px}
  .decision-section .section-head .subcopy{max-width:760px;margin-top:12px}
  .decision-panel{grid-template-columns:auto minmax(0,1fr) minmax(230px,.40fr);align-items:start}
  .decision-thought{align-self:stretch;padding-top:20px}
}
@media(max-width:640px){
  .decision-hint{font-size:9px;margin-bottom:8px}
}


/* V6.15 — one consistent Studio-style card interaction for work + experience. */
.work-slider,.exp-slider{width:100%;overflow:visible}
.exp-card{
  -webkit-tap-highlight-color:transparent;outline:none;user-select:none;-webkit-user-select:none;
  transform:none!important;transition:border-color .25s ease,box-shadow .25s ease!important;
}
.exp-card:active,.work-cards .portal:active{transform:none!important}
.exp-card:focus-visible{box-shadow:0 0 0 2px rgba(216,180,94,.58),0 16px 38px rgba(0,0,0,.18)}
.portal.modal-source,.exp-card.modal-source{animation:none!important;transform:none!important}

@media(max-width:960px){
  .work-slider,.exp-slider{
    overflow:hidden;direction:ltr;padding:10px 0 18px;touch-action:pan-y;
    overscroll-behavior-inline:contain;position:relative;
  }
  .studio-track{
    display:flex!important;flex-direction:row-reverse!important;gap:14px!important;
    width:max-content!important;max-width:none!important;overflow:visible!important;
    padding:0 14px!important;scroll-snap-type:none!important;scroll-behavior:auto!important;
    transition:transform .42s cubic-bezier(.22,.78,.22,1);will-change:transform;direction:ltr;
  }
  .studio-track>.portal,.studio-track>.exp-card{
    flex:0 0 min(82vw,390px)!important;width:min(82vw,390px)!important;
    min-width:0!important;direction:rtl;scroll-snap-align:none!important;transform:none!important;
  }
  .exp-card:hover,.work-cards .portal:hover{transform:none!important}
}
@media(max-width:640px){
  .studio-track>.portal,.studio-track>.exp-card{flex-basis:82vw!important;width:82vw!important}
}



/* V6.15 — stable orbit speed, clearer card peek, unified rails, and a subtle decision hint. */
@media(max-width:960px){
  .work-slider,.exp-slider{
    overflow:hidden!important;
    padding:10px 0 24px!important;
    position:relative;
    touch-action:pan-y;
  }
  .studio-track{
    display:flex!important;
    flex-direction:row!important;
    direction:rtl!important;
    gap:14px!important;
    width:max-content!important;
    max-width:none!important;
    overflow:visible!important;
    padding:0 10px!important;
    margin:0!important;
    transition:transform .44s cubic-bezier(.22,.78,.22,1)!important;
    will-change:transform;
  }
  .studio-track>.portal,.studio-track>.exp-card{
    flex:0 0 78vw!important;
    width:78vw!important;
    max-width:none!important;
    min-width:0!important;
    direction:rtl!important;
    transform:none!important;
  }
  .work-slider::before,.exp-slider::before{
    content:"";position:absolute;left:0;top:10px;bottom:24px;width:22px;z-index:5;
    pointer-events:none;background:linear-gradient(90deg,var(--bg),transparent);opacity:.72;
    transition:opacity .28s ease;
  }
  .work-slider.interacted::before,.exp-slider.interacted::before{opacity:.18}
  .studio-dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:12px;direction:ltr}
  .studio-dot{width:6px;height:6px;border-radius:50%;border:0;padding:0;background:rgba(216,180,94,.24);transition:width .28s ease,background .28s ease;pointer-events:none}
  .studio-dot.active{width:20px;border-radius:99px;background:var(--gold)}
}
@media(min-width:961px){.studio-dots{display:none}}

.decision-progress{position:relative}
.decision-progress.hinting #decisionProgress{animation:decisionLineHint 2.25s ease-in-out infinite;transform-origin:right center}
@keyframes decisionLineHint{
  0%,100%{width:25%;filter:brightness(1)}
  48%{width:42%;filter:brightness(1.16)}
  65%{width:36%}
}
@media(prefers-reduced-motion:reduce){.decision-progress.hinting #decisionProgress{animation:none!important}}



/* V6.22 STABLE — intentionally scoped below the approved V6.15 hero. */
body:not(.light) #work-style .portal,
body:not(.light) #experience .exp-card{
  background:linear-gradient(150deg,rgba(36,38,43,.97),rgba(24,27,32,.96));
  border-color:rgba(216,180,94,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 44px rgba(0,0,0,.16);
}
body:not(.light) #work-style .portal p,
body:not(.light) #experience .exp-card p{color:#c6beb1}
body:not(.light) #work-style .portal h3,
body:not(.light) #experience .exp-card h3{color:#fbf7ef}
body.light #work-style .portal,
body.light #experience .exp-card{
  background:linear-gradient(150deg,rgba(255,253,249,.98),rgba(246,239,229,.96));
  border-color:rgba(126,92,37,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 16px 38px rgba(88,61,23,.055);
}
body.light #work-style .portal p,
body.light #experience .exp-card p{color:#5f574d}

#experience .section-head{display:block!important;align-items:initial!important;gap:0!important}
#experience .section-head .subcopy{display:block!important;max-width:760px!important;margin-top:10px!important;line-height:1.95!important}
#experience .section-head h2{max-width:none!important;white-space:nowrap!important;text-wrap:nowrap!important}

#work-style .portal,#experience .exp-card,.decision-tab,.btn,.theme-option,.close{
  -webkit-tap-highlight-color:transparent!important;outline:none;
}
#work-style .portal:active,#experience .exp-card:active,.decision-tab:active{
  border-color:rgba(216,180,94,.50)!important;
  box-shadow:inset 0 0 0 1px rgba(216,180,94,.15)!important;
  filter:brightness(1.025);
}
body.light #work-style .portal:active,
body.light #experience .exp-card:active,
body.light .decision-tab:active{
  border-color:rgba(160,112,29,.36)!important;
  box-shadow:inset 0 0 0 1px rgba(160,112,29,.11)!important;
}

#work-style .studio-dots,#experience .studio-dots{direction:rtl!important;margin-top:22px!important;gap:8px!important}
#work-style .studio-dot,#experience .studio-dot{background:rgba(216,180,94,.22)!important}
#work-style .studio-dot.active,#experience .studio-dot.active{background:var(--gold)!important}
body.light #work-style .studio-dot,body.light #experience .studio-dot{background:rgba(136,95,25,.20)!important}
body.light #work-style .studio-dot.active,body.light #experience .studio-dot.active{background:#a67422!important}

@media(max-width:640px){
  #experience .section-head h2{font-size:clamp(29px,8.5vw,41px)!important;line-height:1.14!important;max-width:none!important;white-space:nowrap!important}
  #experience .section-head .subcopy{margin-top:8px!important;max-width:36ch!important;font-size:13px!important;line-height:1.9!important}
  #work-style .studio-dots,#experience .studio-dots{margin-top:24px!important}
}



/* V6.23 — four scoped fixes only: clean light hero cutout, no accidental zoom,
   first-tap cards, and iOS/Android touch consistency. */
html,body{touch-action:pan-x pan-y}

/* Keep the approved V6.15 hero geometry. In light mode only, remove image-level
   masking/shadow that can reveal dark halos or eat the jacket edge. */
body.light .hero .suit-card img{
  -webkit-mask-image:none!important;
  mask-image:none!important;
  filter:none!important;
}
/* Dark mode keeps the approved V6.15 treatment. */
body:not(.light) .hero .suit-card img{
  filter:drop-shadow(0 24px 34px rgba(0,0,0,.24));
}

/* Never let touch devices enter a hover-only intermediate state. */
@media (hover:none), (pointer:coarse){
  .portal:hover,.exp-card:hover{transform:none!important;border-color:inherit}
  .work-cards .portal:hover .open{transform:none!important}
}
@media (hover:hover) and (pointer:fine){
  .portal:hover,.exp-card:hover{transform:translateY(-4px);border-color:rgba(216,180,94,.48)}
}

/* Fast, deliberate touch feedback without the blue browser flash. */
[data-modal],.decision-tab,.btn,.theme-option,.close{
  -webkit-tap-highlight-color:transparent!important;
}
.decision-tab,.btn,.theme-option,.close{touch-action:manipulation}


/* V6.24 — tiny approved tweak: lower the hero name slightly on mobile without touching the banner design. */
@media(max-width:640px){
  .hero-copy{padding-top:10px}
  .hero h1{margin-top:16px}
}


/* V6.25 — magazine-style certificate gallery. Scoped below the locked upper section. */
.certificates-section{overflow:hidden}
.cert-mag{position:relative;margin-top:8px}
.cert-stage{position:relative;height:clamp(260px,43vw,480px);perspective:1400px;touch-action:pan-y;user-select:none;-webkit-user-select:none;overscroll-behavior-x:contain}
.cert-sheet{position:absolute;left:50%;top:50%;width:min(72vw,560px);aspect-ratio:1.414/1;padding:0;border:0;background:none;color:inherit;cursor:pointer;transform-origin:center;will-change:transform,opacity,filter;transition:transform .52s cubic-bezier(.2,.8,.2,1),opacity .42s ease,filter .42s ease;outline:none;-webkit-tap-highlight-color:transparent}
.cert-sheet:focus-visible .cert-paper{box-shadow:0 0 0 2px var(--gold),0 28px 70px rgba(0,0,0,.30)}
.cert-paper{display:block;width:100%;height:100%;padding:12px;border-radius:20px;background:linear-gradient(145deg,#f7f0df,#eadfc5 48%,#d9c89f);box-shadow:0 26px 68px rgba(0,0,0,.28),inset 0 0 0 1px rgba(129,96,37,.14);overflow:hidden}
.cert-frame{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:clamp(18px,3.6vw,34px);border:1px solid rgba(121,91,38,.42);border-radius:13px;text-align:center;color:#1b1812;background:radial-gradient(circle at 20% 15%,rgba(255,255,255,.66),transparent 34%),linear-gradient(135deg,rgba(255,255,255,.40),rgba(255,255,255,.08));overflow:hidden}
.cert-frame::before,.cert-frame::after{content:"";position:absolute;width:100px;height:100px;border:1px solid rgba(154,118,46,.20);border-radius:50%;pointer-events:none}
.cert-frame::before{top:-52px;right:-52px}.cert-frame::after{bottom:-54px;left:-54px}
.cert-topline{font-family:var(--serif);font-size:clamp(9px,1.2vw,12px);letter-spacing:.34em;color:#8d6c2c;margin-bottom:10px}
.cert-arabic{font-size:clamp(10px,1.4vw,13px);color:#786d59;margin-bottom:5px}
.cert-sheet strong{font-family:var(--serif);font-size:clamp(22px,4.3vw,42px);font-weight:500;line-height:1.25;color:#211d16}
.cert-copy{max-width:82%;font-size:clamp(9px,1.5vw,12px);line-height:1.8;color:#6a604f;margin-top:8px}
.cert-foot{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;width:min(84%,360px);margin-top:clamp(14px,3vw,26px)}
.cert-foot i{height:1px;background:rgba(133,99,40,.32)}.cert-foot b{font-size:8px;letter-spacing:.18em;color:#8f6c2d;font-weight:700}
.cert-sheet.is-active .cert-paper{box-shadow:0 32px 84px rgba(0,0,0,.38),0 0 0 1px rgba(216,180,94,.13)}
.cert-sheet.is-side .cert-paper{box-shadow:0 18px 44px rgba(0,0,0,.22)}
body.light .cert-sheet.is-active .cert-paper{box-shadow:0 30px 70px rgba(90,64,26,.19),0 0 0 1px rgba(143,108,38,.16)}
.cert-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);align-items:end;gap:30px;margin:14px auto 0;width:min(860px,100%);padding-inline:12px}
.cert-meta-copy{display:grid;gap:3px}.cert-meta-copy>span{font-size:10px;letter-spacing:.18em;color:var(--gold)}.cert-meta-copy strong{font-family:var(--serif);font-size:clamp(24px,3vw,34px);font-weight:500}.cert-meta-copy small{color:var(--muted);font-size:11px}
.cert-meta-side{display:grid;gap:10px}.cert-progress{height:2px;border-radius:99px;background:var(--line);overflow:hidden;direction:ltr}.cert-progress span{display:block;height:100%;width:25%;background:linear-gradient(90deg,var(--gold),var(--gold2));transition:transform .46s cubic-bezier(.2,.8,.2,1)}
.cert-hint{font-size:10px;color:var(--muted);text-align:left}
.cert-viewer{position:fixed;inset:0;z-index:220;display:grid;place-items:center;padding:24px;background:rgba(7,8,10,.86);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);opacity:0;pointer-events:none;transition:.28s ease}
.cert-viewer.show{opacity:1;pointer-events:auto}.cert-viewer-card{width:min(92vw,1000px)}.cert-viewer-card .cert-paper{aspect-ratio:1.414/1;box-shadow:0 34px 110px rgba(0,0,0,.52)}
.cert-viewer-close{position:absolute;top:max(18px,env(safe-area-inset-top));left:18px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(216,180,94,.30);background:rgba(17,18,20,.78);color:#fff;font-size:26px;cursor:pointer;-webkit-tap-highlight-color:transparent}
body.light .cert-viewer{background:rgba(239,232,220,.88)}body.light .cert-viewer-close{background:rgba(255,252,247,.92);color:#1c1812}
@media(max-width:640px){
  .certificates-section .section-head{margin-bottom:14px}
  .cert-stage{height:clamp(245px,69vw,320px);margin-inline:-9px}
  .cert-sheet{width:78vw}
  .cert-paper{padding:8px;border-radius:16px}.cert-frame{padding:16px 14px;border-radius:11px}
  .cert-copy{max-width:92%;line-height:1.65}.cert-foot{margin-top:13px}
  .cert-meta{grid-template-columns:1fr;gap:12px;margin-top:8px;padding-inline:4px}
  .cert-meta-side{gap:8px}.cert-hint{text-align:right}
  .cert-viewer{padding:14px}.cert-viewer-card{width:96vw}
}
@media(prefers-reduced-motion:reduce){.cert-sheet,.cert-progress span{transition:none!important}}


/* V6.26 — certificate alignment, ribbon cue, lower-section rhythm and scroll-performance refinements. */
/* Keep the approved upper layout untouched; only sections after Experience receive tighter rhythm. */
#experience ~ .section{padding-block:clamp(52px,5vw,64px)}
#experience ~ .section .section-head{margin-bottom:clamp(18px,2vw,22px)}

/* Certificate gallery: one clean horizontal row, no tilted/back-shifted cards. */
.cert-stage{perspective:none}
.cert-sheet{will-change:transform,opacity;transition:transform .46s cubic-bezier(.2,.78,.2,1),opacity .34s ease}
.cert-sheet.is-active .cert-paper{box-shadow:0 28px 70px rgba(0,0,0,.34),0 0 0 1px rgba(216,180,94,.16)}
.cert-sheet.is-side .cert-paper{box-shadow:0 16px 38px rgba(0,0,0,.18)}
.cert-ribbon{width:clamp(38px,6vw,54px);height:clamp(38px,6vw,54px);display:grid;place-items:center;margin:2px 0 7px;color:#9b762d;filter:none}
.cert-ribbon svg{width:100%;height:100%;display:block}
.cert-meta{grid-template-columns:minmax(0,1fr) minmax(210px,.72fr);align-items:end;margin-top:12px}
.cert-meta-copy{gap:5px}.cert-meta-label{font-size:10px;letter-spacing:.12em;color:var(--gold);font-weight:700}
.cert-meta-copy small{font-size:12px;line-height:1.75;max-width:58ch}
.cert-progress span{width:25%}
.cert-hint{line-height:1.7}
/* Avoid expensive blur/filter work while the page is being scrolled. */
.cert-sheet{filter:none!important}
.cert-viewer{backdrop-filter:none;-webkit-backdrop-filter:none}
.cert-viewer.show{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

@media(max-width:640px){
  #experience ~ .section{padding-block:46px}
  #experience ~ .section .section-head{margin-bottom:16px}
  .cert-stage{height:clamp(238px,66vw,305px)}
  .cert-sheet{width:76vw}
  .cert-meta{margin-top:10px;gap:10px}
  .cert-meta-copy strong{font-size:clamp(24px,7vw,31px)}
  .cert-meta-copy small{font-size:11px;line-height:1.7}
}


/* V6.27 — lower-section refinement only: quiet tools rail + fully visible certificate gallery. */
.tools-showcase{margin-top:10px}
.tools-rail{display:flex;align-items:center;justify-content:center;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:12px 8px 18px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x}
.tools-rail::-webkit-scrollbar{display:none}
.tool-chip{flex:0 0 auto;width:76px;padding:0;border:0;background:transparent;color:inherit;display:grid;place-items:center;gap:8px;cursor:pointer;scroll-snap-align:center;-webkit-tap-highlight-color:transparent;outline:none}
.tool-orb{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));box-shadow:0 12px 28px rgba(0,0,0,.14);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease}
.tool-orb svg{width:38px;height:38px;display:block}
.tool-chip.active .tool-orb{transform:translateY(-3px) scale(1.055);border-color:rgba(216,180,94,.58);box-shadow:0 14px 34px rgba(0,0,0,.20),0 0 0 1px rgba(216,180,94,.08);background:linear-gradient(145deg,rgba(216,180,94,.10),rgba(255,255,255,.025))}
.tool-chip:focus-visible .tool-orb{box-shadow:0 0 0 2px var(--gold),0 14px 34px rgba(0,0,0,.20)}
.tool-detail{width:min(620px,100%);margin:2px auto 0;text-align:center;display:grid;gap:5px;min-height:58px}
.tool-detail strong{font-family:var(--serif);font-size:clamp(20px,2.6vw,28px);font-weight:500}
.tool-detail span{font-size:11px;line-height:1.8;color:var(--muted)}
.tool-detail::after{content:"";display:block;width:46px;height:1px;margin:10px auto 0;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
body.light .tool-orb{background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(238,228,210,.70));box-shadow:0 10px 24px rgba(84,61,28,.08)}
body.light .tool-chip.active .tool-orb{border-color:rgba(156,113,34,.48);background:linear-gradient(145deg,#fffaf1,#efe2ca);box-shadow:0 12px 28px rgba(84,61,28,.12),0 0 0 1px rgba(156,113,34,.06)}

.certificates-section{overflow:visible!important}
.cert-mag{overflow:visible!important;margin-top:4px}
.cert-stage{position:relative;height:clamp(300px,43vw,430px)!important;perspective:none!important;touch-action:pan-y;user-select:none;-webkit-user-select:none;overflow:visible!important;margin-inline:0!important}
.cert-sheet{top:24px!important;left:50%;width:min(72vw,560px)!important;aspect-ratio:1.414/1;padding:0;border:0;background:none;color:inherit;cursor:pointer;transform-origin:center;will-change:transform,opacity;outline:none;-webkit-tap-highlight-color:transparent;overflow:visible!important}
.cert-paper{position:relative;display:block;width:100%;height:100%;padding:9px!important;border-radius:18px!important;background:linear-gradient(145deg,#f8f1e2,#eee2c9 56%,#ddcca5)!important;box-shadow:0 24px 62px rgba(0,0,0,.26),inset 0 0 0 1px rgba(129,96,37,.14)!important;overflow:hidden!important}
.cert-frame{position:relative;display:block;width:100%;height:100%;padding:0!important;border:1px solid rgba(121,91,38,.36);border-radius:11px!important;background:radial-gradient(circle at 18% 14%,rgba(255,255,255,.62),transparent 32%),linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.04));overflow:hidden!important}
.cert-frame::before,.cert-frame::after{content:"";position:absolute;width:112px;height:112px;border:1px solid rgba(154,118,46,.18);border-radius:50%;pointer-events:none}
.cert-frame::before{top:-62px;right:-62px}.cert-frame::after{bottom:-62px;left:-62px}
.cert-frame .cert-watermark{position:absolute;inset:0;background:linear-gradient(120deg,transparent 0 44%,rgba(155,118,45,.025) 44% 45%,transparent 45% 100%);pointer-events:none}
.cert-badge{position:absolute;z-index:8;top:-13px;right:-13px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--gold2),var(--gold));color:#2b2110;border:4px solid var(--bg);box-shadow:0 10px 24px rgba(0,0,0,.24);pointer-events:none;transition:opacity .3s ease,transform .3s ease}
.cert-badge svg{width:30px;height:30px;display:block}
.cert-sheet.is-side .cert-badge{opacity:.52;transform:scale(.9)}
body.light .cert-badge{border-color:#f5f0e8;box-shadow:0 9px 22px rgba(86,62,27,.16)}
.cert-meta{display:block!important;width:min(660px,100%)!important;margin:12px auto 0!important;padding:0 12px!important;text-align:center!important}
.cert-meta-copy{display:grid!important;gap:6px!important;justify-items:center}.cert-meta-label{display:none!important}
.cert-meta-copy strong{font-family:var(--serif);font-size:clamp(25px,3.2vw,36px)!important;font-weight:500;line-height:1.25}
.cert-meta-copy small{font-size:11px!important;line-height:1.85!important;color:var(--muted);max-width:58ch!important}
.cert-meta-side{display:block!important;margin-top:16px!important}
.cert-progress{width:min(360px,72%);height:2px;margin:0 auto;border-radius:99px;background:var(--line);overflow:hidden;direction:ltr}
.cert-progress span{display:block;height:100%;width:25%;margin-left:auto;background:linear-gradient(90deg,var(--gold),var(--gold2));transition:transform .42s cubic-bezier(.2,.8,.2,1)}
.cert-hint{display:none!important}
.cert-sheet.is-active .cert-paper{box-shadow:0 28px 72px rgba(0,0,0,.34),0 0 0 1px rgba(216,180,94,.13)!important}
.cert-sheet.is-side .cert-paper{box-shadow:0 14px 34px rgba(0,0,0,.17)!important}
body.light .cert-sheet.is-active .cert-paper{box-shadow:0 26px 58px rgba(90,64,26,.17),0 0 0 1px rgba(143,108,38,.13)!important}
.cert-viewer-card .cert-paper{aspect-ratio:1.414/1;box-shadow:0 34px 110px rgba(0,0,0,.52)!important}

@media(max-width:760px){
  .tools-rail{justify-content:flex-start;direction:rtl;gap:12px;margin-inline:-9px;padding-inline:18px}
  .tool-chip{width:70px}.tool-orb{width:60px;height:60px}.tool-orb svg{width:35px;height:35px}
  .tool-detail{padding-inline:12px;min-height:64px}
  .certificates-section .section-head{margin-bottom:8px}
  .cert-stage{height:clamp(255px,68vw,320px)!important;margin-top:0!important}
  .cert-sheet{top:22px!important;width:78vw!important}
  .cert-paper{padding:7px!important;border-radius:15px!important}.cert-frame{border-radius:9px!important}
  .cert-badge{width:46px;height:46px;top:-12px;right:-10px;border-width:3px}.cert-badge svg{width:27px;height:27px}
  .cert-meta{margin-top:6px!important;padding-inline:8px!important}
  .cert-meta-copy strong{font-size:clamp(24px,7vw,31px)!important}
  .cert-meta-copy small{font-size:11px!important;line-height:1.7!important}
  .cert-meta-side{margin-top:14px!important}.cert-progress{width:min(320px,78%)}
}
@media(max-width:390px){.cert-stage{height:250px!important}.cert-sheet{width:80vw!important}.tools-rail{gap:10px}}
@media(prefers-reduced-motion:reduce){.tool-orb,.cert-sheet,.cert-badge,.cert-progress span{transition:none!important}}


/* V6.28 — certificates polish + direct-contact section. Upper approved sections untouched. */
.certificates-section .section-head{display:block!important;text-align:center!important;margin-bottom:20px!important}
.certificates-section .section-head>div:first-child{width:100%}
.certificates-section .section-head .kicker{display:flex;align-items:center;justify-content:center;gap:10px;text-align:center}
.certificates-section .section-head h2{margin-inline:auto;max-width:100%;font-size:clamp(34px,5.2vw,64px);line-height:1.2}
.certificates-section .subcopy{max-width:660px!important;margin:10px auto 0!important;text-align:center!important;line-height:1.9}

/* Certificate gallery: magazine feel, complete center sheet, visible neighbors, no clipping. */
.certificates-section{overflow:hidden!important}
.cert-mag{position:relative;overflow:visible!important;margin-top:2px!important}
.cert-stage{height:clamp(310px,44vw,460px)!important;overflow:visible!important;margin-inline:0!important}
.cert-sheet{top:50%!important;left:50%!important;width:min(70vw,555px)!important;overflow:visible!important}
.cert-paper{padding:9px!important;border-radius:18px!important;overflow:hidden!important;box-shadow:0 26px 70px rgba(0,0,0,.28),inset 0 0 0 1px rgba(129,96,37,.14)!important}
.cert-frame{overflow:hidden!important;border-radius:11px!important}
.cert-sheet.is-active .cert-paper{box-shadow:0 32px 86px rgba(0,0,0,.36),0 0 0 1px rgba(216,180,94,.14)!important}
.cert-sheet.is-side .cert-paper{box-shadow:0 14px 38px rgba(0,0,0,.16)!important}

/* Ribbon is now only a fine gold line icon sitting on the frame edge. */
.cert-badge{top:5px!important;right:10px!important;width:42px!important;height:48px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#a98131!important;display:grid!important;place-items:center!important;transform:translateY(-46%)!important;opacity:1!important;pointer-events:none!important}
.cert-badge svg{width:34px!important;height:40px!important;filter:none!important}
.cert-sheet.is-side .cert-badge{opacity:.48!important;transform:translateY(-46%) scale(.94)!important}
body.light .cert-badge{border:0!important;background:transparent!important;box-shadow:none!important;color:#987126!important}

.cert-meta{width:min(680px,100%)!important;margin:14px auto 0!important;padding:0 14px!important;text-align:center!important}
.cert-meta-copy{display:grid!important;justify-items:center!important;gap:7px!important}
.cert-meta-copy strong{font-size:clamp(27px,3.4vw,38px)!important;line-height:1.25!important}
.cert-meta-copy small{font-size:12px!important;line-height:1.85!important;max-width:56ch!important}
.cert-meta-side{margin-top:18px!important}
.cert-progress{width:min(360px,74%)!important;margin:0 auto!important}

/* Contact area — open, editorial, not another set of heavy cards. */
.contact-section{padding-top:70px!important;padding-bottom:68px!important}
.contact-head{text-align:center;max-width:760px;margin:0 auto 34px}
.contact-head .kicker{margin-bottom:8px}
.contact-head h2{font-family:var(--serif);font-size:clamp(44px,7vw,82px);font-weight:500;line-height:1;margin:0 0 14px}
.contact-head p{max-width:610px;margin:0 auto;color:var(--muted);font-size:13px;line-height:1.9}
.contact-grid{display:grid;grid-template-columns:repeat(4,1fr);max-width:960px;margin:0 auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.contact-link{position:relative;min-height:178px;padding:26px 16px 22px;display:grid;place-items:center;align-content:center;gap:9px;text-align:center;color:inherit;text-decoration:none;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .2s ease,transform .16s ease}
.contact-link:not(:last-child){border-left:1px solid var(--line)}
.contact-link svg{width:34px;height:34px;color:var(--gold);display:block;transition:transform .2s ease}
.contact-link strong{font-family:var(--serif);font-size:24px;font-weight:500;line-height:1.2}
.contact-link small{font-size:10px;color:var(--muted);line-height:1.65}
@media(hover:hover) and (pointer:fine){.contact-link:hover{background:rgba(216,180,94,.045)}.contact-link:hover svg{transform:translateY(-3px)}}
.contact-link:active{background:rgba(216,180,94,.08);transform:scale(.985)}
.contact-link:focus-visible{outline:1px solid var(--gold);outline-offset:-1px}
body.light .contact-link:hover{background:rgba(156,113,34,.055)}
.cv-download-wrap{text-align:center;margin-top:28px}
.cv-download-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:min(100%,320px);padding:13px 22px;border:1px solid rgba(216,180,94,.45);border-radius:999px;color:var(--gold2);text-decoration:none;background:transparent;font-size:12px;font-weight:700;-webkit-tap-highlight-color:transparent;transition:background .2s ease,border-color .2s ease,transform .16s ease}
.cv-download-btn svg{width:18px;height:18px}.cv-download-btn:active{transform:scale(.985);background:rgba(216,180,94,.07)}
.contact-toast{position:fixed;left:50%;bottom:calc(74px + env(safe-area-inset-bottom));z-index:260;transform:translate(-50%,18px);padding:10px 15px;border-radius:999px;background:rgba(20,20,20,.92);border:1px solid rgba(216,180,94,.26);color:#f5f1e8;font-size:11px;opacity:0;pointer-events:none;transition:.22s ease;white-space:nowrap;max-width:calc(100vw - 28px);overflow:hidden;text-overflow:ellipsis}
.contact-toast.show{opacity:1;transform:translate(-50%,0)}
body.light .contact-toast{background:rgba(255,252,247,.96);color:#211c16}

@media(max-width:760px){
  .certificates-section .section-head{margin-bottom:12px!important}
  .certificates-section .section-head h2{font-size:clamp(28px,8.4vw,38px)!important;white-space:nowrap!important;letter-spacing:-.02em}
  .certificates-section .subcopy{font-size:11px!important;padding-inline:8px}
  .cert-stage{height:clamp(265px,72vw,330px)!important;margin-inline:-9px!important}
  .cert-sheet{width:76vw!important}
  .cert-badge{top:5px!important;right:7px!important;width:36px!important;height:42px!important}.cert-badge svg{width:30px!important;height:36px!important}
  .cert-meta{margin-top:8px!important}.cert-meta-copy strong{font-size:clamp(25px,7.2vw,32px)!important}.cert-meta-copy small{font-size:11px!important}
  .cert-meta-side{margin-top:15px!important}.cert-progress{width:min(310px,78%)!important}
  .contact-section{padding-top:56px!important;padding-bottom:58px!important}
  .contact-head{margin-bottom:24px;padding-inline:8px}.contact-head h2{font-size:clamp(46px,14vw,66px)}
  .contact-grid{grid-template-columns:repeat(2,1fr)}
  .contact-link{min-height:148px;padding:20px 10px}
  .contact-link:nth-child(2){border-left:0}.contact-link:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .contact-link:nth-child(3){border-left:1px solid var(--line)}
  .contact-link strong{font-size:22px}.contact-link svg{width:31px;height:31px}
  .cv-download-wrap{margin-top:24px;padding-inline:12px}.cv-download-btn{width:100%;max-width:340px}
}
@media(max-width:390px){.certificates-section .section-head h2{font-size:27px!important}.cert-stage{height:258px!important}.contact-link{min-height:140px}}


/* V6.29 — certificate showcase + unified daylight palette + centered sign-off. */
body.light{
  --bg:#f4ecdf;--bg2:#eadcca;--panel:rgba(255,251,244,.96);--ink:#1c1711;
  --muted:#62594d;--gold:#a77928;--gold2:#c8963b;--line:rgba(91,67,34,.17);--soft:rgba(255,252,246,.72);
  background:linear-gradient(180deg,#f8f2e8 0%,#f0e5d5 52%,#f6efe5 100%);
}
body.light .section{border-top-color:rgba(91,67,34,.15)}
body.light .kicker{color:#9a6d22}
body.light .subcopy,body.light .mini{color:#5f574c}
body.light .portal,body.light .exp-card,body.light .thought,body.light .decision-lab{box-shadow:0 14px 34px rgba(87,61,27,.055)}

/* Certificate heading exactly reads as a premium editorial label with flanking rules. */
.certificates-section .section-head .kicker::before,.certificates-section .section-head .kicker::after{
  content:"";width:42px;height:1px;background:linear-gradient(90deg,transparent,var(--gold));opacity:.9
}
.certificates-section .section-head .kicker::after{transform:scaleX(-1)}
.certificates-section .section-head h2{font-size:clamp(32px,5vw,60px)!important;line-height:1.16!important;margin-top:12px!important}
.certificates-section .subcopy{font-size:12px!important}

/* Center certificate is the hero; neighboring sheets stay visible like a luxury magazine carousel. */
.cert-stage::before{content:"";position:absolute;left:50%;top:50%;width:min(78vw,640px);height:78%;transform:translate(-50%,-48%);background:radial-gradient(ellipse,rgba(216,180,94,.12),transparent 66%);filter:blur(24px);pointer-events:none;opacity:.72}
.cert-sheet{width:min(68vw,540px)!important}
.cert-sheet.is-active .cert-paper{box-shadow:0 34px 94px rgba(0,0,0,.42),0 0 34px rgba(216,180,94,.10),0 0 0 1px rgba(216,180,94,.18)!important}
.cert-sheet.is-side{opacity:.42!important}
.cert-sheet.is-side .cert-paper{filter:saturate(.72) brightness(.82);box-shadow:0 14px 34px rgba(0,0,0,.18)!important}
body.light .cert-stage::before{background:radial-gradient(ellipse,rgba(174,126,39,.12),transparent 66%)}
body.light .cert-sheet.is-active .cert-paper{box-shadow:0 30px 74px rgba(99,67,25,.20),0 0 28px rgba(168,119,35,.08),0 0 0 1px rgba(143,108,38,.18)!important}
body.light .cert-sheet.is-side .cert-paper{filter:saturate(.76) brightness(.91)}

/* Fine line ribbon sits on the opposite upper edge; no disc, fill or shadow. */
.cert-badge{left:9px!important;right:auto!important;top:4px!important;width:42px!important;height:48px!important;transform:translateY(-44%)!important;color:var(--gold)!important}
.cert-sheet.is-side .cert-badge{transform:translateY(-44%) scale(.92)!important}

/* Current certificate caption then the moving progress line. */
.cert-meta{margin-top:16px!important}
.cert-meta-copy strong{font-size:clamp(26px,3.3vw,38px)!important}
.cert-meta-copy small{max-width:54ch!important}
.cert-progress{height:2px!important;width:min(370px,74%)!important;background:rgba(255,255,255,.10)!important}
body.light .cert-progress{background:rgba(89,66,36,.17)!important}
.cert-progress span{background:linear-gradient(90deg,var(--gold),var(--gold2))!important}

/* Daylight contact area gets its own polished contrast while remaining part of the same identity. */
body.light .contact-section{background:linear-gradient(180deg,rgba(255,251,244,.42),rgba(232,218,197,.42));}
body.light .contact-grid{border-color:rgba(90,67,35,.20);background:rgba(255,252,247,.42);box-shadow:0 20px 50px rgba(92,65,29,.055)}
body.light .contact-link{background:rgba(255,252,247,.34)}
body.light .contact-link:not(:last-child),body.light .contact-link:nth-child(3){border-color:rgba(90,67,35,.18)}
body.light .contact-link svg{color:#9b6b20}
body.light .contact-link strong{color:#211a12}
body.light .contact-link small{color:#665c4f}
body.light .contact-link:active{background:rgba(166,116,31,.09)}
body.light .cv-download-btn{border-color:#a87928;color:#fff8ec;background:linear-gradient(135deg,#9d6d22,#c79238);box-shadow:0 12px 28px rgba(112,76,25,.16)}
body.light .cv-download-btn:active{background:linear-gradient(135deg,#8f621e,#b98230)}

/* Final identity block: centered and consistent on every viewport. */
.footer{padding:52px 0 calc(92px + env(safe-area-inset-bottom))!important;border-top:1px solid var(--line);text-align:center}
.footer-signoff{display:grid;justify-items:center;text-align:center;gap:7px}
.footer-name-ar{font-family:var(--serif);font-size:clamp(26px,3.5vw,38px);line-height:1.15;color:var(--ink)}
.footer-brand{font-size:clamp(24px,3.4vw,36px)!important;letter-spacing:.20em;line-height:1.12}
.footer-location{font-size:11px;letter-spacing:.19em;color:var(--muted)}
.footer-fields{margin-top:16px;font-size:12px;color:var(--muted);letter-spacing:.05em}
.footer-rights{margin-top:12px;padding-top:13px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);width:min(420px,80%)}
body.light .footer{background:linear-gradient(180deg,rgba(255,252,247,.08),rgba(231,218,200,.34))}

@media(max-width:760px){
  .certificates-section .section-head .kicker::before,.certificates-section .section-head .kicker::after{width:30px}
  .certificates-section .section-head h2{font-size:clamp(27px,7.8vw,36px)!important;white-space:nowrap!important}
  .cert-stage{height:clamp(250px,67vw,318px)!important;margin-inline:-12px!important}
  .cert-sheet{width:72vw!important}
  .cert-badge{left:6px!important;right:auto!important;width:36px!important;height:42px!important}
  .footer-brand{letter-spacing:.14em}
}
@media(max-width:390px){.certificates-section .section-head h2{font-size:26px!important}.cert-sheet{width:74vw!important}}


/* V6.30 — approved footer scale + touch-safe tools rail. No other visual sections changed. */
.footer-name-ar{
  display:inline-block;
  font-family:"Times New Roman","Noto Naskh Arabic",Georgia,serif;
  font-size:clamp(46px,8.8vw,76px)!important;
  font-weight:400;
  line-height:1.02!important;
  letter-spacing:-.045em;
  white-space:nowrap;
  color:var(--ink);
  margin-bottom:2px;
}
.footer-brand{
  font-size:clamp(24px,3.4vw,36px)!important;
  letter-spacing:.20em;
  line-height:1.08;
  white-space:nowrap;
}
.tools-rail{touch-action:pan-x pan-y!important;overscroll-behavior-x:auto!important}
.tool-chip{touch-action:pan-x pan-y!important;user-select:none;-webkit-user-select:none}
@media(max-width:640px){
  .footer-name-ar{font-size:clamp(48px,14vw,68px)!important;max-width:94vw}
  .footer-brand{font-size:clamp(24px,7vw,34px)!important;letter-spacing:.13em}
}
@media(max-width:380px){
  .footer-name-ar{font-size:clamp(44px,13vw,60px)!important}
  .footer-brand{font-size:clamp(22px,6.6vw,31px)!important;letter-spacing:.11em}
}



/* V6.31 FINAL PREVIEW — responsive polish, deterministic brand colors, print/share, and performance-safe interaction. */
:root{color-scheme:dark}
body.light{color-scheme:light}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#0b0d10}
body{font-synthesis:none}
body.light,body.light *{accent-color:#a77928}
body:not(.light),body:not(.light) *{accent-color:#d8b45e}

/* Brand identity is controlled by the page theme only, never by browser/system dark-mode preference. */
.hero h1,.footer-name-ar{font-family:"Noto Naskh Arabic","Geeza Pro","Times New Roman",serif!important}
.hero h1{letter-spacing:-.055em!important}

/* Desktop section rhythm: label → heading → copy, aligned as one editorial block. */
@media(min-width:961px){
  #work-style .section-head,#tools .section-head{display:block!important;max-width:980px;margin:0 auto 26px!important;padding-inline:0!important}
  #work-style .section-head .subcopy,#tools .section-head .subcopy{max-width:760px!important;margin-top:10px!important}
  #work-style .section-head h2,#tools .section-head h2{margin-bottom:0!important}
}

/* Four-angle section: no numerical counter. */
.decision-index{display:none!important}
@media(min-width:761px){.decision-panel{grid-template-columns:minmax(0,1fr) minmax(230px,.40fr)!important}}
@media(max-width:640px){
  .decision-section .section-head h2{font-size:clamp(20px,5.7vw,27px)!important;white-space:nowrap!important;letter-spacing:-.035em!important;line-height:1.25!important}
}

/* Tools must never trap vertical page scrolling. */
.tools-rail,.tool-chip,.tool-orb{touch-action:pan-x pan-y!important}
.tools-rail{overscroll-behavior:auto!important}

/* Compact document actions keep contact uncluttered. */
.document-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:28px;padding-inline:12px}
.doc-action{appearance:none;border:1px solid rgba(216,180,94,.30);border-radius:999px;background:rgba(255,255,255,.025);color:var(--ink);min-height:46px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .18s ease,border-color .18s ease,transform .16s ease}
.doc-action svg{width:18px;height:18px;color:var(--gold);flex:0 0 auto}
.doc-action.primary{border-color:rgba(216,180,94,.52);color:var(--gold2)}
.doc-action:active{transform:scale(.985);background:rgba(216,180,94,.07)}
.doc-action:focus-visible{outline:2px solid rgba(216,180,94,.54);outline-offset:2px}
body.light .doc-action{background:rgba(255,252,247,.56);border-color:rgba(104,74,31,.20);box-shadow:0 8px 20px rgba(81,56,23,.045)}
body.light .doc-action svg{color:#966820}
body.light .doc-action.primary{color:#fff9ef;border-color:#9d6d22;background:linear-gradient(135deg,#9d6d22,#c79238);box-shadow:0 10px 25px rgba(112,76,25,.13)}
@media(max-width:640px){.document-actions{display:grid;grid-template-columns:1fr;max-width:350px;margin-inline:auto}.doc-action{width:100%}}

/* Preserve the refined footer hierarchy. */
.footer-name-ar{font-weight:500!important;letter-spacing:-.02em!important}
.footer-rights{width:min(520px,88%)!important}

/* Print mode: one clean A4 CV, independent of interactive/animated screen layout. */
.print-cv{display:none}
@page{size:A4;margin:12mm}
@media print{
  html,body{background:#fff!important;color:#111!important;width:auto!important;height:auto!important;overflow:visible!important}
  body>*:not(.print-cv){display:none!important}
  .print-cv{display:block!important;direction:rtl;font-family:Arial,Tahoma,sans-serif;color:#151515;font-size:9.2pt;line-height:1.55}
  .print-cv *{box-sizing:border-box}
  .print-cv-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
  .print-cv h1{font-family:"Noto Naskh Arabic","Geeza Pro","Times New Roman",serif;font-size:25pt;line-height:1;margin:0 0 3px;font-weight:600}
  .print-en{font-size:8pt;letter-spacing:.18em;color:#555;direction:ltr;text-align:right}
  .print-location{font-size:8.5pt;color:#555}
  .print-rule{height:1.5pt;background:#b38735;margin:7mm 0 5mm}
  .print-cv section{margin:0 0 4mm}
  .print-cv h2{font-size:10.5pt;margin:0 0 1.5mm;color:#8b6428}
  .print-cv p{margin:0;color:#333}
  .print-exp{display:grid;grid-template-columns:1.3fr .8fr;column-gap:8mm;row-gap:.5mm;padding:2.2mm 0;border-bottom:.4pt solid #ddd}
  .print-exp strong{font-size:9.5pt}.print-exp span{color:#666;font-size:8.5pt}.print-exp p{grid-column:1/-1;font-size:8.5pt}
  .print-two{display:grid!important;grid-template-columns:1fr 1fr;gap:9mm;margin-top:4mm!important}
  .print-foot{display:flex;justify-content:space-between;align-items:center;margin-top:6mm;padding-top:3mm;border-top:.7pt solid #c9a866;color:#666;font-size:8pt}
}



/* V6.32 FINAL BEFORE PLUGIN — footer portrait + live print/PDF data. */
.footer-portrait{
  width:104px;height:104px;border-radius:50%;overflow:hidden;
  display:grid;place-items:center;margin:0 auto 9px;
  border:1px solid rgba(216,180,94,.40);
  box-shadow:0 14px 38px rgba(0,0,0,.20),0 0 0 5px rgba(216,180,94,.055);
  background:var(--panel);position:relative;
}
.footer-portrait::after{content:"";position:absolute;inset:5px;border-radius:50%;border:1px solid rgba(216,180,94,.16);pointer-events:none}
.footer-portrait img{width:100%;height:128%;object-fit:cover;object-position:50% 10%;transform:translateY(6%);display:block;filter:none!important;-webkit-mask:none!important;mask:none!important}
body.light .footer-portrait{background:#f4eadb;border-color:rgba(151,107,34,.40);box-shadow:0 14px 34px rgba(89,62,24,.12),0 0 0 5px rgba(151,107,34,.05)}
.footer-brand{margin-top:2px}
@media(max-width:640px){.footer-portrait{width:94px;height:94px}.footer-brand{font-size:clamp(23px,7vw,32px)!important}}

@media print{
  .print-cert-list{display:grid;grid-template-columns:1fr 1fr;gap:2.4mm 5mm;margin-top:1.2mm}
  .print-cert{padding:1.8mm 0;border-bottom:.4pt solid #e0d6c6;break-inside:avoid;page-break-inside:avoid}
  .print-cert strong{display:block;font-size:8.8pt;color:#222;margin-bottom:.4mm}
  .print-cert small{display:block;font-size:7.7pt;line-height:1.45;color:#666}
  .print-cert.with-image{display:grid;grid-template-columns:18mm 1fr;gap:2.5mm;align-items:center}
  .print-cert.with-image img{width:18mm;height:12.7mm;object-fit:cover;border:.4pt solid #d6c5a6;border-radius:1mm}
}

/* V6.33 FINAL — tools section heading centered on desktop, tablet and mobile. */
#tools .section-head{display:block!important;max-width:860px!important;margin:0 auto 28px!important;text-align:center!important;padding-inline:0!important}
#tools .section-head>div:first-child{display:block!important;text-align:center!important}
#tools .section-head .kicker,#tools .section-head h2,#tools .section-head .subcopy{text-align:center!important;margin-inline:auto!important}
#tools .section-head .subcopy{max-width:650px!important;margin-top:10px!important}


/* Plugin production overrides */
#mhp-root{isolation:isolate;min-height:100vh}
#mhp-root .mhp-orbit-img,#mhp-root .mhp-tool-img{width:76%!important;height:76%!important;object-fit:contain!important;display:block!important}
#mhp-root .exp-card .thumb img.mhp-exp-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
#mhp-root .cert-frame img.mhp-cert-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;z-index:1}
#mhp-root #tools .section-head{display:block!important;max-width:860px!important;margin:0 auto 28px!important;text-align:center!important;padding-inline:0!important}
#mhp-root #tools .section-head>div:first-child,#mhp-root #tools .section-head .kicker,#mhp-root #tools .section-head h2,#mhp-root #tools .section-head .subcopy{text-align:center!important;margin-inline:auto!important}
#mhp-root #tools .section-head .subcopy{max-width:650px!important;margin-top:10px!important}

/* MHP 1.1.0 standalone hardening */
html{color-scheme:only light}
body.mhp-fullscreen-page{width:100%;min-height:100%;margin:0!important;padding:0!important}
#mhp-root{width:100%;min-height:100vh;isolation:isolate}
#mhp-root img{max-width:none}


/* ============================================================
   VERSION 4 — scoped corrections on top of the approved master.
   No redesign: only responsive width, working controls, header,
   persistent theme control and performance-safe presentation.
   ============================================================ */

/* English name in the hero: restore the strong, readable presence. */
#mhp-root .hero .en{
  font-size:clamp(14px,1.55vw,19px)!important;
  letter-spacing:.30em!important;
  line-height:1.25!important;
  font-weight:500!important;
}

/* Sticky portfolio header: one line on desktop, natural wrap only on small phones. */
#mhp-root .header{z-index:170!important}
#mhp-root .header-name{
  font-size:14px!important;
  line-height:1!important;
  letter-spacing:.14em!important;
  white-space:nowrap!important;
  max-width:none!important;
}
@media(max-width:640px){
  #mhp-root .header-name{
    width:92px!important;
    max-width:92px!important;
    white-space:normal!important;
    text-align:center!important;
    font-size:11px!important;
    line-height:1.08!important;
    letter-spacing:.12em!important;
  }
}

/* Theme switch remains available at all times, independent of footer position. */
#mhp-root .theme-btn{
  position:fixed!important;
  left:50%!important;
  top:auto!important;
  bottom:calc(14px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  z-index:180!important;
  opacity:1!important;
  visibility:visible!important;
}
@media(max-width:640px){#mhp-root .theme-btn{bottom:calc(12px + env(safe-area-inset-bottom))!important}}

/* Decision experience fills the approved content width on desktop. */
#mhp-root #decision-style .decision-lab{max-width:100%!important;width:100%!important}
@media(min-width:961px){
  #mhp-root #decision-style .section-head{max-width:100%!important;width:100%!important;margin-inline:0!important}
  #mhp-root #decision-style .decision-panel{gap:clamp(24px,3vw,46px)!important;padding-inline:clamp(22px,3vw,42px)!important}
}

/* Tools: full, balanced desktop rail; three-at-a-time tablet; approved mobile stays compact. */
@media(min-width:961px){
  #mhp-root #tools .tools-showcase{width:100%!important}
  #mhp-root #tools .tools-rail{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(8,minmax(0,1fr))!important;
    gap:clamp(10px,1.25vw,18px)!important;
    overflow:visible!important;
    padding:14px 0 20px!important;
    justify-content:stretch!important;
  }
  #mhp-root #tools .tool-chip{width:100%!important;min-width:0!important}
}
@media(min-width:641px) and (max-width:960px){
  #mhp-root #tools .tools-rail{
    justify-content:flex-start!important;
    gap:14px!important;
    padding-inline:14px!important;
    scroll-snap-type:x mandatory!important;
  }
  #mhp-root #tools .tool-chip{
    flex:0 0 calc((100% - 28px)/3)!important;
    width:calc((100% - 28px)/3)!important;
    scroll-snap-align:center!important;
  }
}

/* Certificate desktop arrows; mobile/tablet keep direct swipe + progress line. */
#mhp-root .cert-nav{display:none}
@media(min-width:961px){
  #mhp-root .cert-nav{
    display:flex!important;
    position:absolute!important;
    top:50%!important;
    left:14px!important;
    right:14px!important;
    transform:translateY(-50%)!important;
    align-items:center!important;
    justify-content:space-between!important;
    z-index:25!important;
    pointer-events:none!important;
  }
  #mhp-root .cert-nav-btn{
    pointer-events:auto!important;
    width:46px!important;height:46px!important;
    border-radius:50%!important;
    border:1px solid rgba(216,180,94,.42)!important;
    background:rgba(10,12,16,.78)!important;
    color:var(--gold2)!important;
    display:grid!important;place-items:center!important;
    font-size:22px!important;line-height:1!important;
    cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important;
    backdrop-filter:blur(12px)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
    transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
  }
  #mhp-root .cert-nav-btn:hover{transform:scale(1.05);border-color:rgba(216,180,94,.72)!important}
  #mhp-root .cert-nav-btn:active{transform:scale(.96)}
  #mhp-root .cert-meta-side{display:none!important}
  body.light #mhp-root .cert-nav-btn{background:rgba(255,250,242,.92)!important;color:#8c6421!important;box-shadow:0 10px 26px rgba(82,57,24,.10)!important}
}

/* Avoid visible vertical pop-in on fast scroll; preserve a light fade only. */
#mhp-root .reveal{transform:none!important;transition:opacity .34s ease!important}
#mhp-root .reveal.show{transform:none!important}

/* Keep image boxes dimensionally stable while actual media decodes. */
#mhp-root .exp-thumb{contain:paint}
#mhp-root .cert-paper,#mhp-root .cert-frame{contain:paint}


/* ============================================================
   VERSION 5 — interaction-layer repair only.
   The approved visual design remains unchanged.
   The previous `contain: layout` on #mhp-root created a containing
   block for fixed descendants in some browsers, which made the
   sticky header, theme control and modal behave like page-bound
   elements. Keep isolation, but never contain fixed UI layers.
   ============================================================ */
#mhp-root{
  contain:none!important;
  isolation:isolate!important;
}
#mhp-root .header{
  position:fixed!important;
  inset:0 0 auto 0!important;
  z-index:240!important;
}
#mhp-root .theme-btn{
  position:fixed!important;
  left:50%!important;
  bottom:calc(14px + env(safe-area-inset-bottom))!important;
  z-index:245!important;
}
#mhp-root .modal{
  position:fixed!important;
  inset:0!important;
  z-index:300!important;
}
#mhp-root .modal .sheet{position:relative!important;z-index:1!important}
#mhp-root .cert-viewer{position:fixed!important;z-index:310!important}
@media(max-width:640px){
  #mhp-root .theme-btn{bottom:calc(12px + env(safe-area-inset-bottom))!important}
}

/* ============================================================
   VERSION 6 — typography + section-label polish only.
   Banner/orbit/marquee geometry stays untouched.
   ============================================================ */
/* Header identity is intentionally more legible on desktop. */
@media(min-width:961px){
  #mhp-root .header-name{
    font-size:clamp(16px,1.25vw,19px)!important;
    letter-spacing:.12em!important;
    line-height:1!important;
    white-space:nowrap!important;
    font-weight:600!important;
  }
}
@media(min-width:641px) and (max-width:960px){
  #mhp-root .header-name{
    font-size:14px!important;
    letter-spacing:.11em!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
}

/* The approved Work section no longer needs a decorative pre-label. */
#mhp-root #work-style .section-head .kicker:empty{display:none!important}

/* Clear, consistent section labels. */
#mhp-root #decision-style .section-head .kicker,
#mhp-root #experience .section-head .kicker,
#mhp-root #tools .section-head .kicker,
#mhp-root #certificates .section-head .kicker{
  font-size:clamp(12px,1.05vw,15px)!important;
  line-height:1.4!important;
  font-weight:700!important;
  letter-spacing:.045em!important;
  margin-bottom:8px!important;
  color:var(--gold)!important;
}

/* Tools and certificates share the same elegant line-label language. */
#mhp-root #tools .section-head .kicker,
#mhp-root #certificates .section-head .kicker{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  width:100%!important;
  text-align:center!important;
}
#mhp-root #tools .section-head .kicker::before,
#mhp-root #tools .section-head .kicker::after,
#mhp-root #certificates .section-head .kicker::before,
#mhp-root #certificates .section-head .kicker::after{
  content:""!important;
  display:block!important;
  width:44px!important;
  height:1px!important;
  flex:0 0 44px!important;
  background:linear-gradient(90deg,transparent,rgba(216,180,94,.78))!important;
}
#mhp-root #tools .section-head .kicker::after,
#mhp-root #certificates .section-head .kicker::after{transform:scaleX(-1)!important}

@media(max-width:640px){
  #mhp-root #decision-style .section-head .kicker,
  #mhp-root #experience .section-head .kicker,
  #mhp-root #tools .section-head .kicker,
  #mhp-root #certificates .section-head .kicker{
    font-size:11px!important;
    margin-bottom:6px!important;
  }
  #mhp-root #tools .section-head .kicker::before,
  #mhp-root #tools .section-head .kicker::after,
  #mhp-root #certificates .section-head .kicker::before,
  #mhp-root #certificates .section-head .kicker::after{
    width:28px!important;
    flex-basis:28px!important;
  }
}


/* ============================================================
   VERSION 7 — approved card refinement + visit-scoped theme.
   No hero/orbit/marquee redesign.
   ============================================================ */
/* Experience cards become one continuous editorial surface: the visual fills
   the top edge and gently blends into the approved card body. */
#mhp-root #experience .exp-card{
  overflow:hidden!important;
  padding:0 20px 48px!important;
}
#mhp-root #experience .exp-card .thumb.exp-thumb{
  position:relative!important;
  display:block!important;
  width:auto!important;
  height:clamp(150px,12vw,188px)!important;
  margin:0 -20px 16px!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:none!important;
}
#mhp-root #experience .exp-card .thumb.exp-thumb svg,
#mhp-root #experience .exp-card .thumb.exp-thumb img.mhp-exp-img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:0!important;
}
#mhp-root #experience .exp-card .thumb.exp-thumb::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:42%;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(24,27,32,0),rgba(24,27,32,.96));
}
body.light #mhp-root #experience .exp-card .thumb.exp-thumb::after{
  background:linear-gradient(to bottom,rgba(246,239,229,0),rgba(246,239,229,.97));
}
#mhp-root #experience .exp-card>small,
#mhp-root #experience .exp-card>h3,
#mhp-root #experience .exp-card>p{position:relative;z-index:1}
@media(max-width:640px){
  #mhp-root #experience .exp-card .thumb.exp-thumb{height:148px!important}
}


/* ============================================================
   VERSION 8 — production polish.
   Scoped to the portfolio root so the approved page remains
   independent from Astra / Elementor / WooCommerce presentation.
   ============================================================ */

/* Tools section breathing room: label, title, rail, and selected-tool caption. */
#mhp-root #tools .section-head{margin-bottom:34px!important}
#mhp-root #tools .section-head .kicker{margin-bottom:14px!important}
#mhp-root #tools .section-head h2{margin-top:0!important}
#mhp-root #tools .section-head .subcopy{margin-top:13px!important}
#mhp-root #tools .tools-rail{padding-top:12px!important;padding-bottom:24px!important}
#mhp-root #tools .tool-detail{margin-top:18px!important;gap:7px!important}
#mhp-root #tools .tool-detail::after{margin-top:13px!important}

/* Dynamic collections remain balanced when the user grows them beyond four. */
@media(min-width:961px){
  #mhp-root #workTrack,
  #mhp-root #expTrack{
    display:grid!important;
    grid-auto-flow:row!important;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;
    width:100%!important;
    overflow:visible!important;
    transform:none!important;
    gap:14px!important;
    padding-inline:0!important;
  }
  #mhp-root #workTrack>.portal,
  #mhp-root #expTrack>.exp-card{width:100%!important;min-width:0!important}
  #mhp-root #workSlider .studio-dots,
  #mhp-root #expSlider .studio-dots{display:none!important}

  #mhp-root #tools .tools-rail{
    grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;
  }
}

/* A newly-added item without an uploaded image never displays a broken asset. */
#mhp-root .mhp-generic-orbit,
#mhp-root .mhp-generic-tool{
  width:100%;height:100%;display:grid;place-items:center;border-radius:50%;
  font-family:Arial,sans-serif;font-weight:800;letter-spacing:.04em;
}
#mhp-root .mhp-generic-orbit{font-size:18px;color:#8e6a27;background:linear-gradient(145deg,#fff,#efe6d6)}
#mhp-root .mhp-generic-tool{font-size:16px;color:var(--gold2);background:linear-gradient(145deg,rgba(216,180,94,.12),rgba(255,255,255,.025));border:1px solid rgba(216,180,94,.18)}
body.light #mhp-root .mhp-generic-tool{color:#8b6322;background:#fffaf2}
#mhp-root .mhp-generic-exp{display:block;width:100%;height:100%;background:
  radial-gradient(circle at 32% 35%,rgba(216,180,94,.24),transparent 28%),
  linear-gradient(135deg,#161a20,#30343a 58%,#1b1e23)}
body.light #mhp-root .mhp-generic-exp{background:
  radial-gradient(circle at 32% 35%,rgba(165,117,36,.18),transparent 28%),
  linear-gradient(135deg,#eadfce,#f8f1e7 58%,#e8dcc9)}

/* Tablet/iPad gets its own intentional composition: same hierarchy as mobile,
   simply wider and more spacious, never a compressed desktop layout. */
@media(min-width:641px) and (max-width:960px){
  #mhp-root .hero{min-height:auto!important;padding:42px 0 58px!important}
  #mhp-root .hero-grid{
    grid-template-columns:1fr!important;
    width:min(100% - 34px,860px)!important;
    gap:4px!important;
    text-align:center!important;
    min-height:auto!important;
  }
  #mhp-root .stage{
    order:1!important;
    width:100%!important;
    height:clamp(500px,64vw,610px)!important;
    min-height:500px!important;
    transform:translateY(-24px)!important;
    margin-bottom:-22px!important;
  }
  #mhp-root .hero-copy{order:2!important;max-width:720px!important;margin-inline:auto!important;padding-top:0!important}
  #mhp-root .hero .desc,#mhp-root .hero .statement{margin-inline:auto!important}
  #mhp-root .hero .actions{justify-content:center!important}
  #mhp-root .ring{width:470px!important;height:470px!important}
  #mhp-root .ring2{width:548px!important;height:548px!important}
  #mhp-root .ring3{width:378px!important;height:378px!important}
  #mhp-root .suit-card{width:min(300px,42vw)!important;height:84%!important}
  #mhp-root .orbit-item{width:62px!important;height:62px!important;margin:-31px!important}
  #mhp-root .logo-disc{width:62px!important;height:62px!important}
  #mhp-root .logo-disc svg{width:38px!important;height:38px!important}
  #mhp-root .hero h1{font-size:clamp(60px,10vw,82px)!important}
  #mhp-root .hero .statement{font-size:clamp(25px,4.2vw,34px)!important}
  #mhp-root .hero .desc{max-width:640px!important}

  #mhp-root .section{padding-block:64px!important}
  #mhp-root .section-head{max-width:820px!important;margin-inline:auto!important}
  #mhp-root #tools .section-head{margin-bottom:32px!important}
  #mhp-root #tools .tool-detail{margin-top:20px!important}
}

/* Document/contact actions are visibly interactive on desktop and never fake. */
#mhp-root [hidden]{display:none!important}
@media(hover:hover) and (pointer:fine){
  #mhp-root .doc-action:hover{
    transform:translateY(-2px);
    border-color:rgba(216,180,94,.62);
    background:rgba(216,180,94,.075);
    box-shadow:0 10px 28px rgba(0,0,0,.12);
  }
  body.light #mhp-root .doc-action:hover{
    background:rgba(157,109,34,.09);
    border-color:rgba(157,109,34,.44);
    box-shadow:0 10px 25px rgba(96,65,25,.09);
  }
}
#mhp-root .doc-action:active{transform:translateY(0) scale(.975)!important}

/* PRINT / SAVE PDF: Version 7 hid the root that contained the printable CV.
   Keep only the root, then expose its dedicated A4 print document. */
@page{size:A4;margin:12mm}
@media print{
  html,body{background:#fff!important;color:#151515!important;overflow:visible!important}
  body.mhp-fullscreen-page>*,
  body.mhp-printing>*{display:none!important}
  body.mhp-fullscreen-page>#mhp-root,
  body.mhp-printing>#mhp-root{display:block!important;width:auto!important;min-height:0!important;isolation:auto!important}
  #mhp-root>*{display:none!important}
  #mhp-root>.print-cv{
    display:block!important;
    position:static!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    color:#151515!important;
    opacity:1!important;
    visibility:visible!important;
  }
  #mhp-root>.print-cv *{visibility:visible!important}
  #mhp-root>.print-cv img{max-width:100%!important}
}

/* Slightly tighter mobile spacing while preserving the already-approved layout. */
@media(max-width:640px){
  #mhp-root #tools .section-head{margin-bottom:28px!important}
  #mhp-root #tools .section-head .kicker{margin-bottom:10px!important}
  #mhp-root #tools .tool-detail{margin-top:16px!important}
}


/* Version 8.1 — keep the four approved contact methods visible even before
   their destinations are configured. Missing URLs are handled safely in JS. */
#mhp-root #contact .contact-link.is-unconfigured{opacity:1;filter:none;cursor:pointer}


/* ============================================================
   VERSION 9 — FINAL MICRO-ENHANCEMENTS ONLY.
   Keeps all approved V8.2 visuals intact.
   ============================================================ */
@media(max-width:640px){
  #mhp-root .footer-brand{
    font-size:clamp(21px,6.2vw,29px)!important;
    letter-spacing:.12em!important;
    max-width:92vw!important;
    white-space:nowrap!important;
  }
}
#mhp-root .mhp-header-progress{
  position:absolute;inset-inline:0;bottom:0;height:1.5px;
  background:linear-gradient(90deg,var(--gold),var(--gold2));
  transform:scaleX(0);transform-origin:right center;
  pointer-events:none;will-change:transform;
  box-shadow:0 0 10px rgba(216,180,94,.24);
}
#mhp-root .mhp-header-section{
  position:absolute;left:50%;bottom:3px;transform:translateX(-50%);
  max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:8.5px;line-height:1;letter-spacing:.04em;color:var(--gold2);
  opacity:.78;pointer-events:none;
}
#mhp-root .profile-mini{cursor:pointer;-webkit-tap-highlight-color:transparent}
#mhp-root .profile-mini:focus-visible{outline:1px solid var(--gold);outline-offset:3px}
@media(max-width:640px){#mhp-root .mhp-header-section{font-size:7.5px;max-width:34vw;bottom:3px}}
@media(prefers-reduced-motion:reduce){#mhp-root .mhp-header-progress{transition:none!important}}


/* ============================================================
   VERSION 10 — iPhone interaction stability only.
   Approved layout/design remains unchanged.
   ============================================================ */
/* Draw the discover arrow in CSS so iOS cannot render the Unicode glyph as a
   highlighted/missing-character square. */
#mhp-root #work-style .portal .open{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  -webkit-tap-highlight-color:transparent!important;
  outline:none!important;
}
#mhp-root #work-style .portal .open::after{
  content:"";display:inline-block;width:7px;height:7px;
  border-top:1.4px solid currentColor;border-right:1.4px solid currentColor;
  transform:rotate(-45deg);transform-origin:center;
  flex:0 0 auto;
}
#mhp-root #work-style .portal,
#mhp-root #work-style .portal *{
  -webkit-tap-highlight-color:transparent!important;
}
#mhp-root #work-style .portal:focus:not(:focus-visible){outline:none!important}

/* Transform-driven marquee: vertical page scroll stays native; only a gesture
   that starts on the rail can pause/drag the rail. */
#mhp-root .marquee-viewport{
  overflow:hidden!important;
  direction:ltr!important;
  touch-action:pan-y!important;
  overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:auto!important;
}
#mhp-root .marquee{
  transform:translate3d(0,0,0);
  will-change:transform!important;
  pointer-events:auto;
}
#mhp-root .marquee-group{direction:rtl!important}

/* On touch widths, the selected tool follows the chip nearest the viewport
   center while the visitor swipes the rail. */
@media(max-width:960px){
  #mhp-root #tools .tools-rail{
    scroll-snap-type:x proximity!important;
    -webkit-overflow-scrolling:touch!important;
  }
  #mhp-root #tools .tool-chip{scroll-snap-align:center!important}
}

/* ============================================================
   VERSION 11 — final cross-device motion + dynamic collections.
   These rules are deliberately scoped and only extend the approved design.
   ============================================================ */

/* The expertise marquee has exactly one transform owner. This final !important
   intentionally wins over historical V6/V8 rules such as transform:none!important. */
#mhp-root .marquee{
  transform:translate3d(var(--mhp-marquee-x,0px),0,0)!important;
  -webkit-transform:translate3d(var(--mhp-marquee-x,0px),0,0)!important;
  will-change:transform!important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
#mhp-root .marquee-viewport{
  overflow:hidden!important;
  touch-action:pan-y!important;
  -ms-touch-action:pan-y!important;
}

/* Header: progress line only, on every viewport. Section-name labels are removed. */
#mhp-root .mhp-header-section{display:none!important}
#mhp-root .mhp-header-progress{
  display:block!important;
  position:absolute!important;
  inset-inline:0!important;
  bottom:-1px!important;
  height:2px!important;
  z-index:4!important;
  transform:scaleX(0);
  transform-origin:right center!important;
  background:linear-gradient(90deg,var(--gold),var(--gold2))!important;
  box-shadow:0 0 9px rgba(216,180,94,.28)!important;
  pointer-events:none!important;
}

/* Count-aware desktop carousels for work/experience. With <=4 cards the approved
   four-card grid remains untouched. With >4, four cards stay visible and external
   controls advance one card at a time. */
#mhp-root .studio-desktop-nav{display:none}
@media(min-width:961px){
  #mhp-root .work-slider.is-desktop-carousel,
  #mhp-root .exp-slider.is-desktop-carousel{
    overflow:hidden!important;
    position:relative!important;
    padding-bottom:64px!important;
    direction:ltr!important;
  }
  #mhp-root .work-slider.is-desktop-carousel .studio-track,
  #mhp-root .exp-slider.is-desktop-carousel .studio-track{
    display:flex!important;
    flex-wrap:nowrap!important;
    grid-template-columns:none!important;
    grid-auto-flow:unset!important;
    width:max-content!important;
    max-width:none!important;
    overflow:visible!important;
    direction:rtl!important;
    gap:14px!important;
    padding:3px 0 16px!important;
    will-change:transform;
  }
  #mhp-root .work-slider.is-desktop-carousel .portal,
  #mhp-root .exp-slider.is-desktop-carousel .exp-card{
    flex:0 0 var(--mhp-studio-card-w)!important;
    width:var(--mhp-studio-card-w)!important;
    min-width:var(--mhp-studio-card-w)!important;
    max-width:var(--mhp-studio-card-w)!important;
  }
  #mhp-root .work-slider.is-desktop-carousel .studio-dots,
  #mhp-root .exp-slider.is-desktop-carousel .studio-dots{display:none!important}
  #mhp-root .work-slider.is-desktop-carousel .studio-desktop-nav,
  #mhp-root .exp-slider.is-desktop-carousel .studio-desktop-nav{
    display:flex!important;
    position:absolute;
    inset:auto 0 10px;
    align-items:center;
    justify-content:center;
    gap:14px;
    direction:ltr;
  }
  #mhp-root .studio-nav-btn{
    width:38px;height:38px;border-radius:50%;
    border:1px solid rgba(216,180,94,.32);
    background:rgba(255,255,255,.025);
    color:var(--gold2);
    display:grid;place-items:center;
    font-size:18px;line-height:1;
    cursor:pointer;
    transition:transform .18s ease,border-color .18s ease,background .18s ease,opacity .18s ease;
    -webkit-tap-highlight-color:transparent;
  }
  #mhp-root .studio-nav-btn:hover:not(:disabled){transform:scale(1.06);border-color:rgba(216,180,94,.72);background:rgba(216,180,94,.07)}
  #mhp-root .studio-nav-btn:active:not(:disabled){transform:scale(.95)}
  #mhp-root .studio-nav-btn:disabled{opacity:.28;cursor:default}
  body.light #mhp-root .studio-nav-btn{background:rgba(255,250,242,.72);color:#8a6420;border-color:rgba(154,111,31,.24)}
  #mhp-root .studio-nav-progress{
    width:min(180px,22vw);height:2px;border-radius:99px;overflow:hidden;
    background:rgba(255,255,255,.08);direction:ltr;
  }
  body.light #mhp-root .studio-nav-progress{background:rgba(30,24,17,.08)}
  #mhp-root .studio-nav-progress>span{
    display:block;height:100%;width:100%;
    background:linear-gradient(90deg,var(--gold),var(--gold2));
    transform-origin:left center;
    transition:transform .42s cubic-bezier(.22,.78,.22,1),width .25s ease;
  }
}

/* Many touch dots stay tidy instead of overflowing when the admin adds cards. */
@media(max-width:960px){
  #mhp-root .studio-dots{max-width:90%;margin-inline:auto;flex-wrap:wrap;row-gap:6px}
}

/* Keep certificate controls visually outside the certificate image itself. */
#mhp-root .cert-mag{display:flex;flex-direction:column}
#mhp-root .cert-stage{order:1}
#mhp-root .cert-meta{order:2}
#mhp-root .cert-nav{order:3}
@media(min-width:961px){
  #mhp-root .cert-nav{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    margin-top:18px!important;
    display:flex!important;
    justify-content:center!important;
    gap:14px!important;
    pointer-events:auto!important;
  }
}


/* ============================================================
   VERSION 12 — certificate desktop arrows restored + header MH tap polish.
   Only the two requested refinements are applied here.
   ============================================================ */

/* Restore certificate navigation to the approved V10 desktop position:
   arrows float at the left/right edges of the certificate showcase. */
#mhp-root .cert-mag{
  display:block!important;
  position:relative!important;
}
@media(min-width:961px){
  #mhp-root .cert-nav{
    display:flex!important;
    position:absolute!important;
    top:50%!important;
    left:14px!important;
    right:14px!important;
    bottom:auto!important;
    transform:translateY(-50%)!important;
    margin-top:0!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:0!important;
    z-index:25!important;
    pointer-events:none!important;
  }
  #mhp-root .cert-nav-btn{
    pointer-events:auto!important;
    width:46px!important;
    height:46px!important;
    border-radius:50%!important;
    border:1px solid rgba(216,180,94,.42)!important;
    background:rgba(10,12,16,.78)!important;
    color:var(--gold2)!important;
    display:grid!important;
    place-items:center!important;
    font-size:22px!important;
    line-height:1!important;
    cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
    transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
  }
  #mhp-root .cert-nav-btn:hover{transform:scale(1.05);border-color:rgba(216,180,94,.72)!important}
  #mhp-root .cert-nav-btn:active{transform:scale(.96)}
  body.light #mhp-root .cert-nav-btn{
    background:rgba(255,250,242,.92)!important;
    color:#8c6421!important;
    box-shadow:0 10px 26px rgba(82,57,24,.10)!important;
  }
}

/* MH behaves like the profile portrait: smooth return to the hero with no
   browser-blue tap/focus flash on touch devices. */
#mhp-root .monogram{
  cursor:pointer!important;
  color:inherit!important;
  text-decoration:none!important;
  -webkit-tap-highlight-color:transparent!important;
  -webkit-touch-callout:none!important;
  -webkit-user-select:none!important;
  user-select:none!important;
  touch-action:manipulation!important;
}
#mhp-root .monogram:focus:not(:focus-visible){outline:none!important}
#mhp-root .monogram:focus-visible{outline:1px solid var(--gold)!important;outline-offset:3px!important}


/* ============================================================
   VERSION 13 — certificate issuer trust layer.
   The approved certificate carousel/geometry/navigation is untouched.
   ============================================================ */
#mhp-root .cert-issuer-block{display:grid;justify-items:center;gap:7px;margin:0 auto 12px}
#mhp-root .cert-issuer-block[hidden]{display:none!important}
#mhp-root .cert-issuer-prefix{font-size:9px;line-height:1;text-transform:none;letter-spacing:.12em;color:var(--gold);font-weight:700}
#mhp-root .cert-issuer-line{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;min-height:34px}
#mhp-root .cert-issuer-logo{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;overflow:hidden;
  border:1px solid rgba(216,180,94,.24);background:rgba(255,255,255,.055);
  color:var(--gold2);font-size:13px;font-weight:700;line-height:1;
}
#mhp-root .cert-issuer-logo img{width:76%;height:76%;object-fit:contain;display:block}
#mhp-root .cert-issuer-logo.is-fallback{font-family:var(--serif)}
#mhp-root .cert-issuer-name{font-family:inherit!important;font-size:13px!important;line-height:1.3!important;font-weight:700!important;color:var(--ink)!important}
#mhp-root .cert-issuer-flag{font-size:16px;line-height:1}
#mhp-root .cert-issuer-country{font-size:10px;color:var(--muted)}
#mhp-root .cert-verify{font-size:10px;color:var(--gold2);text-decoration:none;border-bottom:1px solid rgba(216,180,94,.28);padding-bottom:2px;white-space:nowrap;-webkit-tap-highlight-color:transparent}
#mhp-root .cert-verify:hover{border-bottom-color:currentColor}
body.light #mhp-root .cert-issuer-logo{background:rgba(255,252,247,.72);border-color:rgba(146,103,32,.20)}

@media(max-width:960px){
}
@media(max-width:640px){
  #mhp-root .cert-issuer-block{margin-bottom:10px;gap:6px}
  #mhp-root .cert-issuer-prefix{font-size:8px}
  #mhp-root .cert-issuer-logo{width:29px;height:29px}
  #mhp-root .cert-issuer-name{font-size:12px!important}
  #mhp-root .cert-issuer-country,#mhp-root .cert-verify{font-size:9px}
}

@media print{
  #mhp-root .print-cert em{display:block;margin:2px 0 3px;font-style:normal;font-size:8.5pt;color:#70521f}
}

/* ============================================================
   VERSION 14 — final approved content polish + tools loop +
   active certificate issuer centering. No approved section
   geometry outside these components is changed.
   ============================================================ */

/* Work modal: optional explanatory copy under each approved step. */
#mhp-root .process-step em{
  display:block;margin-top:7px;color:var(--muted);font-style:normal;
  font-size:10px;line-height:1.7;font-weight:400;
}
@media(max-width:640px){
  #mhp-root .process-step em{grid-column:2;margin-top:3px}
}

/* Experience modal keeps the same sheet, with a compact evidence list. */
#mhp-root .exp-modal-role{
  margin:7px 0 4px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.02em;
}
#mhp-root .exp-highlights{
  margin-top:20px;padding-top:17px;border-top:1px solid var(--line);
}
#mhp-root .exp-highlights>small{
  display:block;margin-bottom:10px;color:var(--gold);font-size:10px;font-weight:700;
}
#mhp-root .exp-highlights ul{
  margin:0;padding:0 18px 0 0;display:grid;gap:7px;color:var(--muted);
}
#mhp-root .exp-highlights li{font-size:11px;line-height:1.8;padding-inline-start:3px}
#mhp-root .exp-highlights li::marker{color:var(--gold2)}

/* Tools: one manual circular rail on phone, tablet and desktop.
   JavaScript creates visual cycles; the visitor remains in control. */
#mhp-root #tools .tools-showcase{width:100%!important;overflow:hidden!important}
#mhp-root #tools .tools-rail{
  display:flex!important;grid-template-columns:none!important;grid-auto-flow:initial!important;
  align-items:center!important;justify-content:flex-start!important;
  width:100%!important;max-width:none!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  gap:clamp(12px,1.5vw,18px)!important;
  padding:14px 18px 24px!important;margin-inline:0!important;
  direction:ltr!important;scroll-snap-type:x proximity!important;
  scroll-behavior:auto;scrollbar-width:none!important;-ms-overflow-style:none!important;
  overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;
  touch-action:pan-x pan-y!important;cursor:grab;
}
#mhp-root #tools .tools-rail::-webkit-scrollbar{display:none!important}
#mhp-root #tools .tools-rail.is-dragging{cursor:grabbing;scroll-snap-type:none!important;user-select:none!important;-webkit-user-select:none!important}
#mhp-root #tools .tool-chip{
  flex:0 0 92px!important;width:92px!important;min-width:92px!important;
  scroll-snap-align:center!important;direction:rtl!important;
}
#mhp-root #tools .mhp-tool-clone{pointer-events:auto}
@media(min-width:961px){
  #mhp-root #tools .tool-chip{flex-basis:clamp(92px,8vw,108px)!important;width:clamp(92px,8vw,108px)!important;min-width:92px!important}
}
@media(min-width:641px) and (max-width:960px){
  #mhp-root #tools .tools-rail{gap:16px!important;padding-inline:20px!important}
  #mhp-root #tools .tool-chip{flex:0 0 116px!important;width:116px!important;min-width:116px!important}
}
@media(max-width:640px){
  #mhp-root #tools .tools-rail{gap:14px!important;padding-inline:16px!important}
  #mhp-root #tools .tool-chip{flex:0 0 84px!important;width:84px!important;min-width:84px!important}
}

/* The active certificate's issuer identity belongs to that certificate:
   center it above the current sheet on every viewport. */
#mhp-root #certificates>.wrap>.cert-issuer-block{
  width:100%;margin:0 auto 9px!important;padding-inline:12px;
  justify-items:center!important;text-align:center!important;
}
#mhp-root #certificates>.wrap>.cert-issuer-block .cert-issuer-line{
  width:100%;justify-content:center!important;text-align:center!important;
}
@media(max-width:960px){
    #mhp-root #certificates>.wrap>.cert-issuer-block{margin-bottom:7px!important;padding-inline:8px}
}


/* ============================================================
   VERSION 15 — cross-device interaction and tablet polish.
   Only the explicitly requested theme-toggle, tablet hero,
   experience-card and certificate fixes are applied here.
   ============================================================ */

/* Prevent browser blue tap/focus/text-selection flashes on the fixed theme
   control while retaining a keyboard-only accessibility outline. */
#mhp-root .theme-btn,
#mhp-root .theme-btn *{
  -webkit-tap-highlight-color:transparent!important;
  -webkit-touch-callout:none!important;
  -webkit-user-select:none!important;
  user-select:none!important;
}
#mhp-root .theme-btn{
  outline:none!important;
  touch-action:manipulation!important;
}
#mhp-root .theme-btn .theme-option{pointer-events:none!important}
#mhp-root .theme-btn:focus:not(:focus-visible){outline:none!important}
#mhp-root .theme-btn:focus-visible{outline:1px solid var(--gold)!important;outline-offset:3px!important}

/* Tablet/iPad: give the name a little breathing room below the portrait and
   let experience cards/images breathe instead of looking compressed. */
@media(min-width:641px) and (max-width:960px){
  #mhp-root .hero-copy{margin-top:14px!important}

  #mhp-root #experience .studio-track>.exp-card{
    flex:0 0 min(84vw,680px)!important;
    width:min(84vw,680px)!important;
  }
  #mhp-root #experience .exp-card .thumb.exp-thumb{
    height:clamp(210px,29vw,260px)!important;
  }
}

/* Issuer rail must never trap vertical page scrolling. Horizontal browsing
   remains native, but a vertical finger movement always belongs to the page. */
#mhp-root .cert-issuer-block,
#mhp-root .cert-issuer-line,
#mhp-root .cert-issuer-logo,
#mhp-root .cert-issuer-name,
#mhp-root .cert-issuer-flag,
#mhp-root .cert-issuer-country{
  touch-action:pan-y!important;
}

/* The active certificate identity reads as one sentence:
   "صادرة عن [logo] جهة ..." and stays centered on every device. */
#mhp-root #certificates>.wrap>.cert-issuer-block{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  column-gap:8px!important;
  row-gap:6px!important;
  width:100%!important;
  text-align:center!important;
  margin:0 auto 14px!important;
  padding-inline:12px!important;
}
#mhp-root #certificates>.wrap>.cert-issuer-block[hidden]{display:none!important}
#mhp-root #certificates>.wrap>.cert-issuer-block .cert-issuer-prefix{
  flex:0 0 auto!important;
  margin:0!important;
  letter-spacing:.06em!important;
  line-height:32px!important;
}
#mhp-root #certificates>.wrap>.cert-issuer-block .cert-issuer-line{
  display:flex!important;
  width:auto!important;
  min-width:0!important;
  min-height:32px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  text-align:center!important;
}

/* Tablet/iPad certificate geometry: the sheet receives enough vertical room,
   and its title/description no longer sit against the bottom edge. */
@media(min-width:641px) and (max-width:960px){
  #mhp-root #certificates>.wrap>.cert-issuer-block{margin-bottom:16px!important}
  #mhp-root #certificates .cert-stage{
    height:clamp(410px,54vw,500px)!important;
    margin-inline:-10px!important;
  }
  #mhp-root #certificates .cert-sheet{
    width:min(72vw,580px)!important;
  }
  #mhp-root #certificates .cert-meta{
    margin-top:22px!important;
    padding-inline:18px!important;
  }
  #mhp-root #certificates .cert-meta-copy{gap:9px!important}
  #mhp-root #certificates .cert-meta-copy strong{line-height:1.3!important}
  #mhp-root #certificates .cert-meta-copy small{line-height:1.85!important}
}

@media(max-width:640px){
  #mhp-root #certificates>.wrap>.cert-issuer-block{
    margin-bottom:12px!important;
    column-gap:6px!important;
    padding-inline:8px!important;
  }
  #mhp-root #certificates>.wrap>.cert-issuer-block .cert-issuer-prefix{line-height:29px!important}
}


/* ============================================================
   VERSION 16 — momentum-safe tools loop + certificate cleanup.
   The removed global issuer strip has no visual footprint; only the
   active certificate's own issuer identity remains.
   ============================================================ */
#mhp-root #tools .tools-rail{
  scroll-behavior:auto!important;
  -webkit-overflow-scrolling:touch!important;
}


/* ============================================================
   VERSION 17 — intrinsic certificate geometry + adaptive issuer logos.
   Each certificate frame follows its own image aspect ratio, eliminating
   contain-bars without cropping or stretching the certificate artwork.
   ============================================================ */
#mhp-root #certificates .cert-sheet{
  aspect-ratio:var(--mhp-cert-ratio,1.414/1)!important;
}
#mhp-root #certificates .cert-frame img.mhp-cert-image{
  width:100%!important;
  height:100%!important;
  object-fit:fill!important;
  object-position:center!important;
  background:transparent!important;
}
/* The ratio is synced from the image's intrinsic dimensions in JS, so fill
   does not distort the artwork; it simply removes the old fixed-ratio bars. */

/* Issuer mark contrast: dark mode gets a clean light badge behind the actual
   logo only. Light mode stays quiet and natural. */
#mhp-root #certificates .cert-issuer-logo:not([hidden]){
  background:#fff!important;
  border-color:rgba(216,180,94,.30)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.18)!important;
  padding:3px!important;
}
#mhp-root #certificates .cert-issuer-logo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
body.light #mhp-root #certificates .cert-issuer-logo:not([hidden]){
  background:rgba(255,255,255,.74)!important;
  border-color:rgba(146,103,32,.18)!important;
  box-shadow:none!important;
}


/* ============================================================
   VERSION 18 — certificate paint isolation + compact A4 gallery.
   Scoped to #mhp-root / print only so no host theme, Elementor or
   unrelated plugin component can inherit these rules.
   ============================================================ */

/* The caption sits above all transformed certificate layers. On touch devices,
   isolating its paint layer prevents Safari/WebKit from leaving tiny stale
   glyph fragments around the title/description after certificate transforms. */
@media(max-width:960px){
  #mhp-root #certificates .cert-meta{
    position:relative!important;
    z-index:40!important;
    isolation:isolate!important;
  }
  #mhp-root #certificates .cert-meta-copy{
    position:relative!important;
    z-index:1!important;
    max-width:100%!important;
    overflow:hidden!important;
    contain:paint!important;
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
  }
  #mhp-root #certificates .cert-meta-copy>strong,
  #mhp-root #certificates .cert-meta-copy>small{
    position:relative!important;
    display:block!important;
    max-width:100%!important;
    margin-inline:auto!important;
    transform:none!important;
    filter:none!important;
    text-shadow:none!important;
  }
  #mhp-root #certificates .cert-meta-copy>strong::before,
  #mhp-root #certificates .cert-meta-copy>strong::after,
  #mhp-root #certificates .cert-meta-copy>small::before,
  #mhp-root #certificates .cert-meta-copy>small::after{
    content:none!important;
    display:none!important;
  }
  #mhp-root #certificates .cert-sheet{will-change:auto!important}
}

/* Print/PDF: keep the approved CV above intact, then give certificates the
   full printable width. Five current certificates render as 3 + 2 centered,
   with artwork + short title only and no long description/issuer paragraph. */
@media print{
  #mhp-root .print-two{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:3mm!important;
    margin-top:3mm!important;
  }
  #mhp-root #printCertificatesWrap{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  #mhp-root #printCertificatesHeading{
    margin:0 0 2mm!important;
  }
  #mhp-root .print-cert-list{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    align-items:flex-start!important;
    gap:3mm 4mm!important;
    width:100%!important;
    margin-top:1mm!important;
  }
  #mhp-root .print-cert{
    flex:0 0 calc((100% - 8mm)/3)!important;
    width:calc((100% - 8mm)/3)!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    display:block!important;
    text-align:center!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  #mhp-root .print-cert.with-image{
    display:block!important;
  }
  #mhp-root .print-cert img{
    display:block!important;
    width:100%!important;
    height:32mm!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0 auto!important;
    padding:0!important;
    background:#fff!important;
    border:.35pt solid #d8c9ad!important;
    border-radius:1.2mm!important;
  }
  #mhp-root .print-cert figcaption{
    display:block!important;
    margin-top:1.1mm!important;
    min-height:4mm!important;
    color:#222!important;
    font-size:8.1pt!important;
    line-height:1.25!important;
    font-weight:700!important;
    text-align:center!important;
  }
  #mhp-root .print-cert:not(.with-image) figcaption{
    padding:5mm 2mm!important;
    border:.35pt solid #d8c9ad!important;
    border-radius:1.2mm!important;
  }
  #mhp-root .print-foot{margin-top:4mm!important}
}

/* ============================================================
   VERSION 20 — final interaction + resilience hardening.
   Scoped only to the standalone portfolio. No host/theme CSS.
   ============================================================ */

/* The document itself never pans sideways. Horizontal motion remains available
   inside the dedicated rails/carousels. `hidden` is the broad fallback; `clip`
   avoids creating a horizontal scroll container in modern Safari/Chromium. */
@media screen{
  html,body.mhp-fullscreen-page{
    width:100%!important;max-width:100%!important;overflow-x:hidden!important;
    overscroll-behavior-x:none;
  }
  @supports (overflow:clip){
    html,body.mhp-fullscreen-page{overflow-x:clip!important}
    #mhp-root{overflow-x:clip!important}
  }
  #mhp-root{width:100%!important;max-width:100%!important;overflow-x:hidden}
}

/* Fail-safe reveal: content is visible by default. The tiny inline boot marker
   enables the fade only while the frontend controller is alive. If JS is ever
   blocked/stale, the marker times out and all content remains readable. */
#mhp-root .reveal{opacity:1!important;transform:none!important}
html.mhp-js #mhp-root .reveal{opacity:0!important;transform:none!important;transition:opacity .34s ease!important}
html.mhp-js #mhp-root .reveal.show{opacity:1!important}
html:not(.mhp-js) #mhp-root .reveal{opacity:1!important}

/* Tools in dark mode: transparent uploaded logos sit on a warm ivory disc so
   every brand remains legible without baking backgrounds into the media files. */
body:not(.light) #mhp-root #tools .tool-orb{
  background:linear-gradient(145deg,#fffaf1 0%,#eee4d5 100%)!important;
  border-color:rgba(216,180,94,.34)!important;
  box-shadow:0 11px 26px rgba(0,0,0,.22),inset 0 0 0 1px rgba(112,80,29,.045)!important;
}
body:not(.light) #mhp-root #tools .tool-chip.active .tool-orb{
  background:linear-gradient(145deg,#fffdf8 0%,#f1e5d1 100%)!important;
  border-color:rgba(216,180,94,.78)!important;
  box-shadow:0 15px 34px rgba(0,0,0,.25),0 0 0 1px rgba(216,180,94,.14),0 0 24px rgba(216,180,94,.08)!important;
}
body:not(.light) #mhp-root #tools .mhp-generic-tool{
  color:#7b5720!important;background:transparent!important;border:0!important;
}
#mhp-root #tools .mhp-tool-img{filter:none!important}

/* Certificate gesture engine: vertical page scrolling stays native; only a
   confirmed horizontal gesture is intercepted by JavaScript. Heavy paint work
   is disabled while the finger is down, then restored after settling. */
#mhp-root #certificates .cert-stage{
  touch-action:pan-y!important;overscroll-behavior-x:contain!important;
}
#mhp-root #certificates .cert-stage.is-dragging .cert-sheet{
  will-change:transform,opacity!important;
}
#mhp-root #certificates .cert-stage:not(.is-dragging) .cert-sheet{
  will-change:auto!important;
}
#mhp-root #certificates .cert-stage.is-dragging .cert-sheet .cert-paper{
  filter:none!important;
}
#mhp-root #certificates .cert-sheet{
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
}

@media(prefers-reduced-motion:reduce){
  html.mhp-js #mhp-root .reveal{transition:none!important}
}


/* ============================================================
   VERSION 21 — hero quick CV action.
   Keeps the approved secondary-button appearance; only adds a
   compact download cue and responsive-safe text handling.
   ============================================================ */
#mhp-root .hero .actions .cv-quick{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  white-space:nowrap;max-width:100%;
}
#mhp-root .hero .actions .cv-quick svg{
  width:14px;height:14px;flex:0 0 auto;color:var(--gold2);
}
#mhp-root .hero .actions .cv-quick.is-unconfigured{opacity:.72}
@media(max-width:640px){
  #mhp-root .hero .actions{gap:8px!important}
  #mhp-root .hero .actions .btn{padding:11px 14px!important;font-size:11.5px!important}
  #mhp-root .hero .actions .cv-quick{gap:6px!important}
  #mhp-root .hero .actions .cv-quick svg{width:13px;height:13px}
}
@media(max-width:360px){
  #mhp-root .hero .actions .btn{padding-inline:12px!important;font-size:11px!important}
}
