/* MUHRA — interactive guide.
   Measurements are taken from the 1920 × 1020 reference recording and
   expressed relative to the viewport, so the composition holds at other sizes. */

@font-face { font-family: 'Plex Arabic'; font-weight: 100; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-arabic-arabic-100-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+0660-0669; }
@font-face { font-family: 'Plex Arabic'; font-weight: 200; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-arabic-arabic-200-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+0660-0669; }
@font-face { font-family: 'Plex Arabic'; font-weight: 300; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+0660-0669; }
@font-face { font-family: 'Jost'; font-weight: 200; font-display: swap; src: url('../assets/fonts/jost-latin-200-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-display: swap; src: url('../assets/fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url('../assets/fonts/jost-latin-400-normal.woff2') format('woff2'); }

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #05090b;
  --fg: #e4f0f0;
  --fg-2: rgba(228, 240, 240, 0.74);
  --fg-3: rgba(228, 240, 240, 0.46);
  --fg-4: rgba(228, 240, 240, 0.2);
  --line: rgba(205, 232, 232, 0.24);
  --line-strong: rgba(225, 242, 242, 0.62);
  --accent: #7fd0cf;
  --accent-deep: #2aa3a8;
  --glow: rgba(64, 176, 182, 0.42);
  --ink: #020709;
  --panel: rgba(3, 8, 10, 0.97);
  --shade-a: rgba(3, 9, 11, 0.62);
  --shade-b: rgba(3, 9, 11, 0);
  --media-filter: saturate(0.82) contrast(1.04) brightness(0.86);
  --grid: rgba(190, 230, 230, 0.05);
  --font: 'Jost', 'Plex Arabic', system-ui, sans-serif;
  --edge: clamp(18px, 2.35vw, 46px);
  --top: clamp(18px, 2.4vw, 46px);
  --bottom: clamp(16px, 2.4vw, 46px);
  --label: clamp(10.5px, 0.7vw, 14px);
  --track: 0.32em;
  --ease: cubic-bezier(.65, 0, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #eef5f5;
  --fg: #0b3a44;
  --fg-2: rgba(11, 58, 68, 0.8);
  --fg-3: rgba(11, 58, 68, 0.55);
  --fg-4: rgba(11, 58, 68, 0.22);
  --line: rgba(14, 94, 111, 0.28);
  --line-strong: rgba(11, 58, 68, 0.6);
  --accent: #1f7a85;
  --accent-deep: #0e5e6f;
  --glow: rgba(42, 163, 168, 0.35);
  --ink: #0d4753;
  --panel: rgba(244, 249, 249, 0.97);
  --shade-a: rgba(240, 247, 247, 0.78);
  --shade-b: rgba(240, 247, 247, 0);
  --media-filter: saturate(0.85) contrast(1.02) brightness(1.02);
  --grid: rgba(14, 94, 111, 0.06);
  color-scheme: light;
}
[lang='ar'] { --track: 0; }

/* ── base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .8s var(--ease);
}
[lang='ar'] body { font-weight: 200; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
[tabindex='-1']:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label {
  font-size: var(--label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 300;
}
[lang='ar'] .label { font-size: calc(var(--label) * 1.18); word-spacing: 0.2em; }

#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
#bg.bg--fallback { background: radial-gradient(ellipse at 40% 30%, #0e2a31 0%, var(--bg) 60%); }
:root[data-theme='light'] #bg.bg--fallback { background: radial-gradient(ellipse at 40% 30%, #d4e8e9 0%, var(--bg) 60%); }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .06;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
:root[data-theme='light'] .grain { opacity: .05; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

#stage { position: fixed; inset: 0; z-index: 1; }
.view { position: absolute; inset: 0; overflow: hidden; }

/* ── fixed frame ────────────────────────────────────────────────────── */
.frame {
  position: fixed; inset-inline: var(--edge); z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transition: opacity 1s var(--ease);
  pointer-events: none;
}
.frame > * { pointer-events: auto; }
body.frame-ready .frame { opacity: 1; }
.frame--top { top: var(--top); height: 32px; }
.frame--bottom { bottom: var(--bottom); height: 24px; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--fg-2); transition: color .3s; }
.icon-btn:hover { color: var(--fg); }

