/* ==========================================================================
   home.css — homepage scenes (2026-07-02 rebuild)
   Loaded AFTER main.css / inner.css / fx.css / identity.css on index.html only.
   Namespaced .hm-* so it never collides with the shared shell.
   Scene order (per direction): shawarma hero → بيت الشغل → works →
   craft → brands → products → recommendations → newsletter → footer.
   Mobile (≤760px) and desktop (≥761px) are laid out separately.
   ========================================================================== */

/* ---------- signature film layer (grain + perforations + timecode) ------- */
.home-page { background: #070706; }
.home-page::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 761px) { .home-page::after { opacity: .2; mix-blend-mode: overlay; } }

.hm-perf {
  position: fixed; inset-block: 0; width: 13px; z-index: 77; pointer-events: none; opacity: .45;
  background-image: repeating-linear-gradient(to bottom, transparent 0 16px, rgba(225, 215, 175, .16) 16px 26px);
}
.hm-perf.l { inset-inline-start: 0; } .hm-perf.r { inset-inline-end: 0; }

.hm-timecode {
  position: fixed; inset-block-end: 14px; inset-inline-start: 16px; z-index: 78; pointer-events: none;
  font-family: 'Courier New', monospace; font-size: .64rem; letter-spacing: .06em; color: var(--paper);
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line-dark); border-radius: 6px;
  padding: .45em .7em; line-height: 1.5; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hm-timecode .tc-val { color: var(--red); font-weight: 700; }
.hm-timecode .tc-reel { display: block; color: rgba(225, 215, 175, .6); font-size: .58rem; margin-block-start: .1rem; }
@media (max-width: 760px) { .hm-perf { display: none; } .hm-timecode { font-size: .58rem; inset-block-end: 10px; inset-inline-start: 10px; } }
/* signature layer needs the JS cinema boot; stays hidden otherwise */
html:not(.hm) .hm-timecode, html:not(.hm) .hm-perf { display: none; }

/* ---------- shared scene grammar ---------- */
.hm-sec { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.hm-sec-head { margin-block-end: clamp(2.2rem, 5vw, 3.6rem); }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-sm); font-weight: 700; color: var(--red); letter-spacing: .02em;
  margin-block-end: 1rem;
}
.hm-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.hm-title { font-family: var(--font-display-ar); font-weight: 900; font-size: var(--t-xl); line-height: 1.28; color: var(--paper-3); }
.hm-title em { font-style: normal; color: var(--paper); }
.hm-lead { font-size: var(--t-base); line-height: 2; color: rgba(247, 241, 220, .78); max-width: 58ch; margin-block-start: 1.1rem; }
.hm-more {
  display: inline-flex; align-items: center; gap: .5rem; margin-block-start: 2rem;
  font-weight: 700; color: var(--paper); border-block-end: 1px solid rgba(225, 215, 175, .35);
  padding-block-end: .3rem; transition: .3s;
}
.hm-more:hover { color: var(--paper-3); border-color: var(--paper-3); }

