/* ==========================================================================
   شبكة الأبراج — abraj.abuhaibeh.com
   ========================================================================== */

:root {
  --night-0: #07061a;
  --night-1: #0b0920;
  --night-2: #13103a;
  --night-3: #1d1852;
  --ink: #ece8fb;
  --ink-soft: #c3bce0;
  --ink-mute: #8f88b3;
  --line: rgba(205, 192, 255, .14);
  --glass: rgba(26, 21, 66, .55);
  --gold: #f0cf86;
  --gold-2: #d9a84e;
  --violet: #9b8cff;

  --fire: #ff8a57;
  --earth: #b9c96a;
  --air: #9ad9ff;
  --water: #6f9bff;

  --f-display: "Reem Kufi", "Tajawal", system-ui, sans-serif;
  --f-body: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
  --f-quote: "Amiri", "Times New Roman", serif;
  --f-glyph: "Noto Sans Symbols", "Segoe UI Symbol", "DejaVu Sans", sans-serif;

  --r: 18px;
  --wrap: 1180px;
  --header-h: 72px;
}

.el-fire  { --el: var(--fire); }
.el-earth { --el: var(--earth); }
.el-air   { --el: var(--air); }
.el-water { --el: var(--water); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(120, 86, 255, .22), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(255, 120, 170, .08), transparent 60%),
    linear-gradient(180deg, var(--night-1), var(--night-0) 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.35; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.glyph { font-family: var(--f-glyph); font-variant-emoji: text; line-height: 1; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night-1); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
main { position: relative; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(9, 7, 28, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--gold) 45%, var(--gold-2));
  color: var(--night-1); box-shadow: 0 0 24px rgba(240, 207, 134, .45);
}
.brand-mark .ic { width: 22px; height: 22px; fill: currentColor; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.brand-text small { color: var(--ink-mute); font-size: .8rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a, .mega-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft); font: 500 1rem var(--f-body);
  background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.site-nav a:hover, .mega-btn:hover, .site-nav a[aria-current="page"], .has-mega.is-active > .mega-btn { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav a[aria-current="page"], .has-mega.is-active > .mega-btn { color: var(--gold); }
.mega-btn .ic { width: 16px; transition: transform .25s; }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  translate: -50% 8px;
  width: min(820px, 92vw);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 14px; border-radius: 20px;
  background: rgba(17, 13, 48, .96); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transition: opacity .2s, translate .2s, visibility .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; translate: -50% 0; }
.has-mega:hover .mega-btn .ic, .has-mega.open .mega-btn .ic { transform: rotate(180deg); }
.mm-group { padding: 8px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--el) 12%, transparent), transparent); }
.site-nav .mm-head { color: var(--el); font-family: var(--f-display); font-weight: 600; padding: 6px 8px; margin-bottom: 4px; border-radius: 10px; }
.site-nav .mm-sign { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 7px 8px; border-radius: 10px; line-height: 1.3; }
.mm-sign .glyph { grid-row: span 2; font-size: 1.5rem; color: var(--el); align-self: center; }
.mm-sign span:not(.glyph) { color: var(--ink); font-size: .95rem; }
.mm-sign small { color: var(--ink-mute); font-size: .78rem; direction: ltr; text-align: right; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px;
  font: 700 1rem var(--f-body); cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #ffe3a3, var(--gold) 45%, var(--gold-2)); color: #241a05; box-shadow: 0 8px 30px rgba(240, 207, 134, .28); }
.btn-gold:hover { color: #241a05; box-shadow: 0 12px 40px rgba(240, 207, 134, .45); }
.btn-ghost { border-color: rgba(240, 207, 134, .5); color: var(--gold); }
.btn-ghost:hover { background: rgba(240, 207, 134, .1); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 700; font-size: .92rem; letter-spacing: .02em; margin-bottom: 14px;
}
.eyebrow .ic { width: 14px; height: 14px; fill: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; min-height: min(calc(100vh - var(--header-h)), 860px); display: flex; align-items: center; padding: 48px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fff1c9, var(--gold) 40%, #f59fb8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 140, 255, .35), rgba(240, 207, 134, .08) 55%, transparent 70%);
  filter: blur(20px);
}

.wheel { position: relative; width: min(520px, 100%); aspect-ratio: 1; overflow: visible; }
.wheel-spin { transform-origin: 250px 250px; animation: spin 180s linear infinite; }
.wheel:hover .wheel-spin { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.w-ring { fill: none; stroke: rgba(240, 207, 134, .45); stroke-width: 1.2; }
.w-ring.thin { stroke: rgba(205, 192, 255, .22); stroke-dasharray: 2 5; }
.w-tick { stroke: rgba(240, 207, 134, .35); stroke-width: 1; }
.w-minor { stroke: rgba(240, 207, 134, .4); stroke-width: 1; }
.w-glyph { font-family: var(--f-glyph); font-size: 30px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; transition: fill .2s; }
.w-link:hover .w-glyph, .w-link:focus .w-glyph { fill: var(--el); }
.w-dot { fill: var(--el); filter: drop-shadow(0 0 6px var(--el)); }
.w-star { fill: rgba(240, 207, 134, .12); stroke: rgba(240, 207, 134, .6); stroke-width: 1; }
.w-core { fill: var(--gold); filter: drop-shadow(0 0 14px var(--gold)); }

.finder {
  margin-top: 30px; padding: 20px; max-width: 520px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(10px);
}
.finder-title { display: block; font-weight: 700; margin-bottom: 12px; }
.finder-row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder select {
  flex: 1 1 90px; min-width: 0;
  appearance: none; -webkit-appearance: none;
  padding: 11px 14px 11px 34px; border-radius: 12px;
  font: 500 1rem var(--f-body); color: var(--ink);
  background: rgba(7, 6, 26, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0cf86' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 10px center / 16px;
  border: 1px solid var(--line);
}
.finder select option { background: var(--night-2); color: var(--ink); }
.finder-row .btn { flex: 1 1 140px; justify-content: center; }
.finder-result:empty { display: none; }
.finder-result { margin-top: 16px; }
.fr-card {
  display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--el) 22%, transparent), transparent);
  border: 1px solid color-mix(in srgb, var(--el) 45%, transparent);
  color: var(--ink); animation: pop .45s cubic-bezier(.2, .9, .3, 1.3);
}
.fr-card:hover { color: var(--ink); }
.fr-card .medal { width: 64px; height: 64px; }
.fr-card b { font-family: var(--f-display); font-size: 1.3rem; display: block; }
.fr-card small { color: var(--ink-soft); }
.fr-card .go { margin-inline-start: auto; color: var(--el); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(240, 207, 134, .5); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 2s infinite; }
@keyframes cue { 50% { transform: translateY(10px); opacity: .3; } }

/* ---------------------------------------------------------------- sections */

.section { padding: 96px 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.sec-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }

.story-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.story-art { position: relative; }
.story-art img { width: 100%; max-width: 420px; margin-inline: auto; filter: drop-shadow(0 20px 60px rgba(155, 140, 255, .35)); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }
.story-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.story-copy > p { color: var(--ink-soft); font-size: 1.08rem; }
.pull {
  margin: 26px 0 30px; padding: 22px 26px;
  border-inline-start: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(240, 207, 134, .1), transparent);
  border-radius: 0 14px 14px 0;
  font-family: var(--f-quote); font-size: 1.35rem; line-height: 1.9; color: #fff4d6;
}