/* menu icon: two lines → arrow → × (reference 0:23.6–0:24.0) */
.menu-btn { position: relative; }
.menu-btn span {
  position: absolute; inset-inline-start: 6px; width: 20px; height: 1px; background: currentColor;
  transition: transform .45s var(--ease), width .45s var(--ease), top .45s var(--ease);
}
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn.is-arrow span:nth-child(1) { width: 12px; transform: translateY(2px) rotate(-35deg); }
.menu-btn.is-arrow span:nth-child(2) { width: 12px; transform: translateY(-3px) rotate(35deg); }
[dir='rtl'] .menu-btn.is-arrow span:nth-child(1) { transform: translateY(2px) rotate(35deg); }
[dir='rtl'] .menu-btn.is-arrow span:nth-child(2) { transform: translateY(-3px) rotate(-35deg); }
.menu-btn.is-open span { top: 16px; width: 22px; inset-inline-start: 5px; }
.menu-btn.is-open span:nth-child(1) { transform: rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { transform: rotate(-45deg); }

.brand {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .7em; height: 32px;
  color: var(--fg-2); font-size: clamp(13px, 0.95vw, 19px); white-space: nowrap;
  transition: color .3s;
}
.brand:hover { color: var(--fg); }
.brand__word { letter-spacing: 0.9em; margin-inline-end: -0.9em; font-weight: 300; }
[lang='ar'] .brand__word { letter-spacing: 0; margin: 0; font-size: 1.45em; font-weight: 200; }
.brand__mark { width: 1.05em; height: 1.05em; stroke: currentColor; stroke-width: 6; fill: none; opacity: .8; }

.tree-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; }
body.view-closable .tree-btn { opacity: 0; pointer-events: none; }
.frame--bottom .label { transition: color .3s; }
.frame--bottom button.label:hover, .frame--bottom a.label:hover { color: var(--fg); }
.frame__end { display: flex; align-items: center; gap: 18px; }
.placeholder-note { position: absolute; left: 50%; transform: translateX(-50%); opacity: .45; font-size: 9.5px; }

/* sound: five bars that move while sound is on (reference bottom right) */
.sound-btn { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 16px; width: 22px; }
.sound-btn i { display: block; width: 1.5px; height: 30%; background: currentColor; transition: height .4s; }
.sound-btn.is-on i { animation: bars 1.1s ease-in-out infinite alternate; }
.sound-btn.is-on i:nth-child(2) { animation-delay: -.3s; } .sound-btn.is-on i:nth-child(3) { animation-delay: -.7s; }
.sound-btn.is-on i:nth-child(4) { animation-delay: -.15s; } .sound-btn.is-on i:nth-child(5) { animation-delay: -.5s; }
.sound-btn:not(.is-on) i:nth-child(2n) { height: 45%; }
@keyframes bars { from { height: 20%; } to { height: 100%; } }

.view-close {
  position: fixed; top: var(--top); inset-inline-end: var(--edge); z-index: 31;
  width: 32px; height: 32px; color: var(--fg-2);
}
.view-close span { position: absolute; top: 16px; left: 5px; width: 22px; height: 1px; background: currentColor; transform: rotate(45deg); transition: transform .5s var(--ease); }
.view-close span + span { transform: rotate(-45deg); }
.view-close:hover span { transform: rotate(135deg); } .view-close:hover span + span { transform: rotate(45deg); }

/* ── loader & logo build (reference 0:03–0:09) ─────────────────────── */
.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--bg); transition: background-color 1s var(--ease); }
.loader.is-building { background: transparent; }
.loader__glow {
  position: absolute; width: 28vmin; height: 28vmin; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: .8; transform: scale(1.05); } }