.hm-btn {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: var(--t-base);
  padding: .78em 1.6em; border-radius: 100px; transition: transform .3s, background .3s, color .3s;
}
.hm-btn.solid { background: var(--paper); color: #12110d; }
.hm-btn.solid:hover { background: var(--paper-3); transform: translateY(-2px); }
.hm-btn.ghost { border: 1px solid rgba(225, 215, 175, .4); color: var(--paper); }
.hm-btn.ghost:hover { border-color: var(--paper-3); color: var(--paper-3); transform: translateY(-2px); }
.hm-btn.red { background: var(--red); color: var(--paper-3); }
.hm-btn.red:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* reveal grammar — hidden ONLY when the cinema layer booted */
html.hm .hm-rev { opacity: 0; transform: translateY(30px); }
html.hm .hm-rev.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ==========================================================================
   S1 — HERO: أقوى شغل الآن (الشاورما)
   ========================================================================== */
.hm-hero { display: flex; flex-direction: column; height: calc(100svh - var(--navh)); min-height: 560px; }
.hm-hero-poster { position: relative; flex: 1 1 0; min-height: 40svh; overflow: hidden; background: #d9cfa8; }
.hm-hero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; display: block; }
/* soft ink feather so the poster melts into the band below */
.hm-hero-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 6, .12), transparent 18%, transparent 78%, rgba(7, 7, 6, .55)); }
/* the band is now a GLASS TICKET riding the poster's bottom edge */
.hm-hero-band {
  background: linear-gradient(165deg, rgba(20, 18, 13, .82), rgba(11, 11, 9, .88));
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(225, 215, 175, .18);
  box-shadow: inset 0 4px 4px -2px rgba(255, 255, 255, .3), inset 0 -6px 6px -3px rgba(0, 0, 0, .25),
              0 18px 44px rgba(0, 0, 0, .5);
  border-radius: 16px;
  border-inline-start: 4px solid var(--red); /* the ticket stub edge */
  margin-inline: clamp(1rem, 4vw, 3rem);
  margin-block-start: clamp(-56px, -4vw, -34px); /* rides over the poster */
  position: relative; z-index: 3;
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
}
.hm-hero-band .wrap { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(1.4rem, 4vw, 3rem); }
.hm-hero-kicker { font-size: var(--t-sm); font-weight: 700; color: var(--red); margin-block-end: .55rem; }
.hm-hero-title { font-family: var(--font-display-ar); font-weight: 900; font-size: var(--t-xl); line-height: 1.2; color: var(--paper-3); }
.hm-hero-stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-block-start: .9rem; font-size: var(--t-sm); color: rgba(247, 241, 220, .75); }
.hm-hero-stats i { font-style: normal; color: var(--red); }
.hm-hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; justify-self: end; }
@media (max-width: 760px) {
  .hm-hero { height: auto; min-height: calc(100svh - var(--mobile-navh, 118px)); }
  .hm-hero-poster { min-height: 0; flex: none; aspect-ratio: 4 / 4.4; }
  .hm-hero-poster img { object-position: center 10%; }
  .hm-hero-band { flex: 1; display: flex; align-items: center; }
  .hm-hero-band .wrap { grid-template-columns: 1fr; gap: 1.3rem; }
  .hm-hero-ctas { flex-direction: row; flex-wrap: wrap; justify-self: start; }
}

/* ==========================================================================
   S2 — بيت الشغل اللي تشوفه (image-backed)
   ========================================================================== */
.hm-house { position: relative; overflow: hidden; }
@media (min-width: 761px) {
  .hm-house { min-height: 100vh; display: flex; align-items: flex-end; }
  .hm-house-media { position: absolute; inset: 0; }
  .hm-house-media img { width: 100%; height: 112%; object-fit: cover; object-position: center 32%; }
  .hm-house-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(7, 7, 6, .18) 20%, rgba(7, 7, 6, .55) 58%, rgba(7, 7, 6, .94)); }
  .hm-house-copy { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5rem); }
}
@media (max-width: 760px) {
  .hm-house-media { aspect-ratio: 16 / 11; }
  .hm-house-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
  .hm-house-copy { padding-block: 2.4rem 3.4rem; background: #0b0b09; }
}
.hm-lockup { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-anisette); letter-spacing: .12em; font-size: .82rem; color: rgba(247, 241, 220, .8); margin-block-end: 1.1rem; }
.hm-lockup i { font-style: normal; color: var(--red); }
.hm-house-title { font-family: var(--font-display-ar); font-weight: 900; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.2; color: var(--paper-3); max-width: 14ch; }
.hm-house-lead { font-size: var(--t-base); line-height: 2.05; color: rgba(247, 241, 220, .82); max-width: 46ch; margin-block-start: 1.2rem; }

/* ==========================================================================
   S3 — الأعمال (film strip: pan on desktop / stack on mobile)
   ========================================================================== */
