/* ==========================================================================
   Mockups: brand applications drawn in pure CSS, themed per project
   ========================================================================== */
.mk {
  margin: 0; position: relative; border-radius: 28px; overflow: hidden; min-height: 440px;
  display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px) 64px;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
  isolation: isolate;
}
.mk > figcaption { position: absolute; left: 22px; bottom: 18px; font-size: 13px; color: var(--muted); }
.mk--wide { grid-column: 1 / -1; }
.mk--full { grid-column: 1 / -1; padding: 0; min-height: 320px; }
.mk .logo, .mk .wordmark { max-width: 100%; }
.mk .wordmark { font-size: 1.6em; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr !important; } .mk { min-height: 360px; } }

/* ---------- Business cards ---------- */
.mk-cards { perspective: 1400px; }
.mk-cards .bcard {
  width: min(78%, 380px); aspect-ratio: 1.75; border-radius: 12px; position: absolute; left: 50%; top: 50%;
  box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .15);
  transition: transform 1s var(--ease);
}
.bcard--front { background-color: var(--b1); background-size: 56px 56px; transform: translate(-58%, -72%) rotate(-8deg); display: grid; place-items: center; z-index: 2; }
.bcard--back { background: var(--b-paper); transform: translate(-40%, -28%) rotate(6deg); padding: 7%; display: grid; grid-template-rows: auto 1fr auto; color: var(--b-ink); font-size: 12px; }
.mk-cards:hover .bcard--front { transform: translate(-50%, -96%) rotate(-3deg) translateZ(40px); }
.mk-cards:hover .bcard--back { transform: translate(-50%, -6%) rotate(2deg); }
.bcard__logo { max-width: 48%; max-height: 38%; width: auto; object-fit: contain; }
.bcard--front .wordmark { color: var(--b-on1); font-size: clamp(24px, 3vw, 40px); }
.bcard__top { display: flex; justify-content: space-between; align-items: start; }
.bcard__mini { max-height: 30px; max-width: 46%; width: auto; }
.bcard__top .wordmark { font-size: 18px; color: var(--b1); }
.bcard__motif { width: 26px; color: var(--b2); }
.bcard__who { align-self: end; display: grid; }
.bcard__who strong { font-family: var(--b-fd), var(--font); font-size: 18px; letter-spacing: -.01em; }
.bcard__who span { opacity: .65; }
.bcard__contact { display: grid; gap: 1px; margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--b2); font-size: 10.5px; opacity: .85; }

/* ---------- Browser ---------- */
.mk-browser { padding-bottom: 70px; min-height: 0; }
.bw { width: 100%; max-width: 1100px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06); }
.bw__bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f1f1f1; border-bottom: 1px solid #e3e3e3; }
.bw__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.bw__bar i:nth-child(2) { background: #febc2e; } .bw__bar i:nth-child(3) { background: #28c840; }
.bw__url { margin: 0 auto; background: #fff; border-radius: 8px; padding: 4px 40px; font-size: 12px; color: #666; font-family: var(--font); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw__page { background: var(--b-paper); color: var(--b-ink); font-family: var(--b-fb), var(--font); }
.bw__nav { display: flex; align-items: center; gap: 24px; padding: 16px 28px; }
.bw__logo { max-height: 30px; max-width: 140px; width: auto; }
.bw__nav .wordmark { font-size: 20px; color: var(--b1); }
.bw__links { display: flex; gap: 20px; margin-left: auto; font-size: 13px; opacity: .75; }
.bw__btn { background: var(--b2); color: var(--b-on2); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.bw__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 30px 28px 34px; align-items: center; }
.bw__kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--b2); font-weight: 600; }
.bw__copy h4 { margin: 12px 0; font-family: var(--b-fd), var(--font); font-size: clamp(28px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.025em; color: var(--b1); }
.bw__copy p { margin: 0 0 20px; font-size: 15px; opacity: .75; max-width: 28em; }
.bw__cta { display: inline-block; background: var(--b1); color: var(--b-on1); font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 10px; }
.bw__visual { aspect-ratio: 1.1; border-radius: 20px 80px 20px 20px; background-color: var(--b1); background-size: 48px 48px; display: grid; place-items: center; position: relative; overflow: hidden; }
.bw__visual::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--b2); right: -18%; bottom: -22%; opacity: .9; }
.bw__motif { width: 40%; color: var(--b3); position: relative; animation: float 4s ease-in-out infinite alternate; }
.bw__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 28px 28px; }
.bw__row span { height: 70px; border-radius: 12px; background: color-mix(in srgb, var(--b1) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b1) 12%, transparent); }
@media (max-width: 640px) { .bw__links, .bw__btn { display: none; } .bw__hero { grid-template-columns: 1fr; } .bw__visual { display: none; } .bw__url { padding: 4px 12px; } }