.loader__trace { position: absolute; width: 96px; height: 96px; overflow: visible; }
.loader__trace .trace { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__trace .head { fill: var(--fg); filter: drop-shadow(0 0 4px var(--accent)); }
.loader__pct { position: absolute; top: calc(50% + 66px); font-size: 10px; letter-spacing: .3em; color: var(--fg-3); }
.loader.is-building .loader__trace, .loader.is-building .loader__pct, .loader.is-building .loader__glow { opacity: 0; transition: opacity .35s; }
.build { position: absolute; display: flex; align-items: center; gap: 22px; height: 48px; }
.build__star { width: 48px; height: 48px; overflow: visible; stroke: var(--fg); stroke-width: 1.4; fill: none; opacity: 0; transition: transform 1s var(--ease), opacity .4s; transform: scale(4.2); }
.build__star line { transform-box: view-box; transform-origin: 0 0; vector-effect: non-scaling-stroke; }
.loader.is-building .build__star { opacity: 1; }
.loader.is-folded .build__star { transform: scale(.9) rotate(22.5deg); stroke-width: 3; }
.build__word {
  order: -1; font-size: 30px; letter-spacing: .9em; margin-inline-end: -.9em; color: var(--fg); font-weight: 300;
  opacity: 0; filter: blur(14px); transform: scale(1.06);
  transition: opacity 1.1s var(--ease) .25s, filter 1.3s var(--ease) .25s, transform 1.3s var(--ease) .25s, letter-spacing 1.3s var(--ease) .25s;
}
[lang='ar'] .build__word { letter-spacing: 0; margin: 0; font-size: 44px; font-weight: 200; }
.loader.is-folded .build__word { opacity: 1; filter: blur(0); transform: none; }
.loader.is-leaving { pointer-events: none; }
.loader.is-leaving .build { transition: opacity .4s .7s; opacity: 0; }

/* ── intro: episode picker (reference 0:10–0:14) ───────────────────── */
.intro { position: absolute; inset: 0; }
.intro__line {
  position: absolute; top: 47%; left: 20%; width: 60%; height: 20px; margin-top: -10px; overflow: visible;
  transform-origin: right center; transform: scaleX(0);
  transition: transform 1.4s var(--ease), top .9s var(--ease), left .9s var(--ease), width .9s var(--ease), opacity .4s var(--ease) .7s;
}
[dir='ltr'] .intro__line { transform-origin: left center; }
.intro__line line { stroke: var(--line-strong); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.intro__spark {
  position: absolute; top: 47%; right: 20%; width: 30px; height: 30px; margin: -15px -15px 0 0; opacity: 0;
  background:
    linear-gradient(var(--fg), var(--fg)) center / 1px 100% no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 100% 1px no-repeat,
    radial-gradient(circle, var(--fg) 0 1.5px, transparent 2.5px);
  transform: rotate(45deg) scale(.4); transition: opacity .6s, transform 1.2s var(--ease);
}
[dir='ltr'] .intro__spark { right: auto; left: 20%; margin: -15px 0 0 -15px; }
.view--intro.is-in .intro__line { transform: scaleX(1); }
.view--intro.is-in .intro__spark { opacity: .9; transform: rotate(0) scale(1); }

.intro__seasons { position: absolute; top: 47%; left: 50%; width: 150px; height: 104px; transform: translateX(-50%); margin-top: 0; }
.intro__seasons svg { width: 100%; height: 100%; overflow: visible; }
.arch { fill: transparent; stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 1.2 3; vector-effect: non-scaling-stroke; transition: fill .5s; }
.arch.is-on { fill: color-mix(in srgb, var(--fg) 16%, transparent); }
.intro__seasons text { fill: var(--fg-2); font-size: 15px; text-anchor: middle; font-family: var(--font); font-weight: 300; }
.season-hit { position: absolute; top: 0; width: 50%; height: 100%; }
.season-hit[data-side='l'] { left: 0; } .season-hit[data-side='r'] { right: 0; }
.intro__eps { position: absolute; top: calc(47% + 132px); left: 50%; transform: translateX(-50%); display: flex; gap: clamp(6px, 1.1vw, 20px); }
.ep-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; color: var(--fg-2); transition: color .3s, background-color .4s;
  border: 1px dotted transparent;
}
.ep-dot:hover { color: var(--fg); }
.ep-dot.is-on { border-color: var(--fg-2); background: color-mix(in srgb, var(--fg) 14%, transparent); color: var(--fg); }
.intro__hint { position: absolute; top: calc(47% + 190px); width: 100%; text-align: center; margin: 0; font-size: calc(var(--label) * .9); }
.intro__continue {
  position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%);
  font-size: clamp(16px, 1.45vw, 30px); letter-spacing: .32em; margin-inline-end: -.32em; color: var(--fg-2);
  padding: 10px 6px; transition: color .4s, letter-spacing .6s var(--ease);
}
[lang='ar'] .intro__continue { letter-spacing: 0; margin: 0; font-size: clamp(20px, 1.7vw, 34px); word-spacing: .3em; }
.intro__continue:hover { color: var(--fg); letter-spacing: .38em; }
[lang='ar'] .intro__continue:hover { letter-spacing: .04em; }
.intro__seasons, .intro__eps, .intro__hint, .intro__continue { opacity: 0; filter: blur(6px); transition: opacity 1s var(--ease), filter 1s var(--ease), color .4s; }
.view--intro.is-in .intro__seasons { opacity: 1; filter: none; transition-delay: .7s; }
.view--intro.is-in .intro__eps { opacity: 1; filter: none; transition-delay: .9s; }
.view--intro.is-in .intro__hint { opacity: 1; filter: none; transition-delay: 1.1s; }
.view--intro.is-in .intro__continue { opacity: 1; filter: none; transition-delay: 1.2s; }
.view--intro.is-leaving .intro__seasons, .view--intro.is-leaving .intro__eps,
.view--intro.is-leaving .intro__hint, .view--intro.is-leaving .intro__continue, .view--intro.is-leaving .intro__spark { opacity: 0; filter: blur(6px); transition: opacity .4s, filter .4s; transition-delay: 0s; }
.view--intro.is-lifting .intro__line { top: calc(var(--top) + 46px); left: 0; width: 100%; opacity: 0; }