.hm-works { background: #0b0b09; border-block: 1px solid rgba(225, 215, 175, .08); }
.hm-works .hm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.hm-strip-shell { overflow: hidden; }
.hm-strip { display: flex; gap: clamp(1rem, 2vw, 1.6rem); padding-inline: clamp(1.1rem, 4vw, 2.6rem); width: max-content; }
.hm-frame {
  width: min(58vw, 680px); flex: none; background: #12110e; border: 1px solid rgba(225, 215, 175, .12);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease);
}
.hm-frame:hover { transform: translateY(-6px); }
.hm-frame-art { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.hm-frame-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-frame-art.type { display: grid; place-items: center; padding: 1.5rem; }
.hm-frame-art.type b { font-family: var(--font-display-ar); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.25; text-align: center; }
.hm-frame-art.t-red { background: linear-gradient(160deg, #8d1f18, #5c130e); } .hm-frame-art.t-red b { color: var(--paper-3); }
.hm-frame-art.t-olive { background: linear-gradient(160deg, #5b6b38, #39441f); } .hm-frame-art.t-olive b { color: var(--paper-3); }
.hm-frame-art.t-paper { background: linear-gradient(160deg, #E1D7AF, #cbbf8f); } .hm-frame-art.t-paper b { color: #17150d; }
/* caption UNDER the art — never over it */
.hm-frame-cap { padding: 1rem 1.2rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.hm-frame-cap b { font-family: var(--font-display-ar); font-weight: 900; font-size: var(--t-lg); color: var(--paper-3); line-height: 1.35; }
.hm-frame-cap span { font-size: var(--t-sm); color: rgba(247, 241, 220, .65); line-height: 1.8; }
.hm-frame-cap span i { font-style: normal; color: var(--red); }
@media (max-width: 760px) {
  .hm-strip { flex-direction: column; width: 100%; padding-inline: 0; }
  .hm-frame { width: 100%; }
  .hm-works .wrap-strip { padding-inline: 1.1rem; }
}

/* ==========================================================================
   S4 — نصنع تجارب كاملة (craft, textured)
   ========================================================================== */
.hm-craft { position: relative; overflow: hidden; }
.hm-craft-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .38; filter: saturate(.9) brightness(1.15); }
.hm-craft::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #070706 0%, rgba(7, 7, 6, .38) 30%, rgba(7, 7, 6, .38) 70%, #070706 100%); z-index: 1; }
.hm-craft .wrap { position: relative; z-index: 2; }
.hm-stamps { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 1.6vw, 1.1rem); margin-block: clamp(1.8rem, 4vw, 2.6rem); max-width: 720px; }
.hm-stamp {
  font-family: var(--font-display-ar); font-weight: 900; font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--paper); border: 2px solid rgba(225, 215, 175, .55); border-radius: 10px;
  padding: .45em 1em; background: rgba(7, 7, 6, .5);
  --rot: -2deg; transform: rotate(var(--rot));
}
.hm-stamp:nth-child(even) { --rot: 1.6deg; }
.hm-stamp.hot { border-color: rgba(201, 58, 50, .8); color: #e8b6b1; }
/* the stamp SLAMS: big + flat → settles into its tilt (CSS-driven, deterministic) */
html.hm .hm-stamps .hm-stamp { opacity: 0; transform: scale(1.45) rotate(0deg); }
html.hm .hm-stamps.in .hm-stamp {
  opacity: 1; transform: scale(1) rotate(var(--rot));
  transition: opacity .3s ease-out, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
html.hm .hm-stamps.in .hm-stamp:nth-child(2) { transition-delay: .09s; }
html.hm .hm-stamps.in .hm-stamp:nth-child(3) { transition-delay: .18s; }
html.hm .hm-stamps.in .hm-stamp:nth-child(4) { transition-delay: .27s; }
html.hm .hm-stamps.in .hm-stamp:nth-child(5) { transition-delay: .36s; }
html.hm .hm-stamps.in .hm-stamp:nth-child(6) { transition-delay: .45s; }

/* ==========================================================================
   S5 — البراندات (reuses .ip-portal-grid from inner.css)
   S6 — آخر القطع (products)
   ========================================================================== */
.hm-prods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.hm-prod {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: radial-gradient(90% 70% at 50% 30%, #1c1a14, #0e0d0a 78%);
  border: 1px solid rgba(225, 215, 175, .12); border-radius: 16px;
  padding: 1.6rem 1.1rem 1.4rem; gap: .35rem; transition: transform .35s var(--ease), border-color .35s;
}
.hm-prod:hover { transform: translateY(-6px); border-color: rgba(225, 215, 175, .3); }
.hm-prod img { height: clamp(150px, 16vw, 210px); width: auto; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); margin-block-end: .7rem; transition: transform .35s var(--ease); }
.hm-prod:hover img { transform: scale(1.05) rotate(-1.5deg); }
.hm-prod small { font-family: var(--font-anisette); font-size: .66rem; letter-spacing: .16em; color: var(--red); }
.hm-prod b { font-weight: 900; font-size: var(--t-base); color: var(--paper-3); line-height: 1.6; }
.hm-prod .hm-shop { margin-block-start: .4rem; font-size: var(--t-sm); font-weight: 700; color: var(--paper); opacity: .8; transition: opacity .3s; }
.hm-prod:hover .hm-shop { opacity: 1; }
@media (max-width: 760px) { .hm-prods-grid { grid-template-columns: 1fr 1fr; } .hm-prod img { height: 128px; } }

/* ==========================================================================
   S8 — النشرة (newsletter)
   ========================================================================== */
.hm-news-card {
  display: grid; grid-template-columns: 1fr 1.2fr; overflow: hidden; align-items: stretch;
  background: #12110e; border: 1px solid rgba(225, 215, 175, .14); border-radius: 18px;
}
.hm-news-media { position: relative; min-height: 280px; }
.hm-news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hm-news-media figcaption {
  position: absolute; inset-inline-start: 1rem; inset-block-end: .9rem; z-index: 2;
  font-size: .74rem; color: rgba(247, 241, 220, .85); background: rgba(7, 7, 6, .55);
  padding: .3em .8em; border-radius: 100px; backdrop-filter: blur(3px);
}
.hm-news-copy { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; }
.hm-news-copy .hm-title { font-size: var(--t-lg); }
@media (max-width: 760px) {
  .hm-news-card { grid-template-columns: 1fr; }
  .hm-news-media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- restraint ---------- */
@media (prefers-reduced-motion: reduce) {
  html.hm .hm-rev { opacity: 1; transform: none; }
  .hm-frame, .hm-prod, .hm-btn, .hm-more { transition: none; }
}

/* ============================================================
   DIRECTOR'S CUT — 2026-07-02 (the film upgrades)
   ============================================================ */

/* ---- text-fill-on-scroll (Apple/Terminal mechanic, background-clip) ---- */
html.hm .hm-fill {
  background: linear-gradient(90deg, var(--paper-3) 50%, rgba(247, 241, 220, .22) 50%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
html:not(.hm) .hm-fill { color: var(--paper-3); }

/* ---- wireframe production tags over the house photo (Terminal mechanic) ---- */
.hm-tag {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .5rem;
  font-family: 'Courier New', monospace; font-size: .68rem; letter-spacing: .04em;
  color: var(--paper); pointer-events: none;
}
.hm-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(201, 58, 50, .8); flex: none; }
.hm-tag i { font-style: normal; background: rgba(7, 7, 6, .62); border: 1px solid rgba(225, 215, 175, .28); border-radius: 4px; padding: .28em .6em; backdrop-filter: blur(3px); white-space: nowrap; }
.hm-tag .tag-line { width: 42px; height: 1px; background: linear-gradient(90deg, var(--red), transparent); flex: none; }
html.hm .hm-tag { opacity: 0; transform: translateY(8px); }
html.hm .hm-tag.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.hm .hm-tag.in:nth-of-type(2) { transition-delay: .25s; }
html.hm .hm-tag.in:nth-of-type(3) { transition-delay: .5s; }
@media (max-width: 760px) { .hm-tag { font-size: .58rem; } .hm-tag.m-hide { display: none; } }

/* ---- chapter divider: B22 letterspacing scrub (Terminal "YOS" mechanic) ---- */
.hm-divider { padding-block: clamp(3rem, 8vw, 6rem); text-align: center; overflow: hidden; }
.hm-divider b {
  display: block; font-family: var(--font-anisette); font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 7rem); color: var(--paper); line-height: 1;
  letter-spacing: .08em; white-space: nowrap;
}
.hm-divider span { display: inline-block; margin-block-start: 1rem; font-size: var(--t-sm); color: var(--red); font-weight: 700; }
.hm-divider .dv-rule { width: 54px; height: 2px; background: var(--red); margin: 1.1rem auto 0; }

/* ---- LIGHT ACT: sand sheet for آخر القطع (ochi sheet + Akaru color-block) ----
   (.home-page section… beats main.css .poster-page section:not(.page-hero)) */
.home-page section.hm-sec.sand-act {
  background: var(--paper); color: #17150d;
  border-radius: 28px; margin-inline: clamp(.5rem, 1.5vw, 1.2rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hm-sec.sand-act .hm-title { color: #17150d; }
.hm-sec.sand-act .hm-eyebrow { color: var(--red); }
.hm-sec.sand-act .hm-prod {
  background: radial-gradient(90% 70% at 50% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 78%);
  border-color: rgba(23, 21, 13, .14);
}
.hm-sec.sand-act .hm-prod b { color: #17150d; }
.hm-sec.sand-act .hm-prod small { color: var(--red); }
.hm-sec.sand-act .hm-prod .hm-shop { color: #17150d; opacity: .7; }
.hm-sec.sand-act .hm-prod:hover { border-color: rgba(23, 21, 13, .3); }
.hm-sec.sand-act .hm-prod img { filter: drop-shadow(0 18px 26px rgba(23, 21, 13, .28)); }

/* ---- THE END: giant cropped wordmark (Akaru/basement footer mechanic) ---- */
.hm-endcard { position: relative; overflow: hidden; padding-block-start: clamp(2rem, 5vw, 4rem); }
.hm-endcard img {
  display: block; width: min(120%, 1500px); margin-inline: auto;
  margin-block-end: -6%; /* cropped by the section edge — the film's last frame */
  filter: brightness(0) invert(.93) sepia(.32) saturate(1.35);
  -webkit-filter: brightness(0) invert(.93) sepia(.32) saturate(1.35);
  opacity: .3; /* the ghost of the last frame — present, not shouting */
}
.hm-endcard .hm-endline {
  position: absolute; inset-inline: 0; inset-block-end: 12%; text-align: center;
  font-size: var(--t-sm); color: rgba(247, 241, 220, .65); letter-spacing: .06em;
}
@media (max-width: 760px) {
  /* mobile: the last frame sits centered and whole — only a gentle bottom crop */
  .hm-endcard img { width: 94%; margin-inline: auto; margin-block-end: -3%; }
  .hm-endcard { padding-block-start: 2.4rem; }
}

/* ============================================================
   DIRECTOR'S CUT II — more scroll-cinema, balanced (2026-07-02)
   ============================================================ */

/* strip progress counter (numbered chapters law) */
.hm-strip-count {
  font-family: 'Courier New', monospace; font-size: .78rem; letter-spacing: .1em;
  color: rgba(247, 241, 220, .55); white-space: nowrap;
}
.hm-strip-count b { color: var(--red); font-weight: 700; }
@media (max-width: 760px) { .hm-strip-count { display: none; } }

/* portals: subtle room-light tilt on hover (desktop pointer only) */
@media (hover: hover) and (pointer: fine) {
  .home-page .ip-portal { transform-style: preserve-3d; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
  .home-page .ip-portal:hover { transform: perspective(900px) rotateX(2.2deg) rotateY(-2deg) translateY(-6px); }
}

/* the sand sheet arrives like paper sliding over the stage */
html.hm .home-page section.hm-sec.sand-act { will-change: transform; }

/* endcard drifts like the last frame settling */
.hm-endcard img { will-change: transform; }

/* ============================================================
   SCENE 0 — THE OPENING: scroll-driven countdown (the signature)
   «A Night at Bo3omar's Cinema» — academy leader → flash → wordmark
   ============================================================ */
/* static/no-GSAP/reduced-motion users skip the countdown entirely */
html:not(.hm) .cn-open { display: none; }

.cn-open { position: relative; background: #050504; overflow-x: clip; }
.cn-stage { height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; background: #050504; }
/* desktop: the nav+ticker bar sits above the flow — subtract it so the
   cue is inside the first paint */
@media (min-width: 761px) { .cn-stage { height: calc(100svh - var(--navh)); } }

/* the academy leader */
.cn-leader { position: relative; width: min(50vh, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.cn-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(225, 215, 175, .28); }
.cn-ring.r1 { inset: 0; }
.cn-ring.r2 { inset: 11%; border-color: rgba(225, 215, 175, .16); }
.cn-cross { position: absolute; background: rgba(225, 215, 175, .14); }
.cn-cross.h { inset-inline: -12vw; block-size: 1px; inset-block-start: 50%; }
.cn-cross.v { inset-block: -12vh; inline-size: 1px; inset-inline-start: 50%; }
/* rotating sweep wedge (the clock arm) */
.cn-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(rgba(225, 215, 175, .13) 0 14%, transparent 14% 100%);
  transform-origin: 50% 50%;
}
.cn-nums { position: absolute; inset: 0; }
.cn-nums b {
  font-family: var(--font-display-ar); font-weight: 900;
  font-size: clamp(9rem, 34vh, 17rem); line-height: 1; color: var(--paper);
  text-shadow: 0 0 60px rgba(225, 215, 175, .12);
}

/* film scratch flicker (one thin line, JS moves it per tick) */
.cn-scratch {
  position: absolute; inset-block: 0; inset-inline-start: 30%; width: 2px; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(245, 240, 225, .75) 20%, rgba(245, 240, 225, .2) 60%, transparent);
  pointer-events: none;
}

/* the single white flash frame */
/* fixed: they play OVER the viewport while the film is already arriving */
.cn-flash { position: fixed; inset: 0; z-index: 96; background: #f7f3e8; opacity: 0; pointer-events: none; }

/* the wordmark under the projector cone */
.cn-logo { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cn-logo img {
  width: min(72vw, 880px); position: relative; z-index: 2;
  /* the artwork is ink-on-transparent — project it in SAND light */
  filter: brightness(0) invert(.93) sepia(.32) saturate(1.35);
  -webkit-filter: brightness(0) invert(.93) sepia(.32) saturate(1.35);
}
.cn-cone {
  /* physical coords — logical start flips under RTL and pushed the cone off-canvas */
  position: absolute; top: -4%; left: 50%; translate: -50% 0;
  width: min(90vw, 900px); height: 78%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(242, 236, 216, .16), rgba(242, 236, 216, .05) 55%, transparent);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(2px);
}
.cn-dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cn-dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(242, 236, 216, .5); animation: cnDust 7s linear infinite;
}
.cn-dust i:nth-child(2n) { animation-duration: 9s; width: 2px; height: 2px; }
.cn-dust i:nth-child(3n) { animation-delay: -3s; }
.cn-dust i:nth-child(4n) { animation-delay: -5.5s; opacity: .6; }
@keyframes cnDust {
  0% { transform: translateY(-8vh) translateX(0); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .5; }
  100% { transform: translateY(64vh) translateX(2vw); opacity: 0; }
}

/* the taught mechanic — once */
.cn-cue {
  /* in-flow under the leader circle — always visible at first paint,
     immune to nav/ticker offsets */
  margin-block-start: clamp(.9rem, 2.2vh, 1.6rem);
  text-align: center; font-size: var(--t-sm); color: rgba(247, 241, 220, .6); letter-spacing: .04em;
}
.cn-cue::after { content: "↓"; display: block; margin-block-start: .3rem; color: var(--red); animation: cnCue 1.6s ease-in-out infinite; }
@keyframes cnCue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 760px) {
  .cn-leader { width: min(72vw, 320px); }
  .cn-nums b { font-size: clamp(7rem, 30vh, 11rem); }
  .cn-logo img { width: 88vw; }
}
@media (prefers-reduced-motion: reduce) { .cn-open { display: none; } .cn-dust i, .cn-cue::after { animation: none; } }