/* elements */
.el-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.el-card {
  position: relative; overflow: hidden; padding: 28px 24px 24px;
  border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.el-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; top: -110px; inset-inline-end: -80px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--el) 45%, transparent), transparent 70%);
  opacity: .55; transition: opacity .3s;
}
.el-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--el) 55%, transparent); }
.el-card:hover::before { opacity: .9; }
.el-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--el); background: color-mix(in srgb, var(--el) 14%, transparent); border: 1px solid color-mix(in srgb, var(--el) 40%, transparent); margin-bottom: 18px; }
.el-icon .ic { width: 30px; height: 30px; }
.el-card h3 { color: var(--el); font-size: 1.45rem; }
.el-card p { color: var(--ink-soft); font-size: .98rem; }
.traits { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.traits li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-soft); }
.el-members { display: grid; gap: 8px; }
.el-members a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: rgba(7, 6, 26, .45); color: var(--ink); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.el-members a:hover { border-color: color-mix(in srgb, var(--el) 50%, transparent); background: color-mix(in srgb, var(--el) 10%, transparent); }
.el-members .glyph { color: var(--el); font-size: 1.4rem; width: 1.4em; text-align: center; }

/* signs grid */
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font: 500 .95rem var(--f-body); color: var(--ink-soft);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: all .2s;
}
.chip .ic { color: var(--el, var(--gold)); width: 16px; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.chip.is-on { color: var(--night-1); background: var(--el, var(--gold)); border-color: transparent; }
.chip.is-on .ic { color: inherit; }

.sign-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sign-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 16px 20px; border-radius: 22px; color: var(--ink);
  background: linear-gradient(180deg, rgba(36, 29, 92, .55), rgba(14, 11, 40, .55));
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), border-color .3s, box-shadow .3s, opacity .3s;
}
.sign-card:hover { color: var(--ink); transform: translateY(-8px); border-color: color-mix(in srgb, var(--el) 60%, transparent); box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--el) 60%, transparent); }
.sign-card.is-hidden { display: none; }
.medal {
  display: grid; place-items: center; overflow: hidden; flex: none;
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fffaf0, #f3e6c8 70%, #e2cf9f);
  box-shadow: 0 0 0 4px rgba(7, 6, 26, .7), 0 0 0 5px color-mix(in srgb, var(--el, var(--gold)) 70%, transparent), 0 0 40px color-mix(in srgb, var(--el, var(--gold)) 35%, transparent);
}
.medal img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s; }
.sign-card:hover .medal img { transform: scale(1.08) rotate(-3deg); }
.sc-glyph { position: absolute; top: 14px; inset-inline-start: 18px; color: var(--el); font-size: 1.5rem; opacity: .9; }
.sign-card b { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; margin-top: 16px; }
.sign-card small { color: var(--ink-mute); font-size: .9rem; }
.el-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 2px 12px; border-radius: 999px; font-size: .8rem; color: var(--el); background: color-mix(in srgb, var(--el) 12%, transparent); }
.el-tag .ic { width: 14px; }