/* ── family tree (reference 0:14–0:19) ─────────────────────────────── */
.tree-scroll { position: absolute; inset: 0; display: grid; place-items: center; overflow: auto; padding: 96px 12px 72px; scrollbar-width: none; }
.tree-scroll::-webkit-scrollbar { display: none; }
.tree-size { position: relative; }
.tree { position: absolute; top: 0; left: 0; transform-origin: 0 0; direction: ltr; }
.tree__links { position: absolute; inset: 0; overflow: visible; }
.tree__links path {
  fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 1.1s;
}
.tree__links path.is-dashed { stroke-dasharray: .006 .008; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s 1.6s; }
.tree__links path.is-secret { stroke: var(--accent); stroke-dasharray: .004 .01; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s 2s; }
.view--tree.is-in .tree__links path { stroke-dashoffset: 0; }
.view--tree.is-in .tree__links path.is-dashed { opacity: 1; }
.view--tree.is-in .tree__links path.is-secret { opacity: .7; }
.node {
  position: absolute; width: 64px; display: block; text-align: center; color: var(--fg-3);
  opacity: 0; filter: blur(5px); transition: opacity .9s var(--ease) var(--d, 0ms), filter .9s var(--ease) var(--d, 0ms), color .3s;
}
.view--tree.is-in .node { opacity: 1; filter: none; }
.node__img { position: relative; display: block; width: 64px; height: 80px; }
.node__img::before {
  content: ''; position: absolute; inset: -26px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%); opacity: 0; transition: opacity .5s; z-index: -1;
}
.node__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--media-filter) saturate(.75); transition: filter .4s, transform .6s var(--ease-out); }
.node__name { display: block; margin-top: 7px; font-size: 7.5px; letter-spacing: .26em; text-transform: uppercase; line-height: 1.55; }
[lang='ar'] .node__name { font-size: 10px; letter-spacing: 0; line-height: 1.5; }
a.node:hover, a.node:focus-visible { color: var(--fg); }
a.node:hover .node__img::before, a.node:focus-visible .node__img::before { opacity: 1; }
a.node:hover img { filter: var(--media-filter) saturate(1) brightness(1.12); transform: scale(1.04); }
.node.is-locked { cursor: help; }
.node.is-locked img { filter: blur(3px) grayscale(1) brightness(.5); opacity: .45; }
.node.is-locked .node__name { font-size: 11px; }

