/* دليل — one visual world, deliberately single-theme: police-archive paper, ink, evidence-tape yellow.
   Layout: an opened case file — ink cover (hero), paper documents inside, tape bands between sections. */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;800;900&family=Tajawal:wght@400;500;700;800&family=Special+Elite&display=swap');
:root {
  color-scheme: light;
  --ink: #151515; --ink-2: #222120; --paper: #F6F2E8; --paper-2: #ECE6D6; --yellow: #F2C400;
  --muted: #5e5a51; --muted-ink: #b7b0a2; --line: rgba(21,21,21,.16); --line-ink: rgba(246,242,232,.16);
  --ok: #2f7d4f; --bad: #b3402e; --wait: #8a6800;
  --display: "Cairo", "Tajawal", system-ui, sans-serif;
  --body: "Tajawal", "Cairo", system-ui, sans-serif;
  --mono: "Special Elite", "Tajawal", "Courier New", monospace; /* Special Elite has no Arabic: Arabic letters fall to Tajawal, not Courier's broken forms */
  --r: 2px; --max: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { background: var(--paper); color: var(--ink); font: 17px/1.75 var(--body); direction: rtl; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.in { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.code { font-family: var(--mono); letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 800; line-height: 1.35; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; }
.eyebrow { font: 400 14px var(--mono); letter-spacing: 0; color: var(--muted); } /* tracking breaks Arabic letter joining («تـم تـسـجـيـل») */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 800 17px var(--display); padding: 12px 26px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); text-decoration: none; cursor: pointer; border-radius: var(--r); transition: transform .15s, box-shadow .15s; box-shadow: 4px 4px 0 var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: none; }
.btn.ghost:hover { background: var(--paper); color: var(--ink); transform: none; }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* header */
.top { background: var(--ink); color: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid var(--line-ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; gap: 22px; font: 700 15px var(--display); }
.top nav a { text-decoration: none; color: var(--muted-ink); }
.top nav a:hover { color: var(--paper); }
.top .btn { padding: 7px 16px; font-size: 15px; box-shadow: none; }
@media (max-width: 720px) { .top nav { display: none; } }

/* hero: the closed file */
.hero { background: var(--ink); color: var(--paper); overflow: hidden; position: relative; }
.hero .in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 64px 88px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 82px); font-weight: 900; line-height: 1.3; letter-spacing: 0; } /* any tracking, even negative, breaks Arabic joining */
.hero h1 mark { background: var(--yellow); color: var(--ink); padding: 0 .14em; line-height: 1.15; display: inline-block; margin-top: .08em; }
.hero .eyebrow { color: var(--yellow); }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.hero .slogan { font: 700 20px var(--display); color: var(--muted-ink); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.facts li { border: 1px solid var(--line-ink); padding: 3px 12px; font-size: 14px; color: var(--muted-ink); }
.facts b { color: var(--paper); font-weight: 800; }
.evidence { position: relative; min-width: 0; }
.evidence .print { background: var(--paper); padding: 10px 10px 34px; transform: rotate(-2.5deg); box-shadow: 0 18px 50px rgba(0,0,0,.55); position: relative; z-index: 1; }
.evidence .print.back { position: absolute; inset: -34px 14% auto -4%; transform: rotate(5deg); z-index: 0; filter: brightness(.8); }
.evidence .print img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
@media (max-width: 860px) { .evidence { margin-top: 30px; } .evidence .print.back { inset-inline: 6% -2%; top: -26px; } }
.evidence .print figcaption { position: absolute; bottom: 8px; inset-inline: 12px; font: 400 13px var(--mono); color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.evidence .stamp { position: absolute; width: 120px; inset-inline-start: -26px; top: -34px; transform: rotate(-14deg); opacity: .95; }
@media (max-width: 860px) { .hero .in { grid-template-columns: 1fr; padding-block: 40px 70px; gap: 40px; } .evidence .stamp { width: 90px; top: -26px; inset-inline-start: -6px; } }

/* evidence tape band */
.tape { background: var(--yellow); color: var(--ink); font: 800 15px var(--display); letter-spacing: .32em; white-space: nowrap; overflow: hidden; padding: 9px 0; transform: rotate(-1.6deg); margin: -22px -20px 0; position: relative; z-index: 2; border-block: 2px solid var(--ink); direction: ltr; }
.tape span { display: inline-block; padding-inline-end: .32em; }

section.block { padding-block: 84px; }
section.block .head { display: grid; gap: 12px; margin-bottom: 40px; }

/* case file */
.file { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .file { grid-template-columns: 1fr; } }
.doc { background: #FBF8F0; border: 1px solid var(--line); padding: 28px 30px 32px; box-shadow: 0 2px 0 var(--paper-2), 0 3px 0 var(--line), 0 6px 0 var(--paper-2), 0 7px 0 var(--line); position: relative; min-width: 0; }
.doc .dochead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px double var(--ink); padding-bottom: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.doc .dochead b { font: 900 18px var(--display); }
.doc p + p { margin-top: 12px; }
.doc .sign { margin-top: 22px; font: 700 15px var(--display); color: var(--muted); }
.doc .classified { position: absolute; inset-inline-end: 18px; bottom: 16px; font: 900 15px var(--display); border: 3px solid var(--ink); padding: 2px 12px; transform: rotate(-8deg); opacity: .75; }
.prints { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prints figure { margin: 0; background: #fff8; padding: 8px 8px 0; border: 1px solid var(--line); background: #FBF8F0; }
.prints figure:first-child { grid-column: 1 / -1; }
.prints img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: saturate(.85); }
.prints figcaption { font: 400 13px var(--mono); color: var(--muted); padding: 6px 2px 8px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .missions { grid-template-columns: 1fr; } }
.mission { background: #FBF8F0; border: 1px solid var(--line); display: grid; }
.mission .stripe { height: 4px; background: var(--yellow); }
.mission div { padding: 16px 18px 20px; display: grid; gap: 6px; }
.mission small { font: 800 13px var(--display); color: var(--muted); }

/* how to play */
.dark { background: var(--ink); color: var(--paper); }
.dark .lede, .dark .eyebrow { color: var(--muted-ink); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; counter-reset: s; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--ink-2); padding: 20px 18px 22px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--yellow); counter-increment: s; }
.steps li::before { content: counter(s); font: 900 34px/1 var(--display); color: var(--yellow); }
.steps p { color: var(--muted-ink); font-size: 15px; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.rules div { border: 1px solid var(--line-ink); padding: 16px 18px; }
.rules b { font: 800 16px var(--display); display: block; color: var(--yellow); margin-bottom: 4px; }
.rules p { color: var(--muted-ink); font-size: 15px; }

/* in the box */
.box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .box { grid-template-columns: 1fr; } }
.box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.box li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; align-items: baseline; }
.box li .code { color: var(--muted); font-size: 13px; min-width: 52px; }

/* coming */
.coming { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.coming article { border: 2px dashed var(--ink); padding: 22px; position: relative; min-height: 140px; display: grid; align-content: end; gap: 4px; }
.coming article::after { content: "قريبًا"; position: absolute; top: 14px; inset-inline-end: 14px; font: 900 14px var(--display); border: 2px solid var(--ink); padding: 0 10px; transform: rotate(6deg); }
.coming small { color: var(--muted); }

/* faq */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 800 18px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 22px var(--display); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

.final { text-align: center; }
.final .in { display: grid; gap: 20px; justify-items: center; padding-block: 72px; }
footer { background: var(--ink); color: var(--muted-ink); font-size: 14px; border-top: 1px solid var(--line-ink); }
footer .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; }

/* order page */
.order-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; padding-block: 40px 80px; }
@media (max-width: 860px) { .order-wrap { grid-template-columns: 1fr; } }
form.order { display: grid; gap: 18px; background: #FBF8F0; border: 1px solid var(--line); padding: 26px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font: 800 15px var(--display); }
.field small { color: var(--muted); font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: var(--r); width: 100%; min-width: 0; }
textarea { min-height: 84px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); background: #fbeeea; }
.err { color: var(--bad); font-size: 14px; font-weight: 700; min-height: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); padding: 8px 14px; cursor: pointer; font: 700 15px var(--body); background: var(--paper); border-radius: var(--r); }
.choices input { width: auto; accent-color: var(--ink); }
.choices label:has(input:checked) { background: var(--ink); color: var(--paper); }
.qty { display: flex; align-items: stretch; width: max-content; border: 1.5px solid var(--ink); }
.qty button { width: 44px; border: 0; background: var(--paper-2); font: 900 20px var(--display); cursor: pointer; }
.qty input { width: 64px; border: 0; text-align: center; border-inline: 1.5px solid var(--ink); border-radius: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* order steps (3 steps, 2026-11-09) */
.osteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; scroll-margin-top: 90px; }
.osteps li { display: flex; align-items: center; gap: 8px; font: 800 14px var(--display); color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; min-width: 0; }
.osteps li b { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border: 2px solid currentColor; border-radius: 50%; font: 900 14px/1 var(--display); }
.osteps li[aria-current="step"] { color: var(--ink); border-top-color: var(--yellow); }
.osteps li[aria-current="step"] b { background: var(--yellow); border-color: var(--ink); }
.osteps li.is-done { color: var(--ink); border-top-color: var(--ink); cursor: pointer; } /* not .done: that is the success panel's class */
.osteps li.is-done b { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ostep { display: grid; gap: 18px; animation: ostep-in .22s ease-out; }
.ostep[hidden] { display: none; }
.ostep-h { font-size: 22px; }
@keyframes ostep-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ostep { animation: none; } }
.ocheck { margin: 0; padding: 10px 12px; border: 1.5px dashed var(--ink); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.onav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-back { border: 0; background: none; font: 700 15px var(--display); color: var(--muted); cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 520px) { .osteps li { font-size: 12px; gap: 5px; } .onav .btn { flex: 1; } }
.summary { background: var(--ink); color: var(--paper); padding: 24px; display: grid; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }
.summary img { width: 100%; aspect-ratio: 1200/649; object-fit: cover; border: 6px solid var(--paper); }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-ink); padding-bottom: 8px; }
.summary dt { color: var(--muted-ink); }
.summary dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary .note { color: var(--muted-ink); font-size: 14px; }
.done { background: #FBF8F0; border: 2px solid var(--ink); padding: 30px; display: grid; gap: 16px; text-align: center; justify-items: center; }
.done .num { font: 400 clamp(22px, 5vw, 32px) var(--mono); background: var(--yellow); padding: 4px 16px; border: 2px solid var(--ink); }

/* ---- case page ---- */
.case-hero .in { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .case-hero .in { grid-template-columns: 1fr; } }
.phone { margin: 0; justify-self: center; width: min(320px, 82vw); position: relative; }
.phone video, .phone .nofilm { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; border: 10px solid var(--ink-2); outline: 2px solid var(--line-ink); border-radius: 26px; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.phone figcaption { text-align: center; color: var(--muted-ink); font-size: 13px; margin-top: 10px; }
.sound { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); font: 800 14px var(--display); background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.nofilm { display: grid !important; place-content: center; gap: 8px; text-align: center; color: var(--paper); background: repeating-linear-gradient(-45deg, #1d1c1b 0 18px, #191817 18px 36px) !important; }
.nofilm b { font: 900 26px var(--display); } .nofilm small { color: var(--muted-ink); }
.meter-d { display: flex; gap: 12px; align-items: center; font: 800 15px var(--display); color: var(--muted-ink); }
.pips { display: flex; gap: 5px; }
.pips i { width: 26px; height: 10px; border: 1.5px solid var(--yellow); }
.pips i.on { background: var(--yellow); }
.soon { font: 900 16px var(--display); border: 2px solid var(--paper); padding: 10px 20px; transform: rotate(-4deg); }

/* envelope that opens */
.envelope { display: grid; gap: 28px; justify-items: center; }
.env-btn { position: relative; width: min(640px, 100%); aspect-ratio: 229/162; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; overflow: hidden; box-shadow: 0 16px 40px rgba(21,21,21,.35); padding: 0; transition: transform .25s; }
.env-btn:hover { transform: translateY(-3px); }
.flap { position: absolute; inset: 0 0 auto; height: 52%; background: var(--ink-2); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s cubic-bezier(.3,.7,.3,1); border-bottom: 1px solid var(--line-ink); }
.env-label { position: absolute; inset-inline: 12%; bottom: 14%; background: var(--paper); color: var(--ink); padding: 12px 16px; display: grid; gap: 2px; text-align: center; border: 3px double var(--ink); }
.env-label b { font: 900 clamp(16px, 3vw, 22px) var(--display); }
.env-label small { font: 800 13px var(--display); color: var(--muted); }
.env-tape { position: absolute; inset-inline: -10%; top: 46%; background: var(--yellow); color: var(--ink); font: 800 14px var(--display); letter-spacing: .3em; padding: 6px 0; transform: rotate(-3deg); white-space: nowrap; direction: ltr; transition: clip-path .5s .1s, opacity .4s .4s; clip-path: inset(0 0 0 0); }
.envelope.open .env-tape { clip-path: inset(0 50% 0 50%); opacity: 0; }
.envelope.open .flap { transform: rotateX(180deg); }
.envelope.open .env-label small { visibility: hidden; }
.env-letter { width: min(640px, 100%); animation: rise .6s ease both; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* flip cards */
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
@media (max-width: 860px) { .flips { grid-template-columns: 1fr; } }
.flip { position: relative; min-height: 220px; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .6s; text-align: right; font: inherit; color: inherit; }
.flip.on { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; align-content: start; gap: 8px; padding: 0 0 18px; }
.face.front { background: #FBF8F0; color: var(--ink); border: 2px solid var(--yellow); }
.face.front .stripe { height: 16px; background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--yellow) 12px 24px); }
.face.front small, .face.front b, .face.front em { padding-inline: 18px; }
.face small { font: 800 13px var(--display); color: var(--muted); }
.face b { font: 900 24px/1.35 var(--display); }
.face em { font: 800 13px var(--display); font-style: normal; color: var(--muted); margin-top: auto; }
.face.back { transform: rotateY(180deg); background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); padding: 18px; }
.face.back span { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .flip { transition: none; } }

/* gallery + lightbox */
.gallery .shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.gallery .shot img { transition: filter .2s, transform .3s; }
.gallery .shot:hover img { filter: saturate(1); transform: scale(1.02); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 96vw); width: 100%; }
.lightbox::backdrop { background: rgba(21,21,21,.88); }
.lightbox figure { margin: 0; background: var(--paper); padding: 10px; }
.lb-img { aspect-ratio: 3/2; background: center / cover no-repeat var(--ink); cursor: zoom-in; }
.lb-img.zoom { background-size: 240%; cursor: zoom-out; }
.lightbox figcaption { display: flex; justify-content: space-between; padding: 8px 4px 2px; font: 400 14px var(--mono); color: var(--muted); }
.lightbox .btn { margin-top: 10px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
@media (max-width: 720px) { .skills { grid-template-columns: 1fr; } }
.skills ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { border: 1.5px solid var(--ink); padding: 4px 12px; font-weight: 700; font-size: 15px; }
.case-link { border: 2px solid var(--ink); padding: 20px; display: grid; gap: 4px; text-decoration: none; transition: background .2s; }
.case-link:hover { background: var(--yellow); }
.case-link small { color: var(--muted); font-weight: 800; }
.case-link span { color: var(--muted); font-size: 15px; }
.stickybar { position: fixed; inset: auto 0 0; z-index: 25; background: var(--ink); color: var(--paper); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font: 800 16px var(--display); border-top: 2px solid var(--yellow); }
.stickybar .btn { padding: 8px 16px; font-size: 15px; box-shadow: none; }
@media (max-width: 720px) { .stickybar { display: flex; transform: translateY(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s; } .stickybar.show { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); } }

/* ---- 15-second challenge (home) ---- */
.challenge { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .challenge { grid-template-columns: 1fr; } }
.receipt { background: #fbfaf5; color: #1a1a1a; width: min(420px, 100%); justify-self: center; padding: 26px 26px 30px; box-shadow: 0 18px 40px rgba(0,0,0,.45); transform: rotate(-1.5deg); position: relative; font-size: 16px; }
.receipt .rh { text-align: center; font: 900 22px var(--display); }
.receipt .rs { text-align: center; color: #555; font-size: 14px; margin-bottom: 10px; }
.receipt hr { border: 0; border-top: 2px dashed #999; margin: 12px 0; }
.receipt .line { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 8px; border: 2px solid transparent; background: none; font: inherit; color: inherit; cursor: pointer; text-align: right; border-radius: 2px; }
.receipt .line:hover:not(:disabled) { background: rgba(242,196,0,.18); }
.receipt .line .n { font-family: var(--mono); direction: ltr; }
.receipt .line.hit { border-color: var(--ok); background: rgba(47,125,79,.12); }
.receipt .line.miss { border-color: var(--bad); background: rgba(179,64,46,.1); }
.receipt .line:disabled { cursor: default; }
.clock { display: flex; align-items: center; gap: 14px; }
.clock b { font: 900 54px/1 var(--display); color: var(--yellow); font-variant-numeric: tabular-nums; min-width: 2ch; }
.clock .bar { flex: 1; height: 8px; background: var(--ink-2); }
.clock .bar i { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: right; }
.verdict { min-height: 3.4em; font: 800 19px/1.5 var(--display); }
.verdict.good { color: var(--yellow); }

/* v3 hero (2026-11-06): the file lands on the desk, then the seal is stamped on it. */
@keyframes deskDrop { from { transform: translateY(-40px) rotate(-7deg); opacity: 0; } to { transform: rotate(-2.5deg); opacity: 1; } }
@keyframes deskDropBack { from { transform: translateY(-50px) rotate(11deg); opacity: 0; } to { transform: rotate(5deg); opacity: 1; } }
@keyframes stampHit { 0% { transform: scale(2.4) rotate(-24deg); opacity: 0; } 60% { transform: scale(.92) rotate(-14deg); opacity: 1; } 100% { transform: scale(1) rotate(-14deg); opacity: .95; } }
@keyframes tapeCut { from { transform: translateX(0) rotate(-4deg); } to { transform: translateX(-120%) rotate(-4deg); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .evidence .print { animation: deskDrop .7s .25s cubic-bezier(.2,.8,.2,1) both; }
  .evidence .print.back { animation: deskDropBack .7s cubic-bezier(.2,.8,.2,1) both; }
  .evidence .stamp { animation: stampHit .45s 1s cubic-bezier(.3,1.4,.5,1) both; }
}
.evidence .stamp { z-index: 2; }
.evidence .seal-tape { position: absolute; inset-inline: -6%; top: 46%; height: 34px; background: var(--yellow, #F2C400); color: #151515; font: 700 13px/34px var(--mono); letter-spacing: 3px; white-space: nowrap; overflow: hidden; transform: rotate(-4deg); box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: tapeCut .6s 1.6s ease-in both; pointer-events: none; z-index: 3; direction: ltr; }
@media (prefers-reduced-motion: reduce) { .evidence .seal-tape { display: none; } }.hero { overflow-x: clip; }
main { overflow-x: clip; } /* 2026-11-06: the rotated .tape strip made phones scroll sideways by ~13px */

/* ---- Season 1 shelf (2026-11-21): one open file, the rest sealed «قريبًا» with no plot ---- */
.season { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.season:not(:has(.open)) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .season, .season:not(:has(.open)) { grid-template-columns: repeat(2, 1fr); gap: 12px; } .season .sfile.open { grid-column: 1 / -1; } }
.sfile { position: relative; border: 2px solid var(--ink); background: #FBF8F0; padding: 36px 14px 16px; display: grid; gap: 6px; align-content: end; min-height: 200px; text-decoration: none; color: inherit; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.sfile .tab { position: absolute; top: -2px; inset-inline-start: -2px; background: var(--ink); color: var(--paper); font: 800 13px var(--display); padding: 3px 12px; }
.sfile.open { box-shadow: 6px 6px 0 var(--yellow); outline: 2px solid var(--ink); outline-offset: -2px; }
.sfile.open img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 1px solid var(--line); }
.sfile.open b { font: 900 24px var(--display); }
.sfile.open small { color: var(--muted); font-weight: 700; font-size: 15px; }
.sfile.open:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--yellow); }
.sfile.sealed { background: var(--ink); border-color: var(--ink); place-items: center; align-content: center; }
.sfile.sealed .tab { background: var(--yellow); color: var(--ink); }
.sfile.sealed .seal { font: 800 16px var(--display); color: var(--yellow); border: 1.5px solid var(--yellow); padding: 2px 12px; transform: rotate(-6deg); white-space: nowrap; opacity: .85; }
@media (max-width: 520px) { .sfile.sealed { min-height: 120px; padding-inline: 6px; } .sfile.sealed .seal { font-size: 16px; padding: 1px 8px; } }
/* placeholder marker: the price is not approved yet (company/sales/prices.md) */
.tbd { background: var(--yellow); color: var(--ink); padding: 0 6px; outline: 1.5px dashed var(--ink); outline-offset: -1.5px; }

/* ---- motion (2026-11-21): composite-only (opacity, translate, scale), off when the visitor asks for reduced motion ---- */
@keyframes upIn { from { opacity: 0; translate: 0 18px; } }
@keyframes tapeRun { to { transform: translateX(-50%); } }
@keyframes stampIn { from { opacity: 0; scale: 1.9; } 70% { opacity: 1; scale: .94; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .copy > * { animation: upIn .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero .copy > :nth-child(2) { animation-delay: .08s; } .hero .copy > :nth-child(3) { animation-delay: .16s; }
  .hero .copy > :nth-child(4) { animation-delay: .24s; } .hero .copy > :nth-child(n+5) { animation-delay: .32s; }
  .tape span { animation: tapeRun 60s linear infinite; }
  .rv [data-reveal]:not([data-reveal="stagger"]), .rv [data-reveal="stagger"] > * { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
  .rv .seen[data-reveal]:not([data-reveal="stagger"]), .rv .seen[data-reveal="stagger"] > * { opacity: 1; translate: none; }
  .rv .seen .sfile.sealed .seal { animation: stampIn .45s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 80ms + .35s); }
  .rv .season:not(.seen) .seal { opacity: 0; }
}
/* launch offer (2026-11-22): old price struck, offer price bold, small yellow tag */
.price s, #s-price s { opacity: .6; } .price b { color: var(--ink); }
.offer { font-style: normal; font-size: .85em; font-weight: 800; background: var(--yellow); color: var(--ink); padding: 0 6px; white-space: nowrap; }

/* v2 polish (2026-11-22): contents photo in the box section */
.box-shot { width: 100%; margin-top: 24px; border: 1px solid var(--line); }
/* investigation feel (2026-11-22): CCTV overlay on gate-camera stills — timestamp + blinking REC */
.cctv { position: relative; display: block; overflow: hidden; }
.cctv::before { content: attr(data-ts); position: absolute; top: 6px; left: 8px; font: 400 11px var(--mono); color: #fff; text-shadow: 0 0 3px #000; direction: ltr; z-index: 1; }
.cctv::after { content: "● REC"; position: absolute; top: 6px; right: 8px; font: 700 11px var(--mono); color: #ff3b30; text-shadow: 0 0 3px #000; direction: ltr; }
@media (prefers-reduced-motion: no-preference) { .cctv::after { animation: rec 1.2s steps(2) infinite; } }
@keyframes rec { 50% { opacity: 0; } }
.prints .cctv img { aspect-ratio: 1024/572; }
.prints.two figure:first-child { grid-column: auto; }
@media (max-width: 520px) { .prints.two { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cctv::before, .cctv::after { font-size: 9px; } }
/* stamp transition to the order page (motion.js) */
.sound-btn { background: none; border: 1px solid var(--line-ink); color: inherit; font-size: 16px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none; opacity: .75; }
.sound-btn:hover, .sound-btn:focus-visible { opacity: 1; border-color: var(--yellow); }
#stamp-wipe { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; pointer-events: none; clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%)); }
#stamp-wipe img { width: min(240px, 50vw); opacity: 0; }
#stamp-wipe.go { pointer-events: auto; animation: inkIn .45s cubic-bezier(.7,0,.3,1) forwards; }
#stamp-wipe.go img { animation: stampDown .5s .38s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes inkIn { to { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); } }
@keyframes stampDown { from { opacity: 0; transform: scale(2.4) rotate(-25deg); } to { opacity: 1; transform: scale(1) rotate(-12deg); } }
html.stamp-in body::after { content: ""; position: fixed; inset: 0; z-index: 200; background: var(--ink) url(../img/daleel-seal-paper.svg) center / min(240px, 50vw) no-repeat; pointer-events: none; animation: inkOut .55s .1s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes inkOut { from { clip-path: circle(150% at 50% 50%); } to { clip-path: circle(0 at 50% 50%); } }
@media (prefers-reduced-motion: reduce) { html.stamp-in body::after { display: none; } }
/* order received (owner pick 2026-11-23): red stamp hits the confirmation, number types itself (order.js typeNum) */
.done { position: relative; overflow: hidden; }
.okstamp { position: absolute; top: 30px; inset-inline-end: 26px; font: 900 22px/1.1 var(--display); color: #b3261e; border: 3px solid #b3261e; padding: 4px 12px; text-align: center; transform: rotate(-12deg); opacity: .85; mix-blend-mode: multiply; pointer-events: none; }
.okstamp small { display: block; font: 400 11px var(--mono); }
@media (max-width: 520px) { .okstamp { position: static; justify-self: center; } }
@media (prefers-reduced-motion: no-preference) {
  #ok:not([hidden]) .okstamp { animation: okSlam .45s 1s cubic-bezier(.3,1.5,.5,1) both; }
  #ok:not([hidden]) .done { animation: okShake .3s 1.3s; }
}
@keyframes okSlam { from { opacity: 0; transform: scale(2.6) rotate(-30deg); } to { opacity: .85; transform: scale(1) rotate(-12deg); } }
@keyframes okShake { 30% { translate: 2px 1px; } 60% { translate: -2px -1px; } }
/* red pen price (owner pick 2026-11-23): a hand stroke crosses the old price, then the offer price is stamped */
s.pen { position: relative; text-decoration: none; display: inline-block; }
s.pen svg { position: absolute; inset: -.15em -.3em; width: calc(100% + .6em); height: calc(100% + .3em); overflow: visible; pointer-events: none; }
s.pen path { fill: none; stroke: #c62828; stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  s.pen path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: penStrike .5s .5s ease-out forwards; }
  s.pen + b { display: inline-block; animation: priceStamp .35s 1s cubic-bezier(.3,1.5,.5,1) both; }
  .rv [data-reveal]:not(.seen) s.pen path, .rv [data-reveal]:not(.seen) s.pen + b { animation: none; }
}
@keyframes penStrike { to { stroke-dashoffset: 0; } }
@keyframes priceStamp { from { opacity: 0; transform: scale(1.9) rotate(-8deg); } }
/* first-visit intro (index.html): tape is cut, both halves fall, the page shows */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--ink); overflow: hidden; cursor: pointer; animation: introOut .45s 1.55s forwards; }
.intro .half { position: absolute; top: 50%; height: 52px; width: 60vw; margin-top: -26px; background: var(--yellow); color: var(--ink); font: 700 16px/52px var(--mono); letter-spacing: 3px; white-space: nowrap; overflow: hidden; direction: ltr; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.intro .l { left: -5vw; text-align: right; transform: rotate(-4deg); transform-origin: right center; animation: introL .7s 1s cubic-bezier(.5,0,.8,.4) forwards; }
.intro .r { right: -5vw; transform: rotate(-4deg); transform-origin: left center; animation: introR .7s 1s cubic-bezier(.5,0,.8,.4) forwards; }
.intro .cut { position: absolute; top: 50%; left: 50%; translate: -50% -50%; font-size: 44px; color: var(--paper); animation: introSnip .5s .45s both; }
@keyframes introSnip { 0% { opacity: 0; scale: .6; } 50% { opacity: 1; scale: 1.15; } 100% { opacity: 0; scale: 1; } }
@keyframes introL { to { transform: rotate(-30deg) translateY(60vh); } }
@keyframes introR { to { transform: rotate(24deg) translateY(60vh); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.has-intro .hero *, .has-intro .hero { animation-play-state: paused !important; } /* hero waits for the intro to finish */
/* box numbers (index #box) */
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.counts div { border-top: 3px solid var(--yellow); padding-top: 8px; }
.counts b { display: block; font: 900 clamp(38px, 6vw, 56px)/1 var(--display); font-variant-numeric: tabular-nums; }
.counts span { font: 700 15px var(--display); color: var(--muted); }
@media (max-width: 520px) { .counts { grid-template-columns: repeat(2, 1fr); } }
/* evidence photos develop like a polaroid (owner pick 2026-11-23): hero prints on load, case prints and gallery when revealed */
@keyframes develop { 0% { filter: brightness(2.2) contrast(.35) sepia(.9) blur(2px); } 40% { filter: brightness(1.5) contrast(.6) sepia(.6) blur(1px); } 100% { filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .evidence .print img { animation: develop 2.6s .5s ease-out both; }
  .rv .prints.seen img { animation: develop 2.6s ease-out both; animation-delay: calc(var(--i, 0) * 150ms); }
}
