/* ============ IROVAST v2 — Sibak, Card V loyalty, launch pack, presentation ============ */

/* shared */
.v2-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.v2-steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: start; }
.v2-steps li::before {
  content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.v2-steps b { font-family: var(--font-head); font-size: 17px; }
.v2-steps span { color: var(--muted); font-size: 15px; }
.v2-checks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 14px 0 26px; }
.v2-checks li { padding-inline-start: 26px; position: relative; color: var(--muted); }
.v2-checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.v2-checks b { color: var(--ink); }
.v2-note { color: var(--muted); font-size: 15px; margin: 18px 0; }
.v2-rules { border-inline-start: 3px solid var(--accent); padding: 4px 16px; color: var(--muted); font-size: 15px; margin-top: 28px; max-width: 70ch; }

/* phone frame */
.phone {
  position: relative; width: min(320px, 100%); aspect-ratio: 9 / 19; margin-inline: auto;
  border-radius: 44px; padding: 12px; background: var(--ink);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--ink) 70%, transparent);
}
.phone-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 99px; background: #000; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0d0d10; color: #fff; }

/* ---------- Sibak ---------- */
.sibak-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sibak-copy h2 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 600; margin-top: 8px; }
.sibak-screen { display: flex; flex-direction: column; }
.sibak-post { display: flex; gap: 10px; align-items: center; padding: 50px 14px 10px; font-size: 12px; line-height: 1.35; }
.sibak-post b { display: block; font-size: 13px; }
.sibak-post small { opacity: .75; }
.sibak-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 90deg, #ff5a1f, #ffb21f, #ff2d75, #ff5a1f); border: 2px solid #0d0d10; outline: 2px solid #ff5a1f; }
.sibak-canvas { flex: 1; width: 100%; min-height: 0; display: block; }
.sibak-comments { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 74px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; pointer-events: none; }
.sibak-comments span { font-size: 11.5px; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 3px 9px; align-self: flex-start; animation: cmt .4s ease both; }
.sibak-comments span b { color: #ffb21f; margin-inline-end: 6px; }
@keyframes cmt { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Card V loyalty ---------- */
.loyalty-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.loyalty-steps h3 { font-size: 20px; margin-top: 4px; }
.wallet-screen { background: #f3f2ef; color: #161513; padding: 54px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.wallet-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 20px; font-family: var(--font-head); }
.wallet-time { font-size: 12px; opacity: .5; }
.wallet-pass {
  border-radius: 18px; padding: 16px; color: #fff; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(150deg, #1f1d1a, #3a2a20 60%, #ff5a1f 140%);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); transform-origin: 50% 0;
  animation: passIn 1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes passIn { from { transform: translateY(40px) rotateX(25deg); opacity: 0; } }
.pass-head { display: flex; align-items: center; gap: 10px; }
.pass-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #ff5a1f; font-weight: 800; font-family: var(--font-head); }
.pass-name { flex: 1; font-weight: 700; font-size: 15px; }
.pass-count { font-family: var(--font-head); font-size: 14px; opacity: .85; font-variant-numeric: tabular-nums; }
.pass-count b { font-size: 22px; }
.pass-stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pass-stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); position: relative; }
.pass-stamps i.on { border: 0; background: #ff5a1f; animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.pass-stamps i.on::after { content: "☕"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; }
@keyframes stamp { from { transform: scale(1.8); opacity: 0; } }
.pass-reward { font-size: 12.5px; opacity: .85; }
.pass-qr { align-self: center; width: 84px; height: 84px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.pass-qr span { width: 64px; height: 64px; background:
  repeating-linear-gradient(90deg, #161513 0 4px, transparent 4px 8px),
  repeating-linear-gradient(0deg, #161513 0 4px, transparent 4px 9px); opacity: .85; mask: radial-gradient(circle at 30% 30%, #000 60%, transparent 61%), linear-gradient(#000, #000); }
.wallet-toast {
  border-radius: 14px; background: #fff; padding: 10px 12px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(-10px); transition: .4s;
}
.wallet-toast.show { opacity: 1; transform: none; }
.wallet-scan { position: absolute; left: 14px; right: 14px; height: 3px; top: 150px; border-radius: 3px; background: #2ee59d; box-shadow: 0 0 18px #2ee59d; opacity: 0; }
.wallet-scan.go { animation: scan .7s ease-in-out; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(200px); } }

/* ---------- launch pack ---------- */
.pack-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.pack-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.pack-icon { font-size: 30px; }
.pack-item h3 { font-size: 19px; margin: 12px 0 6px; }
.pack-item p { font-size: 14.5px; color: var(--muted); }
.pack-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pack-price { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.pack-price.hl { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.pp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pp-head h3 { font-size: 22px; }
.pp-amount b { font-family: var(--font-head); font-size: clamp(40px, 6vw, 56px); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.pp-amount span { color: var(--muted); }
.pack-price ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pack-price li { padding-inline-start: 22px; position: relative; }
.pack-price li::before { content: "●"; position: absolute; inset-inline-start: 0; color: var(--accent); font-size: 10px; top: 6px; }
.pack-steps { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.pack-steps li { counter-increment: p; border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.pack-steps li::before { content: "0" counter(p); font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 13px; letter-spacing: .2em; }
.pack-steps b { font-family: var(--font-head); font-size: 17px; }
.pack-steps span { color: var(--muted); font-size: 14.5px; }
.pack-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* video items in the work grid */
.work-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .sibak-grid, .loyalty-grid { grid-template-columns: 1fr; }
  .loyalty-grid .phone { order: 2; }
  .pack-items { grid-template-columns: 1fr; }
  .pack-prices { grid-template-columns: 1fr; }
  .pack-steps { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-pass, .pass-stamps i.on, .sibak-comments span { animation: none; }
}

/* ---------- reels wall (real client work, muted loops) ---------- */
.reels-wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.reel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.reel.v { aspect-ratio: 9 / 16; }
.reel.h { aspect-ratio: 16 / 9; grid-column: span 2; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; color: #fff; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}
.reel figcaption b { font-family: var(--font-head); font-size: 15px; }
.reel figcaption span { font-size: 12.5px; opacity: .8; }
.reel-play { position: absolute; top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #161513; font-size: 13px; }
.reel-play:hover { background: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .reels-wall { grid-template-columns: repeat(2, 1fr); }
  .reel.h { grid-column: span 2; }
}

/* real product videos inside the phone frame and the product rows */
.phone-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.project-visual-video { background: var(--ink); }
.project-visual-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* v6 — portfolio as a mosaic wall (vertical clips tall, horizontal ones wide, caption over the picture) */
.work-grid.work-wall { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.work-wall .work-card { position: relative; border: 0; background: var(--ink); border-radius: var(--radius); }
.work-wall .work-card.v { aspect-ratio: 9 / 16; }
.work-wall .work-card.h { aspect-ratio: 16 / 9; grid-column: span 2; }
.work-wall .work-card.featured { grid-column: span 2; }
.work-wall .work-card.v.featured { grid-column: span 1; }
.work-wall .work-thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.work-wall .work-card.featured .work-thumb { aspect-ratio: auto; }
.work-wall .work-thumb video, .work-wall .work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-wall .work-play { top: 10px; bottom: auto; inset-inline-start: 10px; inset-inline-end: auto; left: auto; right: auto; width: 38px; height: 38px; font-size: 13px; background: rgba(255, 255, 255, .92); color: #161513; transform: none; }
.work-wall .work-play { left: 10px; margin: 0; padding-inline-start: 2px; }
.work-wall .work-info { position: absolute; inset: auto 0 0 0; padding: 48px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.work-wall .work-info h3 { font-size: 15px; margin: 0 0 2px; color: #fff; }
.work-wall .work-desc { font-size: 12.5px; opacity: .82; margin: 0; }
.portfolio:not(.all) .work-card.later { display: none; }
.work-more { display: flex; justify-content: center; margin-top: 26px; }
@media (max-width: 860px) {
  .work-grid.work-wall { grid-template-columns: repeat(2, 1fr); }
  .work-wall .work-card.h, .work-wall .work-card.featured { grid-column: span 2; }
  .work-wall .work-card.v.featured { grid-column: span 1; }
}