/* ── detail pages (reference 0:19–0:23) ─────────────────────────────── */
.view--detail { background: var(--bg); }
.detail__media { position: absolute; inset: -14px; will-change: transform; transition: translate 1.6s var(--ease-out); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--media-filter); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.0) translate(-0.6%, 0.4%); } }
.detail__grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 80px);
}
.detail__shade { position: absolute; inset: 0; background: linear-gradient(to left, var(--shade-a) 0%, var(--shade-b) 52%); pointer-events: none; }
[dir='ltr'] .detail__shade { background: linear-gradient(to right, var(--shade-a) 0%, var(--shade-b) 52%); }
.detail__text {
  position: absolute; inset-inline-start: clamp(20px, 3.9vw, 80px); top: 18.5%;
  width: min(30vw, 520px); text-align: center;
}
.detail__eyebrow { margin: 0 0 clamp(8px, 1vw, 18px); }
.detail__title {
  margin: 0; font-weight: 200; color: var(--fg);
  font-size: clamp(26px, 2.25vw, 46px); line-height: 1.24; letter-spacing: .4em; margin-inline-end: -.4em; text-transform: uppercase;
}
[lang='ar'] .detail__title { letter-spacing: 0; margin: 0; font-weight: 100; font-size: clamp(38px, 3.6vw, 74px); line-height: 1.18; }
.detail__title span { display: block; }
.detail__bio {
  position: relative; margin: clamp(22px, 2.6vw, 50px) 0 0; text-align: justify; text-align-last: start;
  color: var(--fg-2); font-size: clamp(14px, 0.98vw, 19px); line-height: 1.72; letter-spacing: .04em;
}
[lang='ar'] .detail__bio { letter-spacing: 0; font-size: clamp(16px, 1.15vw, 22px); line-height: 2; font-weight: 300; }
.detail__text a.ref { color: var(--fg); position: relative; z-index: 1; transition: color .3s; }
.detail__text a.ref:hover, .detail__text a.ref:focus-visible { color: var(--accent); outline: none; }
.ovals { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.ovals path { fill: none; stroke: var(--fg-2); stroke-width: .9; stroke-linecap: round; opacity: .75; transition: stroke .3s, opacity .3s; }
.ovals path.is-hot { stroke: var(--accent); opacity: 1; }

/* entrance: heading resolves from blur, letter spacing settles, then the paragraph */
.detail__eyebrow, .detail__title span, .detail__bio, .detail__timeline, .detail__event { opacity: 0; }
.view--detail.is-in .detail__eyebrow { animation: rise 1s var(--ease-out) .1s both; }
.view--detail.is-in .detail__title span { animation: resolve 1.5s var(--ease-out) both; }
.view--detail.is-in .detail__title span:nth-child(2) { animation-delay: .18s; }
.view--detail.is-in .detail__bio { animation: rise 1.1s var(--ease-out) .6s both; }
.view--detail.is-in .detail__timeline { animation: rise 1.2s var(--ease-out) .9s both; }
.view--detail.is-in .detail__event { animation: rise 1.2s var(--ease-out) 1.1s both; }
@keyframes resolve { from { opacity: 0; filter: blur(14px); letter-spacing: .62em; } to { opacity: 1; filter: blur(0); } }
[lang='ar'] .view--detail.is-in .detail__title span { animation-name: resolve-ar; }
@keyframes resolve-ar { from { opacity: 0; filter: blur(14px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rise { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }

/* small vertical timeline marker (reference: name, dot, line, year) */
.detail__timeline {
  position: absolute; inset-inline-end: 34%; top: 36%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tl__track { position: relative; width: 1px; height: clamp(70px, 9vh, 120px); background: linear-gradient(var(--line-strong), var(--fg-4)); }
.tl__dot {
  position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 18%, transparent), 0 0 18px var(--glow);
  transition: top 1s var(--ease);
}
.tl__name, .tl__year { font-size: calc(var(--label) * .85); transition: opacity .3s, filter .3s; }
.is-swapping { opacity: 0 !important; filter: blur(4px); }

/* event label + capsule (reference bottom: "THE SUICIDE" over a capsule) */
.detail__event {
  position: absolute; inset-inline-start: clamp(20px, 3.9vw, 80px); width: min(30vw, 520px); bottom: 15%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ev__label { transition: opacity .3s, filter .3s; }
.ev__capsule { width: 14px; height: 24px; border-radius: 7px; border: 1px solid var(--fg-3); position: relative; transition: border-color .3s; }
.ev__capsule:not([disabled]):hover { border-color: var(--fg); }
.ev__capsule i {
  position: absolute; left: 50%; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--fg);
  top: calc(4px + var(--i, 0) / max(var(--n) - 1, 1) * 9px); transition: top .6s var(--ease);
}
.ev__capsule[disabled] { cursor: default; opacity: .6; }

/* ── ink transition (reference 0:37.8–0:39.4) ───────────────────────── */
.ink { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.ink i {
  position: absolute; left: 50%; top: 0; width: 190vmax; height: 190vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 52%, color-mix(in srgb, var(--ink) 70%, transparent) 62%, transparent 70%);
  transform: translate(-50%, -55%) scale(0.02);
}
.ink i:nth-child(2) { left: 36%; top: -4%; width: 150vmax; height: 150vmax; }
.ink i:nth-child(3) { left: 66%; top: 6%; width: 160vmax; height: 160vmax; }

/* ── menu (reference 0:24–0:28) ─────────────────────────────────────── */
.menu {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 40;
  width: clamp(300px, 36.5vw, 720px); background: var(--panel);
  padding: calc(var(--top) + 64px) clamp(20px, 3.75vw, 72px) 40px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  transform: translateX(100%); transition: transform .65s var(--ease), visibility 0s .65s; visibility: hidden;
}
[dir='ltr'] .menu { transform: translateX(-100%); }
.menu::-webkit-scrollbar { display: none; }
.menu.is-open { transform: none; visibility: visible; transition: transform .7s var(--ease-out), visibility 0s; }
body.menu-open .frame--top .menu-btn { position: relative; z-index: 45; }
.frame--top { z-index: 45; }
.menu__close { display: none; }
.menu__search { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0 12px; margin-bottom: clamp(36px, 6vh, 64px); }
.menu__search svg { width: 16px; height: 16px; fill: none; stroke: var(--fg-3); stroke-width: 1.2; flex: none; }
.menu__search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; letter-spacing: .06em; padding: 0; }
.menu__search input::placeholder { color: var(--fg-4); }
.menu__search input:focus { outline: none; }
.menu__search:focus-within { border-color: var(--line-strong); }
.msec { border-bottom: 1px solid var(--line); }
.msec:first-child { border-top: 1px solid var(--line); }
.msec__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: clamp(18px, 3.1vh, 34px) 0; font-size: var(--label); letter-spacing: .32em; color: var(--fg-2); text-transform: uppercase;
}
[lang='ar'] .msec__head { letter-spacing: 0; font-size: calc(var(--label) * 1.35); }
.msec__head:hover { color: var(--fg); }
.chev { width: 7px; height: 7px; border-right: 1px solid var(--fg-3); border-bottom: 1px solid var(--fg-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .5s var(--ease); flex: none; }
.is-open > .msec__head .chev, .is-open > .ep__head .chev { transform: rotate(225deg) translate(-2px, -2px); }
.msec__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.msec__body > div { overflow: hidden; }
.msec.is-open .msec__body { grid-template-rows: 1fr; }
.mgrid { list-style: none; margin: 0; padding: 4px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.1vw, 22px) clamp(8px, 1vw, 20px); }
.mcard { display: block; color: var(--fg-3); }
.mcard__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--fg-4); }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--media-filter); transition: transform .8s var(--ease-out), filter .4s; }
a.mcard:hover .mcard__img img { transform: scale(1.05); filter: var(--media-filter) brightness(1.15); }
a.mcard:hover { color: var(--fg); }
.mcard__name { display: block; margin-top: 8px; font-size: 11px; line-height: 1.45; letter-spacing: .04em; }
[lang='ar'] .mcard__name { font-size: 13px; }
.mcard.is-locked img { filter: blur(4px) grayscale(1) brightness(.5); }
.msec.is-open .mgrid li { animation: rise .7s var(--ease-out) both; }
.msec.is-open .mgrid li:nth-child(3n+2) { animation-delay: .06s; } .msec.is-open .mgrid li:nth-child(3n) { animation-delay: .12s; }
.menu__results ul, .menu__links { list-style: none; margin: 0; padding: 0; }
.menu__results li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.menu__results li a:hover { color: var(--fg); }
.menu__links { margin-top: clamp(26px, 4vh, 44px); display: grid; gap: clamp(10px, 1.9vh, 20px); }
.menu__links a, .menu__links button { font-size: var(--label); letter-spacing: .32em; text-transform: uppercase; color: var(--fg-2); transition: color .3s; }
[lang='ar'] .menu__links a, [lang='ar'] .menu__links button:not([lang='en']) { letter-spacing: 0; font-size: calc(var(--label) * 1.3); }
.menu__links a:hover, .menu__links button:hover { color: var(--fg); }
.menu.is-open .msec, .menu.is-open .menu__search, .menu.is-open .menu__links li { animation: rise .8s var(--ease-out) both; }
.menu.is-open .msec:nth-child(1) { animation-delay: .12s; } .menu.is-open .msec:nth-child(2) { animation-delay: .18s; } .menu.is-open .msec:nth-child(3) { animation-delay: .24s; }
.menu.is-open .menu__links li:nth-child(n) { animation-delay: .3s; }

