/* reaimagined.world · countdown. Same ground as the main site: black, paper type, one coral accent, IBM Plex Sans Arabic (OFL). */
@font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url(/world/fonts/IBMPlexSansArabic-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url(/world/fonts/IBMPlexSansArabic-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Plex'; font-weight: 700; font-display: swap; src: url(/world/fonts/IBMPlexSansArabic-Bold.woff2) format('woff2'); }
:root {
  --bg: #000; --ink: #FBF6EE; --s2: #CFC3B8; --mu: #968B80; --ac: #EE5E5D; --ln: rgba(251, 246, 238, .16);
  --gut: clamp(16px, 4.5vw, 72px); --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: 'Plex', system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis: none; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
.en { direction: ltr; }
.ac { color: var(--ac); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grain { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .06; mix-blend-mode: overlay; 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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(18px, env(safe-area-inset-top)) var(--gut) 0; position: relative; z-index: 2; }
.byline { display: flex; align-items: center; gap: .55em; font-size: 15px; }
.brand img { display: block; width: 118px; height: auto; filter: invert(1); opacity: .95; }
.credit { font-weight: 400; color: var(--ink); white-space: nowrap; letter-spacing: -.005em; text-decoration: none; transition: color .25s; }
a.credit:hover { color: var(--ac); }
.credit i { font-style: normal; font-weight: 400; color: var(--mu); margin-inline-end: .2em; }
.partners { display: flex; align-items: center; gap: 18px; }
.partners a { display: block; opacity: .88; transition: opacity .25s; }
.partners a:hover { opacity: 1; }
.partners img { display: block; width: auto; }
.lg-cdw { height: 40px; }
.lg-sl { height: 21px; }

/* main column */
.wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gut); text-align: center; }
.stage { position: relative; width: 100%; flex: 1 1 0; min-height: 190px; margin: clamp(6px, 2vh, 24px) 0 clamp(8px, 2.2vh, 26px); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tag { position: absolute; top: 0; left: 0; pointer-events: none; white-space: nowrap; font-size: 12px; line-height: 1.45; color: var(--s2); opacity: 0; transition: opacity .25s; text-align: start; padding: 9px 13px 10px; background: rgba(0, 0, 0, .86); border: 1px solid var(--ln); border-radius: 12px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tag.on { opacity: 1; }
.tag b { font-weight: 700; display: block; font-size: 13px; color: var(--ink); }
.tag span { display: block; }
.tag i { font-style: normal; display: block; color: var(--mu); direction: ltr; text-align: right; font-size: 11.5px; }

.line { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: clamp(15px, 1.35vw, 20px); line-height: 1.45; color: var(--ink); }
.line .en { font-weight: 400; font-size: clamp(12.5px, .95vw, 14px); color: var(--mu); }

.count { display: flex; justify-content: center; margin-top: clamp(10px, 2.4vh, 28px); }
.u { display: flex; flex-direction: column; align-items: center; padding: 0 clamp(12px, 2.6vw, 40px); }
.u + .u { border-left: 1px solid var(--ln); }
.u b { font-weight: 700; font-size: clamp(44px, min(8.4vw, 11.5vh), 132px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.u span { margin-top: 10px; font-size: 13px; line-height: 1.2; color: var(--s2); }
.u i { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mu); font-weight: 700; margin-top: 3px; }
.sub { display: flex; gap: 10px; justify-content: center; align-items: baseline; flex-wrap: wrap; margin-top: clamp(10px, 1.8vh, 20px); font-size: 13px; color: var(--s2); }
.sub .en { font-size: 12px; color: var(--mu); }
.sub.done span { color: var(--ac); }

.date b { display: block; font-weight: 700; font-size: clamp(64px, 13vw, 200px); line-height: 1; letter-spacing: -.03em; margin-top: clamp(10px, 2vh, 24px); }

.open { display: flex; flex-direction: column; align-items: center; margin-top: clamp(10px, 2.4vh, 28px); animation: rise .9s var(--ease) both; }
.o1 { font-weight: 700; font-size: clamp(40px, min(7vw, 10vh), 104px); line-height: 1.1; }
.o1e { font-weight: 700; font-size: clamp(18px, 2vw, 30px); letter-spacing: -.01em; color: var(--s2); margin-top: 2px; }
.enter { margin-top: clamp(14px, 2.4vh, 26px); display: inline-flex; gap: 10px; align-items: baseline; padding: 12px 22px; border-radius: 99px; background: var(--ac); color: #000; text-decoration: none; font-weight: 700; font-size: 16px; transition: transform .3s var(--ease); }
.enter:hover { transform: translateY(-2px); }
.enter span[lang] { font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.where { display: flex; flex-direction: column; gap: 2px; margin: clamp(14px, 2.6vh, 30px) 0 0; font-size: 13.5px; line-height: 1.5; color: var(--s2); }
.where .en { font-size: 12.5px; color: var(--mu); }

/* footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 2.4vh, 26px) var(--gut) max(18px, env(safe-area-inset-bottom)); position: relative; z-index: 2; }
.soon { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; line-height: 1.4; }
.soon .en { font-weight: 400; font-size: 12.5px; color: var(--mu); }
.hold { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border: 1px solid var(--ln); border-radius: 99px; text-align: right; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: border-color .3s, background .3s; }
.hold:hover, .hold.on { border-color: rgba(238, 94, 93, .6); }
.hold.on { background: rgba(238, 94, 93, .08); }
.hold svg { flex: none; transform: rotate(-90deg); }
.hold circle { fill: none; stroke-width: 2; }
.hold .r0 { stroke: var(--ln); }
.hold .r1 { stroke: var(--ac); stroke-dasharray: 62.83; stroke-dashoffset: 62.83; stroke-linecap: round; }
.hl { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.hl small { font-size: 11px; color: var(--mu); }
.url { font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--s2); }

/* portrait screens: the stage hugs the drawing instead of filling the height */
@media (max-aspect-ratio: 1/1) { .stage { flex: 0 0 auto; min-height: 0; aspect-ratio: 944 / 520; } }

/* phones */
@media (max-width: 700px) {
  .brand img { width: 104px; }
  .byline { flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12.5px; }
  .partners { gap: 14px; }
  .lg-cdw { height: 32px; } .lg-sl { height: 17px; }
  .u { padding: 0 clamp(8px, 3.4vw, 16px); }
  .u b { font-size: clamp(38px, 12.5vw, 64px); }
  .u span { font-size: 12px; margin-top: 8px; }
  .u i { font-size: 9px; letter-spacing: .14em; }
  .where { font-size: 12.5px; }
  .where .en { font-size: 11.5px; }
  .where .wh { display: block; font-size: 0; } .where .wh > span { font-size: 12.5px; } .where .en .wh > span { font-size: 11.5px; }
  .foot { flex-direction: column-reverse; align-items: center; text-align: center; gap: 14px; }
  .soon { align-items: center; }
}

/* social images (?post=feed|story|og): a still at the exact pixel size, no controls, type sized for a phone feed */
.post .hold, .post .tag, .post .count, .post .sub { display: none !important; }
.post .stage { touch-action: auto; }
.post-feed, .post-story { --gut: 64px; }
:is(.post-feed, .post-story) .top { padding-top: 60px; }
:is(.post-feed, .post-story) .brand img { width: 180px; }
:is(.post-feed, .post-story) .byline { font-size: 30px; }
:is(.post-feed, .post-story) .partners { gap: 30px; }
:is(.post-feed, .post-story) .partners a { opacity: .92; }
:is(.post-feed, .post-story) .lg-cdw { height: 78px; } :is(.post-feed, .post-story) .lg-sl { height: 40px; }
:is(.post-feed, .post-story) .stage { flex: 0 0 auto; aspect-ratio: auto; height: 470px; margin: 40px 0 34px; }
:is(.post-feed, .post-story) .line { font-size: 34px; } :is(.post-feed, .post-story) .line .en { font-size: 24px; }
:is(.post-feed, .post-story) .date b { font-size: 200px; margin-top: 18px; }
:is(.post-feed, .post-story) .where { font-size: 25px; margin-top: 26px; gap: 6px; } :is(.post-feed, .post-story) .where .en { font-size: 22px; }
:is(.post-feed, .post-story) .where .wh { display: block; font-size: 0; } :is(.post-feed, .post-story) .where .wh > span { font-size: 25px; } :is(.post-feed, .post-story) .where .en .wh > span { font-size: 22px; }
:is(.post-feed, .post-story) .foot { padding-bottom: 56px; }
:is(.post-feed, .post-story) .soon { font-size: 27px; } :is(.post-feed, .post-story) .soon .en { font-size: 21px; }
:is(.post-feed, .post-story) .url { font-size: 26px; }
.post-story .top { padding-top: 250px; }          /* clear of the story header */
.post-story .stage { height: 520px; margin: 90px 0 50px; }
.post-story .date b { font-size: 240px; margin-top: 40px; }
.post-story .foot { flex-direction: column-reverse; align-items: center; text-align: center; gap: 26px; padding-bottom: 300px; }
.post-story .soon { align-items: center; }
.post-og { --gut: 56px; }
.post-og .top { padding-top: 40px; }
.post-og .brand img { width: 140px; }
.post-og .byline { font-size: 22px; }
.post-og .lg-cdw { height: 58px; } .post-og .lg-sl { height: 30px; } .post-og .partners { gap: 24px; }
.post-og .wrap { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: auto; align-content: center; column-gap: 48px; text-align: right; }
.post-og .stage { grid-column: 1; grid-row: 1 / span 3; height: 380px; margin: 0; }
.post-og .line, .post-og .date, .post-og .where { grid-column: 2; }
.post-og .line { font-size: 22px; } .post-og .line .en { font-size: 16px; }
.post-og .date b { font-size: 120px; margin: 6px 0 0; text-align: right; }
.post-og .where { font-size: 15px; margin-top: 14px; } .post-og .where .en { font-size: 14px; }
.post-og .where .wh { display: block; font-size: 0; } .post-og .where .wh > span { font-size: 15px; } .post-og .where .en .wh > span { font-size: 14px; }
.post-og .foot { padding-bottom: 36px; }
.post-og .soon { font-size: 16px; } .post-og .url { font-size: 17px; }

/* Netlify's free-plan badge (iframe#nl-badge-frame, bottom-right, about 200×64) is injected at the edge. While it is on the
   page, lift the footer clear of it; switching the badge off in Netlify removes the frame and this rule with it. */
html:has(#nl-badge-frame) .foot { padding-bottom: max(82px, env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) { .open { animation: none; } .tag { transition: none; } }