/* ---------- Phone ---------- */
.ph { width: 250px; aspect-ratio: 9 / 19; border-radius: 42px; background: #111; padding: 10px; position: relative; box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .4), inset 0 0 0 2px #333; transform: rotate(-4deg); transition: transform .8s var(--ease); }
.mk-phone:hover .ph { transform: rotate(0) translateY(-6px); }
.ph__notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: #111; border-radius: 20px; z-index: 2; }
.ph__screen { height: 100%; border-radius: 33px; overflow: hidden; background: var(--b-paper); color: var(--b-ink); display: flex; flex-direction: column; font-family: var(--b-fb), var(--font); }
.ph__status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 11px; font-weight: 600; }
.ph__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 16px 10px; }
.ph__logo { max-height: 22px; max-width: 110px; width: auto; }
.ph__head .wordmark { font-size: 17px; color: var(--b1); }
.ph__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--b2); color: var(--b-on2); display: grid; place-items: center; }
.ph__avatar svg { width: 16px; }
.ph__card { margin: 6px 12px; border-radius: 20px; padding: 16px; background: var(--b1); color: var(--b-on1); display: grid; gap: 10px; min-height: 160px; align-content: space-between; }
.ph__tag { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ph__card strong { font-family: var(--b-fd), var(--font); font-size: 20px; line-height: 1.1; }
.ph__btn { justify-self: start; background: var(--b3); color: var(--b-on3); font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.ph__list { display: grid; gap: 8px; padding: 10px 12px; }
.ph__item { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 9px; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.ph__item i { width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--b2) 18%, #fff); color: var(--b2); display: grid; place-items: center; }
.ph__item i svg { width: 18px; }
.ph__item span { display: grid; gap: 5px; flex: 1; }
.ph__item b { height: 6px; border-radius: 4px; background: #e6e6e6; }
.ph__item b:first-child { width: 70%; background: #cfcfcf; }
.ph__tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 10px 18px; border-top: 1px solid rgba(0, 0, 0, .06); background: #fff; }
.ph__tabs i { width: 18px; height: 18px; border-radius: 6px; background: #d6d6d6; }
.ph__tabs i:first-child { background: var(--b1); }

/* ---------- Instagram posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; max-width: 1040px; }
.ig { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .25); font-family: var(--font); color: #111; transition: transform .6s var(--ease); }
.ig:nth-child(2) { transform: translateY(-18px); }
.ig:hover { transform: translateY(-8px) rotate(-1deg); }
.ig__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12px; }
.ig__av { width: 26px; height: 26px; border-radius: 50%; background: var(--b1); color: var(--b-on1); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--b2); }
.ig__av svg { width: 14px; }
.ig__dots { margin-left: auto; letter-spacing: 1px; opacity: .6; }
.ig__img { aspect-ratio: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; gap: 8px; background-size: 52px 52px; }
.ig__img--0 { background-color: var(--b1); color: var(--b-on1); }
.ig__img--1 { background-color: var(--b-paper); place-items: center; display: grid; }
.ig__img--2 { background-color: var(--b2); color: var(--b-on2); justify-content: space-between; }
.ig__quote { font-family: var(--b-fd), var(--font); font-weight: 700; font-size: clamp(18px, 2vw, 28px); line-height: 1.08; position: relative; z-index: 1; max-width: 90%; }
.ig__corner { position: absolute; top: 14px; right: 14px; width: 30%; color: var(--b3); opacity: .9; }
.ig__logo { width: 64%; display: grid; place-items: center; }
.ig__logo img { max-height: 120px; width: auto; }
.ig__logo .wordmark { color: var(--b1); font-size: clamp(20px, 2vw, 30px); white-space: normal; text-align: center; display: block; }
.ig__kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ig__big { font-family: var(--b-fd), var(--font); font-weight: 700; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.1; }
.ig__cta { align-self: flex-start; background: var(--b-paper); color: var(--b-ink); padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.ig__actions { display: flex; gap: 12px; padding: 10px 12px 2px; }
.ig__actions svg { width: 18px; height: 18px; fill: none; stroke: #111; stroke-width: 1.6; stroke-linejoin: round; }
.ig__actions svg:first-child { fill: #ed4956; stroke: #ed4956; }
.ig__likes { padding: 0 12px 12px; font-size: 12px; font-weight: 600; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; max-width: 340px; } .ig:nth-child(2) { transform: none; } }

/* ---------- Billboard ---------- */
.mk-billboard { padding: 0; min-height: 0; background: linear-gradient(180deg, #8ec5e8 0%, #cfe6f2 55%, #f3e4cf 100%); }
.mk-billboard::before { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: #fff7d6; right: 12%; top: 12%; filter: blur(2px); box-shadow: 0 0 80px 30px rgba(255, 240, 200, .6); z-index: -1; }
.bb { width: 100%; padding: 60px 8% 0; display: grid; justify-items: center; }
.bb__board {
  width: min(100%, 860px); aspect-ratio: 3 / 1; background: var(--b1); color: var(--b-on1); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; padding: 0 5%; gap: 4%;
  box-shadow: 0 0 0 10px #2a2a2a, 0 0 0 12px #444, 0 40px 50px -10px rgba(0, 0, 0, .35);
}
.bb__copy { font-family: var(--b-fd), var(--font); font-weight: 800; font-size: clamp(22px, 3.4vw, 50px); line-height: 1; letter-spacing: -.02em; position: relative; z-index: 1; }
.bb__logo { justify-self: end; position: relative; z-index: 1; display: grid; place-items: center; background: color-mix(in srgb, var(--b-on1) 0%, transparent); }
.bb__logo img { max-height: clamp(40px, 7vw, 100px); max-width: 100%; width: auto; }
.bb__logo .wordmark { font-size: clamp(22px, 3vw, 44px); }
.bb__motif { position: absolute; width: 30%; left: 34%; bottom: -46%; color: var(--b2); opacity: .35; }
.bb__legs { display: flex; justify-content: space-between; width: min(60%, 520px); height: 90px; }
.bb__legs i { width: 14px; background: linear-gradient(90deg, #333, #555, #333); }
.bb__ground { width: 100%; height: 26px; background: linear-gradient(#cbb89a, #b9a483); margin-top: -2px; }

/* ---------- ID badge ---------- */
.badge { display: grid; justify-items: center; transform-origin: top center; animation: swing 4s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.badge__strap { width: 36px; height: 120px; background-color: var(--b2); background-size: 28px 28px; margin-top: -60px; clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.badge__clip { width: 28px; height: 22px; border-radius: 6px; background: linear-gradient(#ddd, #999); margin-top: -4px; }
.badge__card { width: 200px; aspect-ratio: .64; background: var(--b-paper); border-radius: 16px; overflow: hidden; display: grid; justify-items: center; align-content: start; gap: 6px; box-shadow: 0 30px 50px -14px rgba(0, 0, 0, .35); text-align: center; color: var(--b-ink); }
.badge__top { width: 100%; height: 78px; background: var(--b1); display: grid; place-items: center; padding: 14px 20px; }
.badge__logo { max-height: 40px; max-width: 80%; width: auto; }
.badge__top .wordmark { font-size: 22px; color: var(--b-on1); }
.badge__photo { width: 76px; height: 76px; border-radius: 50%; margin-top: -30px; background: var(--b3); color: var(--b1); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--b-paper); }
.badge__photo svg { width: 40px; }
.badge__card strong { font-family: var(--b-fd), var(--font); font-size: 17px; margin-top: 6px; padding: 0 10px; }
.badge__card span { font-size: 12px; opacity: .65; }
.badge__code { width: 70%; height: 26px; margin-top: 14px; background: repeating-linear-gradient(90deg, var(--b-ink) 0 2px, transparent 2px 4px, var(--b-ink) 4px 5px, transparent 5px 8px); opacity: .8; }

/* ---------- Tote ---------- */
.tote { display: grid; justify-items: center; transform: rotate(-3deg); transition: transform .8s var(--ease); }
.mk-tote:hover .tote { transform: rotate(2deg) translateY(-6px); }
.tote__handle { width: 130px; height: 110px; border: 12px solid color-mix(in srgb, var(--b1) 85%, #000); border-bottom: 0; border-radius: 70px 70px 0 0; margin-bottom: -6px; }
.tote__bag {
  width: 250px; height: 280px; background: var(--b1); color: var(--b-on1); position: relative; overflow: hidden; display: grid; place-items: center;
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); box-shadow: inset 0 -30px 40px rgba(0, 0, 0, .15);
}
.tote__bag::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, .12), transparent 40%, rgba(0, 0, 0, .1)); }
.tote__motif { position: absolute; width: 120%; left: -10%; bottom: -30%; color: var(--b2); opacity: .9; }
.tote__logo { position: relative; z-index: 1; width: 60%; display: grid; place-items: center; }
.tote__logo img { max-height: 90px; width: auto; }
.tote__logo .wordmark { font-size: 32px; color: var(--b-on1); }

/* ---------- Cup ---------- */
.cup { display: grid; justify-items: center; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .25)); transition: transform .8s var(--ease); }
.mk-cup:hover .cup { transform: rotate(-4deg); }
.cup__lid { width: 210px; height: 30px; background: linear-gradient(#fafafa, #ddd); border-radius: 12px 12px 4px 4px; position: relative; }
.cup__lid::before { content: ''; position: absolute; left: 10%; right: 10%; top: -10px; height: 14px; border-radius: 10px 10px 0 0; background: #eee; }
.cup__body { width: 190px; height: 260px; background: linear-gradient(90deg, #e8e8e8, #fff 40%, #e2e2e2); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); display: grid; align-items: center; }
.cup__sleeve { height: 120px; background-color: var(--b1); background-size: 30px 30px; display: grid; place-items: center; }
.cup__logo { width: 64%; display: grid; place-items: center; }
.cup__logo img { max-height: 70px; width: auto; }
.cup__logo .wordmark { font-size: 28px; color: var(--b-on1); }

/* ---------- Pattern ---------- */
.pattern { width: 100%; height: 100%; min-height: 320px; background-color: var(--b1); background-image: var(--pat); background-size: 96px 96px; animation: pan 30s linear infinite; position: relative; display: grid; place-items: center; }
@keyframes pan { to { background-position: 960px 480px; } }
.pattern__label { display: inline-flex; align-items: center; gap: 10px; background: var(--b-paper); color: var(--b-ink); padding: 12px 18px; border-radius: 999px; font-family: var(--font); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.pattern__label svg { width: 18px; color: var(--b1); }
.mk-pattern figcaption { color: var(--b-on1); opacity: .8; }

@media (prefers-reduced-motion: reduce) { .pattern, .badge { animation: none; } }
.mk .wordmark { white-space: normal; text-align: center; }
.bcard--front .wordmark, .badge__top .wordmark, .bw__nav .wordmark, .ph__head .wordmark { white-space: nowrap; }

@keyframes float { to { transform: translateY(-10px); } }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; grid-auto-flow: dense; }
.ig__dots { margin-left: auto; display: flex; gap: 3px; }
.ig__dots i { width: 3px; height: 3px; border-radius: 50%; background: #111; }
.ph__sig { display: flex; gap: 2px; align-items: end; }
.ph__sig i { width: 3px; background: #111; border-radius: 1px; height: 5px; }
.ph__sig i:nth-child(2) { height: 7px; } .ph__sig i:nth-child(3) { height: 9px; }
.mk-billboard { background: linear-gradient(180deg, #CFE3EF 0%, #E9F1F4 60%, #F1ECE3 100%); box-shadow: 0 0 0 1px var(--line); }
.mk-billboard::before { opacity: .8; }