/* ── episodes (reference 1:02–1:11) ─────────────────────────────────── */
.view--episodes { overflow: hidden; }
.eps {
  position: absolute; inset: calc(var(--top) + 100px) 0 0; overflow-y: auto; scrollbar-width: none;
  padding: 0 clamp(20px, 8.1vw, 156px) 30vh;
  display: grid; grid-template-columns: repeat(2, minmax(0, 26vw)); gap: clamp(28px, 3.1vw, 64px); align-content: start;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 96%);
}
.eps::-webkit-scrollbar { display: none; }
.eps__col h2 { margin: 0 0 clamp(10px, 1.6vh, 18px); font-weight: 300; }
.eps__col ul { list-style: none; margin: 0; padding: 0; }
.ep { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease-out) var(--d), transform .8s var(--ease-out) var(--d); }
.view--episodes.is-in .ep { opacity: 1; transform: none; }
.ep__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: clamp(14px, 2.2vh, 24px) 0; color: var(--fg-2); text-align: start; }
.ep__head:hover { color: var(--fg); }
.ep__n { font-size: 12px; letter-spacing: .2em; color: var(--fg-3); flex: none; }
.ep__t { flex: 1; font-size: clamp(13px, 0.82vw, 16px); letter-spacing: .14em; }
[lang='ar'] .ep__t { letter-spacing: 0; font-size: clamp(15px, 1vw, 19px); }
.ep.is-future .ep__t { color: var(--fg-3); }
.ep__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.ep__body > div { overflow: hidden; padding-inline-start: 34px; }
.ep.is-open .ep__body { grid-template-rows: 1fr; }
.ep__body img { width: min(100%, 380px); aspect-ratio: 16 / 10; object-fit: cover; filter: var(--media-filter); background: var(--fg-4); }
.ep.is-future .ep__body img { filter: blur(8px) grayscale(1) brightness(.5); }
.ep__body p { margin: 14px 0 22px; max-width: 380px; font-size: clamp(13px, 0.8vw, 15px); line-height: 1.7; color: var(--fg-2); }
[lang='ar'] .ep__body p { font-size: clamp(15px, .95vw, 17px); line-height: 1.9; }

.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 70; padding: 10px 18px; background: var(--panel); color: var(--fg-2); border: 1px solid var(--line); transition: opacity .6s; }
.toast.is-out { opacity: 0; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; z-index: 99; margin: 0; padding: 24px; text-align: center; }