/* teasers */
.teaser-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.teaser-copy h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.teaser-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 28px; }
.teaser-art { padding: 18px; border-radius: 26px; background: #fbf7ee; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: rotate(-1.5deg); }
.teaser-art img { border-radius: 14px; }
.advice-card {
  position: relative; overflow: hidden; text-align: center; max-width: 880px; margin: 0 auto;
  padding: 56px clamp(22px, 6vw, 72px); border-radius: 28px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(240, 207, 134, .16), transparent 70%), var(--glass);
  border: 1px solid rgba(240, 207, 134, .28);
}
.advice-card h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.advice-card p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------------------------------------------------------------- page hero */

.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(155, 140, 255, .08), transparent); }
.ph-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
.ph-art img { width: auto; max-width: clamp(160px, 22vw, 260px); max-height: 280px; border-radius: 22px; animation: float 9s ease-in-out infinite; }
.ph-art img[src*="collection"] { background: #fbf7ee; padding: 10px; }

/* ---------------------------------------------------------------- article */

.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 56px 0 24px; align-items: start; }
.article-side { position: sticky; top: calc(var(--header-h) + 24px); }
.toc { padding: 20px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.toc b { display: block; font-family: var(--f-display); color: var(--gold); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 4px; color: var(--ink-soft); font-size: .93rem; line-height: 1.55; border-radius: 8px; }
.toc a::before { content: counter(t, arabic-indic); color: var(--gold); opacity: .7; }
.toc a:hover, .toc a.is-active { color: #fff; }
.toc a.is-active::before { opacity: 1; }

.prose { max-width: 760px; font-size: 1.12rem; line-height: 2.05; color: #e4def8; }
.prose p { text-align: justify; text-justify: inter-word; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); color: #fff; margin: 2.2em 0 .8em; position: relative; padding-bottom: 14px; }
.prose h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.prose > h2:first-child, .panel > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; color: var(--gold); margin: 1.8em 0 .6em; }
.prose h3 + .list { margin-top: 0; }
.list { margin: 0 0 1.4em; padding: 16px 22px 16px 22px; padding-inline-start: 48px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.list li { padding: 3px 0; }
.list li::marker { color: var(--gold); font-weight: 700; }
.highlight {
  padding: 18px 22px; border-radius: 14px; font-weight: 500; color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--el, var(--gold)) 16%, transparent), transparent);
  border-inline-start: 3px solid var(--el, var(--gold));
}
.ayah {
  position: relative; margin: 2em 0; padding: 30px 28px 24px; text-align: center;
  border-radius: 20px; border: 1px solid rgba(240, 207, 134, .3);
  background: radial-gradient(400px 160px at 50% 0%, rgba(240, 207, 134, .12), transparent 70%), rgba(7, 6, 26, .35);
}
.ayah::before { content: "۞"; position: absolute; top: -16px; left: 50%; translate: -50% 0; padding: 0 12px; background: var(--night-1); color: var(--gold); font-size: 1.4rem; line-height: 1.4; }
.ayah p { font-family: var(--f-quote); font-size: 1.45rem; line-height: 2; color: #fff4d6; text-align: center !important; margin: 0; }
.ayah cite { display: block; margin-top: 10px; font-style: normal; font-size: .92rem; color: var(--gold); }
.fig { margin: 2em auto; text-align: center; }
.fig img { display: inline-block; max-height: 520px; width: auto; border-radius: 16px; background: #fbf7ee; padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.media { margin: 1.6em 0; }
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  border-radius: 18px; overflow: hidden; background: #000 center / cover no-repeat;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 6, 26, .6)); }
.yt-play { position: absolute; z-index: 1; top: 50%; left: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night-1); box-shadow: 0 0 0 10px rgba(240, 207, 134, .25); transition: transform .2s; }
.yt-play .ic { width: 30px; height: 30px; fill: currentColor; margin-inline-start: -4px; transform: scaleX(-1); }
.yt:hover .yt-play { transform: scale(1.08); }
.yt iframe, .media iframe { width: 100%; height: 100%; border: 0; border-radius: 18px; display: block; }
.media-audio iframe { height: 152px; border-radius: 14px; }

.signature {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 3em; padding: 22px 26px;
  border-radius: 16px; background: var(--glass); border: 1px solid var(--line); width: fit-content;
}
.signature .sig-name { font-family: var(--f-quote); font-size: 1.7rem; color: var(--gold); line-height: 1.4; }
.signature span:not(.sig-name) { color: var(--ink-mute); font-size: .95rem; }

.more { padding-top: 48px; }
.more-title { font-size: 1.6rem; margin-bottom: 20px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.more-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; padding-inline-end: 64px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s; }
.more-card:hover { color: var(--ink); border-color: rgba(240, 207, 134, .5); transform: translateY(-3px); }
.more-card b { font-family: var(--f-display); font-size: 1.2rem; }
.more-card span { color: var(--ink-mute); font-size: .95rem; }
.more-card .ic { position: absolute; inset-inline-end: 22px; top: 50%; translate: 0 -50%; color: var(--gold); }

/* ---------------------------------------------------------------- sign page */

.sign-hero {
  position: relative; overflow: hidden; padding: 40px 0 56px;
  background:
    radial-gradient(700px 420px at 20% 50%, color-mix(in srgb, var(--el) 26%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}
.sign-hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--el) 60%, transparent), transparent);
}
.sh-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-mute); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.sh-glyph { font-size: 3rem; color: var(--el); margin: 0 0 4px; text-shadow: 0 0 30px var(--el); line-height: 1.2; }
.sign-hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); font-weight: 700; margin-bottom: 4px; }
.sh-dates { font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.facts div { padding: 10px 18px; border-radius: 14px; background: rgba(7, 6, 26, .45); border: 1px solid var(--line); }
.facts dt { font-size: .78rem; color: var(--ink-mute); }
.facts dd { margin: 0; font-weight: 700; }
.facts dd a { color: var(--el); display: inline-flex; align-items: center; gap: 6px; }
.medal.big { width: clamp(200px, 26vw, 300px); height: clamp(200px, 26vw, 300px); animation: float 9s ease-in-out infinite; }

.tabs-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(9, 7, 28, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 8px 18px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; white-space: nowrap; transition: all .2s; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.tab[aria-selected="true"] { color: var(--night-1); background: var(--el); font-weight: 700; }

.sign-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 48px 0; align-items: start; }
.sign-prose { margin-inline: 0; }
.sign-prose h2::after { background: linear-gradient(90deg, var(--el), transparent); }
.js .panel[hidden] { display: none; }
.panel { animation: fadeUp .45s ease; }
.no-js .panel + .panel, .panel + .panel { margin-top: 3em; }
.js .tabbed .panel { margin-top: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.sign-side { position: sticky; top: calc(var(--header-h) + 80px); display: grid; gap: 16px; }
.side-card { padding: 20px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.side-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--el, var(--gold)); }
.side-card p { color: var(--ink-soft); font-size: .95rem; }
.side-card > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.side-links { display: grid; gap: 8px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(7, 6, 26, .45); color: var(--ink); }
.side-links a:hover { background: color-mix(in srgb, var(--el) 14%, transparent); }
.side-links .glyph { color: var(--el); font-size: 1.3rem; }

.sign-pager { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.pg { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s; }
.pg:hover { color: var(--ink); border-color: rgba(240, 207, 134, .5); }
.pg.prev:hover { transform: translateX(4px); }
.pg.next:hover { transform: translateX(-4px); }
.pg span { display: flex; flex-direction: column; font-family: var(--f-display); font-size: 1.2rem; }
.pg.next span { text-align: left; }
.pg small { font-family: var(--f-body); font-size: .8rem; color: var(--ink-mute); }
.pg .ic { color: var(--gold); }

.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, var(--gold), var(--el, var(--violet))); }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: 64px; padding: 56px 0 28px; border-top: 1px solid var(--line); background: rgba(5, 4, 18, .6); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 48px; }
.foot-about p { margin-top: 16px; color: var(--ink-mute); font-size: .95rem; max-width: 40ch; }
.site-footer h3 { font-size: 1.05rem; color: var(--gold); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink-soft); display: inline-block; padding: 3px 0; }
.foot-links a:hover { color: #fff; }
.foot-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; }
.foot-signs a { color: var(--ink-soft); font-size: .95rem; padding: 2px 0; }
.foot-signs .glyph { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: .9rem; }
.foot-bottom a { color: var(--ink-soft); }

