/* Real-site mockups replacing the abstract 3D models */
.sc.mk{--sc-bg:linear-gradient(160deg,#F6EFE5,#E4D5C3);background:var(--sc-bg)}
.sc.mk.dk{--sc-bg:radial-gradient(120% 90% at 50% 0%,#5B1722,#2a0d12 60%,#171011)}
.sc.mk.tn{--sc-bg:linear-gradient(160deg,#E9B08C,#C9764F)}
.sc.mk::before,.sc.mk::after{display:none}
.bf{position:absolute;left:var(--x);top:var(--y);width:var(--w);background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 24px 50px -18px rgba(23,16,17,.55),0 0 0 1px rgba(23,16,17,.12)}
.bf-bar{display:flex;align-items:center;gap:5px;padding:7px 10px;background:#EFE8DE;border-bottom:1px solid rgba(23,16,17,.1)}
.bf-bar i{width:7px;height:7px;border-radius:50%;background:#cbbfb0}
.bf-bar span{margin-left:8px;flex:1;max-width:70%;font:500 clamp(.5rem,1.1vw,.68rem)/1 var(--sans);color:#6b5d57;background:#fff;border-radius:20px;padding:4px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bf-body{position:relative;aspect-ratio:var(--ar,16/10);overflow:hidden;background:#fff}
.bf-body img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.ph{position:absolute;left:var(--x);top:var(--y);width:var(--w);border-radius:18px;overflow:hidden;background:#171011;padding:5px;box-shadow:0 24px 50px -18px rgba(0,0,0,.6)}
.ph .bf-body{border-radius:14px;aspect-ratio:var(--ar,9/17)}
/* wireframe */
.wf{position:absolute;inset:0;padding:6%;display:flex;flex-direction:column;gap:5%;background:#fff}.wf>*{flex:none}
.wf b{display:block;background:#E3DCD2;border-radius:3px;height:100%}
.wf .r1{display:flex;justify-content:space-between;align-items:center;height:7%}
.wf .r1 b{width:18%;height:100%}.wf .r1 u{width:40%;height:50%;background:repeating-linear-gradient(90deg,#E3DCD2 0 22%,#fff 22% 30%)}
.wf .hero{height:34%;display:grid;grid-template-columns:1.2fr 1fr;gap:5%}
.wf .hero div{display:grid;gap:12%;align-content:center}.wf .hero div b{height:10px}.wf .hero div b:first-child{height:16px;width:90%}.wf .hero div b:last-child{width:40%;background:#D68E68}
.wf .hero>b{background:repeating-linear-gradient(45deg,#E3DCD2 0 8px,#EDE6DB 8px 16px)}
.wf .cols{height:26%;display:grid;grid-template-columns:repeat(3,1fr);gap:5%}
.wf .note{position:absolute;right:5%;bottom:6%;font:600 clamp(.5rem,1vw,.64rem)/1.2 var(--sans);background:#EDB899;color:#3A0E15;padding:.5em .7em;border-radius:4px;transform:rotate(3deg);box-shadow:0 6px 12px -6px rgba(0,0,0,.4)}
.map{position:absolute;left:8%;right:8%;bottom:7%;display:flex;justify-content:space-between;gap:6px}
.map span{flex:1;text-align:center;font:600 clamp(.5rem,1vw,.66rem)/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#F6EFE5;background:#5B1722;padding:.7em .2em;border-radius:4px;position:relative}
.map span::before{content:"";position:absolute;left:50%;bottom:100%;height:10px;border-left:1px dashed #5B1722}
/* style tile */
.st{position:absolute;inset:0;padding:7%;background:#F6EFE5;display:grid;align-content:center;gap:9%}
.st h4{font:500 clamp(2.2rem,6vw,3.6rem)/1 var(--serif);color:#5B1722;margin:0}
.st h4 small{font:600 clamp(.5rem,1vw,.66rem)/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#6b5d57;margin-left:.8em}
.st .sw{display:flex;gap:6px}.st .sw i{flex:1;aspect-ratio:1;border-radius:50%}
.st .bt{display:flex;gap:8px}.st .bt em{font:600 clamp(.5rem,1vw,.66rem)/1 var(--sans);font-style:normal;padding:.9em 1.3em;border-radius:30px;background:#5B1722;color:#F6EFE5}.st .bt em+em{background:none;color:#5B1722;border:1px solid #5B1722}
.st .ln{display:grid;gap:6px}.st .ln b{display:block;height:6px;border-radius:3px;background:#D8CBBB}.st .ln b:nth-child(2){width:80%}.st .ln b:nth-child(3){width:55%}

/* Portfolio phone stages (homepage) */
.pf .sc.mk{background:radial-gradient(70% 70% at 50% 45%,rgba(255,255,255,.14),rgba(255,255,255,0) 70%)}
.pf--light .sc.mk{background:radial-gradient(70% 70% at 50% 45%,rgba(255,255,255,.55),rgba(255,255,255,0) 70%)}
.pf .sc.mk .ph{display:block;transition:transform .35s ease;box-shadow:0 34px 60px -24px rgba(0,0,0,.65)}
.pf .sc.mk:hover .ph{transform:translateY(-6px)}
@media(max-width:900px){.pf .sc.mk{aspect-ratio:4/3.6}}
@media(prefers-reduced-motion:reduce){.pf .sc.mk .ph{transition:none}}

/* Homepage hero */
.hero-mk{position:relative;min-width:0;aspect-ratio:7/6;border-radius:26px;overflow:hidden;background:radial-gradient(120% 90% at 50% 0%,#6e2230 0%,#3A0E15 55%,#240609 100%);box-shadow:0 40px 80px -40px rgba(58,14,21,.7);perspective:1400px}
.hero-mk .bf,.hero-mk .ph{display:block;transition:transform .35s ease}
.hero-mk .bf:hover,.hero-mk .ph:hover{transform:translateY(-5px)}
@media(max-width:820px){.hero-mk{aspect-ratio:1/.95}}
@media(prefers-reduced-motion:reduce){.hero-mk .bf,.hero-mk .ph{transition:none}}
/* Subtle 3D tilt on the static duo */
.hero-mk .lp{transform:rotateY(-6deg) rotateX(2deg);transform-origin:0% 50%;transition:transform .35s ease}
.hero-mk .hero-ph{transform:rotateY(7deg) rotateX(-2deg);transform-origin:100% 50%;transition:transform .35s ease}
.hero-mk .lp:hover{transform:rotateY(-3deg) rotateX(1deg) translateY(-4px)}
.hero-mk .hero-ph:hover{transform:rotateY(4deg) rotateX(-1deg) translateY(-5px)}
@media(max-width:820px){.hero-mk .lp{transform:rotateY(-3deg) rotateX(1deg)}.hero-mk .hero-ph{transform:rotateY(3deg) rotateX(-1deg)}}
@media(prefers-reduced-motion:reduce){.hero-mk .lp,.hero-mk .hero-ph{transition:none}}
.bf,.ph{text-decoration:none;color:inherit}

/* Laptop + phone duo (hero) */
.hero-mk .lp{position:absolute;left:5%;top:24%;width:76%;display:block}
.lp-lid{background:#17100f;border-radius:14px 14px 3px 3px;padding:2.4% 2.4% 3.4%;box-shadow:inset 0 0 0 1.5px #3a2c2b,0 34px 50px -26px #000}
.lp-scr{position:relative;aspect-ratio:16/8.4;overflow:hidden;border-radius:4px;background:#0B1730}
.lp-scr img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% top;display:block}
.lp-base{position:relative;height:clamp(9px,1.6vw,16px);margin:0 -5%;background:linear-gradient(#ece2d6,#a79a8c);border-radius:0 0 20px 20px;box-shadow:0 20px 28px -12px rgba(0,0,0,.65)}
.lp-base::after{content:"";position:absolute;left:41%;width:18%;top:0;height:38%;background:#8d8173;border-radius:0 0 8px 8px}
.hero-mk .hero-ph{left:67%;top:44%;width:26%;z-index:2}

/* Hero: 3D laptop + phone when WebGL is live, the HTML duo until then or if it never loads */
.hero-has-fb::before,.hero-has-fb::after{display:none}
.hero-has-fb{min-width:0}
.hero-has-fb>.hero-fb{position:absolute;inset:0;aspect-ratio:auto;border-radius:inherit;transition:opacity .8s ease}
.hero-has-fb.sc-live>.hero-fb,.hero-has-fb.is-ready>.hero-fb{opacity:0;pointer-events:none;visibility:hidden;transition:opacity .8s ease,visibility 0s .8s}
.hero-has-fb.is-3d .hero-gl{z-index:1}
.hero-has-fb{border-radius:26px;overflow:hidden}