/* ── production-guide sections (same frame, typography and motion) ─── */
.view--section { overflow: hidden; }
.sec-scroll {
  position: absolute; inset: calc(var(--top) + 64px) 0 calc(var(--bottom) + 30px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 clamp(20px, 8.1vw, 156px) 12vh; scrollbar-width: thin; scrollbar-color: var(--fg-4) transparent;
}
.view--wide .sec-scroll { padding-inline: clamp(16px, 4vw, 80px); }
.sec-head { max-width: 980px; margin: clamp(10px, 4vh, 48px) 0 clamp(24px, 4vh, 44px); }
.sec-eyebrow { margin: 0 0 14px; }
.sec-title { margin: 0; font-weight: 200; font-size: clamp(28px, 2.6vw, 52px); line-height: 1.2; letter-spacing: .3em; text-transform: uppercase; color: var(--fg); }
[lang='ar'] .sec-title { letter-spacing: 0; font-weight: 100; font-size: clamp(36px, 3.4vw, 66px); }
.sec-lede { margin: 18px 0 0; max-width: 760px; color: var(--fg-2); font-size: clamp(15px, 1.05vw, 20px); line-height: 1.8; }
[lang='ar'] .sec-lede { line-height: 2; font-weight: 300; }
.sec-h2 { margin: clamp(26px, 4vh, 44px) 0 14px; font-weight: 300; font-size: var(--label); letter-spacing: .32em; text-transform: uppercase; color: var(--fg-3); }
[lang='ar'] .sec-h2 { letter-spacing: 0; font-size: calc(var(--label) * 1.35); }
.sec-head, .sec-body { opacity: 0; filter: blur(6px); transform: translateY(8px); transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), transform 1s var(--ease-out); }
.view--section.is-in .sec-head { opacity: 1; filter: none; transform: none; }
.view--section.is-in .sec-body { opacity: 1; filter: none; transform: none; transition-delay: .25s; }
.dim { color: var(--fg-3); } .small { font-size: .86em; } .nowrap { white-space: nowrap; }
.flag { display: inline-block; font-size: 10px; letter-spacing: .12em; padding: 1px 7px; border: 1px solid var(--line); color: var(--fg-2); vertical-align: middle; }
.flag--warn { border-color: #d9a441; color: #d9a441; } .flag--ok { border-color: var(--accent); color: var(--accent); }
.prose { max-width: 820px; color: var(--fg-2); line-height: 1.85; font-size: clamp(15px, 1vw, 18px); }
[lang='ar'] .prose { line-height: 2.05; font-weight: 300; font-size: clamp(16px, 1.1vw, 20px); }
.prose p { margin: 0 0 1em; }
.logline { margin: 30px 0; padding-inline-start: 22px; border-inline-start: 1px solid var(--line-strong); color: var(--fg); font-size: clamp(17px, 1.3vw, 24px); line-height: 1.8; max-width: 860px; }
.stats { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats li { background: var(--bg); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-weight: 200; font-size: clamp(24px, 2vw, 36px); color: var(--fg); }
.sec-index { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; }
.sec-index a, .doc-list a, .timeline a { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); transition: color .3s, padding .4s var(--ease); }
.sec-index a:hover, .doc-list a:hover, .timeline a:hover { color: var(--fg); padding-inline-start: 8px; }
.doc-list, .timeline { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.doc-list a span:nth-child(2) { flex: 1; }
.timeline a { flex-direction: column; gap: 6px; }
.bible-block { max-width: 880px; margin-bottom: 18px; }
.bible-block h2 { font-weight: 200; font-size: clamp(20px, 1.6vw, 30px); margin: 34px 0 14px; color: var(--fg); }
.creative dt { margin-top: 18px; color: var(--fg); } .creative dd { margin: 6px 0 0; color: var(--fg-2); }
.notice { max-width: 880px; padding: 12px 16px; border: 1px solid var(--line); color: var(--fg-2); line-height: 1.8; }
.btn-line { display: inline-block; padding: 10px 18px; border: 1px solid var(--line-strong); color: var(--fg); font-size: var(--label); letter-spacing: .28em; text-transform: uppercase; transition: background .3s, color .3s; }
[lang='ar'] .btn-line { letter-spacing: 0; font-size: calc(var(--label) * 1.3); }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.sec-body a:not(.card):not(.btn-line) { color: var(--fg); border-bottom: 1px solid var(--fg-4); transition: border-color .3s, color .3s; }
.sec-body a:not(.card):not(.btn-line):hover { color: var(--accent); border-color: var(--accent); }
.sec-index a, .doc-list a, .timeline a { border-bottom: 1px solid var(--line) !important; }
/* filters */
.sec-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 0 0 18px; }
.sel { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.sel--grow { flex: 1; min-width: 200px; }
.sel select, .sel input { background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; font: inherit; font-size: 14px; }
.sel select option { background: var(--bg); color: var(--fg); }
.sel select:focus, .sel input:focus { outline: none; border-color: var(--line-strong); }
.count { margin: 0 0 10px; }
/* cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(14px, 1.4vw, 26px); }
.cards--places { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--fg-2); }
.card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--fg-4); }
.card--wide .card__img { aspect-ratio: 16 / 10; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--media-filter); transition: transform .9s var(--ease-out), filter .4s; }
a.card:hover .card__img img { transform: scale(1.04); filter: var(--media-filter) brightness(1.15); }
a.card:hover { color: var(--fg); }
.card__body { display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
.card__body b { font-weight: 300; color: var(--fg); font-size: 16px; }
.card.is-locked img { filter: blur(5px) grayscale(1) brightness(.5); }
/* tables */
.tbl { overflow-x: auto; border-top: 1px solid var(--line); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-weight: 300; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); padding: 12px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
[lang='ar'] .tbl th { letter-spacing: 0; font-size: 13px; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-2); line-height: 1.75; }
.tbl tr:hover td { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.tbl--scenes td:nth-child(5) { min-width: 320px; }
.tbl td.eps a { display: inline-block; margin-inline-end: 6px; }
.more { margin-top: 6px; line-height: 1.7; } .more b { font-weight: 400; color: var(--fg-2); }
.chips-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 28px; }
.chips-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line); line-height: 1.8; }
.chips-inline { line-height: 2; color: var(--fg-2); }
.plain { margin: 0; padding-inline-start: 18px; color: var(--fg-2); line-height: 1.8; } .plain.warn li::marker { color: #d9a441; }
/* episode page */
.ep-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; max-width: 760px; }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); }
.ep__more { display: inline-block; margin: 0 0 18px; }
/* relationship map */
.relwrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 50px); align-items: start; }
.relmap { width: 100%; height: auto; max-height: 78vh; overflow: visible; }
.relmap__edges path { fill: none; stroke: var(--line); stroke-width: .8; transition: stroke .3s, opacity .3s, stroke-width .3s; }
.has-focus .relmap__edges path { opacity: .15; }
.has-focus .relmap__edges path.is-on { opacity: 1; stroke: var(--accent); stroke-width: 1.4; }
.relmap__node { cursor: pointer; }
.relmap__node circle { fill: var(--bg); stroke: var(--fg-2); stroke-width: 1; transition: fill .3s, stroke .3s; }
.relmap__node.is-main circle { fill: var(--fg-3); }
.relmap__node text { fill: var(--fg-2); font-size: 11px; font-family: var(--font); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.relmap__node:hover circle, .relmap__node:focus circle, .relmap__node.is-on circle { fill: var(--accent); stroke: var(--accent); }
.relmap__node:focus { outline: none; } .relmap__node.is-on text { fill: var(--fg); }
.rel-list { list-style: none; padding: 0; margin: 0; max-height: 56vh; overflow: auto; }
.rel-list li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.8; color: var(--fg-2); }
.view--message .sec-scroll { display: grid; place-items: center; text-align: center; }
.view--message .sec-lede { margin-inline: auto; }
/* detail dossier */
.detail__role { margin: 14px 0 0; }
.detail__dossier { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--fg-3); line-height: 1.8; text-align: start; opacity: 0; }
[lang='ar'] .detail__dossier { font-size: 15px; }
.view--detail.is-in .detail__dossier { animation: rise 1.1s var(--ease-out) .8s both; }
.detail__dossier a { color: var(--fg-2); } .detail__dossier a:hover { color: var(--accent); }
.detail__text { max-height: calc(100vh - 18.5vh - 26vh); overflow-y: auto; scrollbar-width: none; }
.detail__event { bottom: 9%; }
.detail__text::-webkit-scrollbar { display: none; }
.view--detail .detail__role { opacity: 0; } .view--detail.is-in .detail__role { animation: rise 1s var(--ease-out) .45s both; }
/* menu index */
.menu__index { list-style: none; padding: 0; margin: clamp(26px, 4vh, 44px) 0 0; columns: 2; column-gap: 24px; }
.menu__index a { display: flex; gap: 10px; padding: 7px 0; color: var(--fg-2); font-size: 13px; break-inside: avoid; transition: color .3s; }
[lang='ar'] .menu__index a { font-size: 15px; }
.menu__index a span { color: var(--fg-4); font-size: 10px; letter-spacing: .1em; padding-top: 3px; }
.menu__index a:hover { color: var(--fg); }
.menu.is-open .menu__index { animation: rise .8s var(--ease-out) .28s both; }
/* intro picker for a single 30-episode season */
.view--intro.is-single .intro__seasons { display: none; }
.view--intro.is-single .intro__eps { top: calc(47% + 24px); flex-wrap: wrap; justify-content: center; width: min(760px, 90vw); row-gap: 10px; }
.view--intro.is-single .intro__hint { top: calc(47% + 150px); }
.eps { grid-template-columns: repeat(3, minmax(0, 24vw)); }