/* ---------------------------------------------------------------- reveal */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .el-grid { grid-template-columns: repeat(2, 1fr); }
  .sign-grid { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-side { display: none; }
  .prose { margin-inline: auto; }
  .sign-body { grid-template-columns: 1fr; }
  .sign-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  }
  .nav-toggle .shut, .nav-open .nav-toggle .open { display: none; }
  .nav-open .nav-toggle .shut { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 16px 16px 40px; background: rgba(9, 7, 28, .98);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(9, 7, 28); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav > ul > li > a, .mega-btn { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
  .mega { position: static; translate: none; width: auto; grid-template-columns: 1fr 1fr; opacity: 1; visibility: visible; display: none; margin-top: 6px; box-shadow: none; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { translate: none; }
  .has-mega.open .mega { display: grid; translate: none; }
  .has-mega:hover .mega-btn .ic { transform: none; }
  .has-mega.open .mega-btn .ic { transform: rotate(180deg); }

  .hero { min-height: 0; padding: 32px 0 80px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .wheel { width: min(340px, 86vw); }
  .finder { max-width: none; }
  .story-in, .teaser-in { grid-template-columns: 1fr; gap: 32px; }
  .story-art img { max-width: 260px; }
  .ph-in, .sh-in { grid-template-columns: 1fr; }
  .ph-art { display: none; }
  .sh-art { order: -1; justify-self: center; }
  .medal.big { width: 170px; height: 170px; }
  .sign-hero { text-align: center; }
  .crumbs, .facts { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .el-grid { grid-template-columns: 1fr; }
  .sign-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sign-card { padding: 20px 10px 16px; }
  .medal { width: 96px; height: 96px; }
  .sign-card b { font-size: 1.15rem; margin-top: 12px; }
  .sign-card small { font-size: .8rem; }
  .sc-glyph { font-size: 1.2rem; top: 10px; inset-inline-start: 12px; }
  .prose { font-size: 1.05rem; line-height: 1.95; }
  .prose p { text-align: start; }
  .ayah { padding: 26px 18px 20px; }
  .ayah p { font-size: 1.25rem; }
  .pull { font-size: 1.15rem; padding: 18px; }
  .sign-side { grid-template-columns: 1fr; }
  .sign-pager { flex-direction: column; }
  .pg.next { justify-content: space-between; }
  .pg.prev { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .mega { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .fr-card { flex-wrap: wrap; }
  .fr-card .go { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