/* ── small screens ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .menu { width: 100vw; }
  .detail__shade { background: linear-gradient(to top, var(--shade-a) 10%, var(--shade-b) 70%) !important; }
  .detail__text { top: auto; bottom: 120px; inset-inline: 20px; width: auto; }
  .detail__timeline { inset-inline-end: 22px; top: 96px; }
  .detail__event { inset-inline: 20px; width: auto; bottom: 64px; flex-direction: row; justify-content: center; }
  .tree-scroll { place-items: start; }
  .eps { grid-template-columns: 1fr; padding-inline: 20px; }
  .sec-scroll { padding-inline: 16px; }
  .ep-grid, .relwrap { grid-template-columns: 1fr; }
  .menu__index { columns: 1; }
  .view--intro.is-single .intro__eps { top: calc(40% + 10px); }
  .view--intro.is-single .intro__hint { top: calc(40% + 190px); }
  .detail__text { max-height: 54vh; }
  .placeholder-note { display: none; }
  .intro__line { left: 8%; width: 84%; }
  .intro__spark { right: 8%; } [dir='ltr'] .intro__spark { left: 8%; }
  .intro__eps { gap: 2px; }
  .ep-dot { width: 30px; height: 30px; }
  .intro__hint { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; transition-delay: 0s !important; }
  .grain { display: none; }
}
