/* =================================================================
   إرثنا — تصميم سينمائي: حبر، لؤلؤ، ذهب، عمق البحر ورمل الصحراء
   ================================================================= */
:root {
  --ink: #0a0806;
  --ink-2: #14100c;
  --ink-3: #1d1712;
  --pearl: #f3ede2;
  --pearl-dim: #c9bfae;
  --gold: #d4a94f;
  --gold-2: #f0d58c;
  --gold-3: #8f6a22;
  --sea: #0d2c35;
  --sea-deep: #03141a;
  --sand: #c99a5e;
  --paper: #efe3c8;
  --paper-ink: #3a2a1a;

  --f-body: "Cairo", system-ui, sans-serif;
  --f-display: "Amiri", serif;
  --f-callig: "Aref Ruqaa", "Amiri", serif;
  --f-kufi: "Reem Kufi", "Cairo", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--pearl);
  line-height: 1.95;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; position: relative; }

.eyebrow {
  font-family: var(--f-kufi); font-size: .85rem; letter-spacing: .12em;
  color: var(--gold); text-transform: uppercase;
}
.gold-text {
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2) 40%, var(--gold) 60%, var(--gold-2));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- شاشة التحميل ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(circle at 50% 45%, #1c150f, var(--ink) 60%);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-pearl {
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, #f1e9dc 30%, #c8bba5 65%, #8a7d6a);
  box-shadow: 0 0 40px rgba(240, 213, 140, .45), 0 0 120px rgba(240, 213, 140, .2);
  animation: pearlGlow 2s ease-in-out infinite;
}
@keyframes pearlGlow { 50% { box-shadow: 0 0 60px rgba(240, 213, 140, .7), 0 0 160px rgba(240, 213, 140, .35); transform: scale(1.05); } }
.loader-word { font-family: var(--f-callig); font-size: 2.6rem; color: var(--gold-2); line-height: 1.2; }
.loader-count { font-family: var(--f-kufi); color: var(--pearl-dim); font-size: .9rem; letter-spacing: .2em; }

/* ---------------- حبيبات الفيلم ---------------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .07;
  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='3' 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;
}
@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); }
}

/* ---------------- المؤشر المخصص (لؤلؤة) ---------------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #e9dfcf 50%, #a89a84);
    box-shadow: 0 0 18px rgba(240, 213, 140, .6);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
    mix-blend-mode: normal;
  }
  .cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(240, 213, 140, .12); border: 1px solid var(--gold-2); box-shadow: none; }
}

/* ---------------- شريط التقدم ---------------- */
.progress { position: fixed; top: 0; right: 0; height: 2px; width: 0; z-index: 960; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }

/* ---------------- التنقل ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(16px, 4vw, 48px);
  transition: height .5s;
}
/* الخلفية الضبابية على عنصر وهمي حتى لا تحبس القائمة الجانبية الثابتة داخل الشريط */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(10, 8, 6, .72); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(212, 169, 79, .12); transition: opacity .5s;
}
.nav.solid { height: 64px; }
.nav.solid::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-pearl {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e9dfcf 50%, #a89a84);
  box-shadow: 0 0 14px rgba(240, 213, 140, .7);
}
.brand-name { font-family: var(--f-callig); font-size: 1.9rem; color: var(--gold-2); line-height: 1; }
.nav-links { display: flex; gap: clamp(8px, 2vw, 30px); }
.nav-link { position: relative; font-size: .98rem; color: var(--pearl-dim); padding: 6px 2px; transition: color .3s; }
.nav-link i { font-style: normal; font-family: var(--f-kufi); color: var(--gold); font-size: .78rem; margin-left: 4px; }
.nav-link::after { content: ""; position: absolute; bottom: 0; right: 0; height: 1px; width: 0; background: var(--gold-2); transition: width .5s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--pearl); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 520; }
.burger span { position: absolute; right: 8px; height: 1.5px; background: var(--gold-2); transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; width: 28px; }
.burger span:last-child { top: 26px; width: 18px; }
.burger.open span:first-child { top: 22px; transform: rotate(45deg); }
.burger.open span:last-child { top: 22px; width: 28px; transform: rotate(-45deg); }

/* ---------------- الواجهة ---------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: center; }
.hero-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.8s ease; }
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.55) contrast(1.1) brightness(.62) saturate(.9);
  transform: scale(1.18);
}
.slide.active img { animation: kenburns 9s ease-out forwards; }
.slide:nth-child(2).active img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.2) translate(2%, 1%); } to { transform: scale(1.04) translate(0, 0); } }
@keyframes kenburns2 { from { transform: scale(1.05) translate(-1%, 0); } to { transform: scale(1.2) translate(1%, -2%); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(10, 8, 6, .88) 0%, rgba(10, 8, 6, .55) 45%, rgba(10, 8, 6, .15) 85%),
    linear-gradient(to top, var(--ink) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(10, 8, 6, .6), transparent 25%);
}
.hero-inner { position: relative; z-index: 2; width: min(1240px, 100% - 32px); margin-inline: auto; padding-top: 40px; }
.hero-eyebrow { opacity: 0; transform: translateY(20px); }
.hero-title {
  font-family: var(--f-callig); font-weight: 700;
  font-size: clamp(4rem, 13vw, 10.5rem); line-height: 1.12; margin: 6px 0 18px;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}
.hero-title .line { display: block; overflow: hidden; padding: .12em .1em .32em; margin-bottom: -.3em; }
.hero-title .line > span { display: inline-block; padding-bottom: .1em; transform: translateY(130%); }
.hero-lead { max-width: 560px; font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--pearl-dim); opacity: 0; transform: translateY(20px); }
.btn-dive {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 34px;
  padding: 14px 30px 14px 22px; border: 1px solid rgba(240, 213, 140, .5); border-radius: 60px;
  color: var(--gold-2); font-weight: 600; letter-spacing: .02em;
  opacity: 0; transform: translateY(20px);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s;
}
.btn-dive::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-2); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn-dive:hover { color: var(--ink); border-color: var(--gold-2); }
.btn-dive:hover::before { transform: none; }
.btn-dive svg { width: 20px; height: 20px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

body.ready .hero-title .line > span { transform: none; transition: transform 1.4s var(--ease); }
body.ready .hero-title .line:nth-child(2) > span { transition-delay: .15s; }
body.ready .hero-eyebrow, body.ready .hero-lead, body.ready .btn-dive { opacity: 1; transform: none; transition: opacity 1.2s .5s, transform 1.2s .5s var(--ease); }
body.ready .hero-lead { transition-delay: .7s; }
body.ready .btn-dive { transition-delay: .9s, .9s, 0s, 0s; }

.hero-meta {
  position: absolute; z-index: 2; bottom: 32px; inset-inline: clamp(16px, 4vw, 48px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.hero-caption { font-family: var(--f-display); font-style: italic; color: var(--pearl-dim); font-size: .98rem; max-width: 420px; border-right: 2px solid var(--gold); padding-right: 12px; transition: opacity .6s; }
.hero-index { display: flex; align-items: center; gap: 10px; font-family: var(--f-kufi); color: var(--pearl-dim); }
.hero-index b { color: var(--gold-2); font-size: 1.4rem; font-weight: 400; }
.hero-index span { width: 60px; height: 1px; background: rgba(243, 237, 226, .35); position: relative; overflow: hidden; }
.hero-index span::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform-origin: right; animation: idx 7s linear infinite; }
@keyframes idx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-index em { font-style: normal; font-size: .9rem; }

/* ---------------- الشريط المتحرك ---------------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(212, 169, 79, .2); background: var(--ink-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--pearl); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); align-self: center; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------------- الفصول العامة ---------------- */
.chapter { position: relative; padding: clamp(90px, 13vw, 170px) 0; }
.chapter-head { position: relative; max-width: 760px; margin-bottom: clamp(60px, 9vw, 110px); }
.chapter-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.chapter-num {
  position: absolute; top: -.55em; left: 0; z-index: -1;
  font-family: var(--f-callig); font-size: clamp(9rem, 22vw, 17rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(212, 169, 79, .22);
}
.chapter-num.light { -webkit-text-stroke-color: rgba(240, 213, 140, .35); }
.chapter-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.25; margin: 8px 0 18px; }
.chapter-title em { font-style: normal; font-family: var(--f-callig); font-weight: 400; color: var(--gold-2); }
.chapter-lead { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--pearl-dim); max-width: 640px; }

/* ظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.clip-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease); }
.clip-reveal img { transform: scale(1.25); transition: transform 2s var(--ease); }
.in .clip-reveal, .clip-reveal.in { clip-path: inset(0 0 0 0); }
.in .clip-reveal img, .clip-reveal.in img { transform: scale(1); }

/* صور بإطار أرشيفي */
.photo { position: relative; overflow: hidden; background: var(--ink-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) contrast(1.05); }
.photo figcaption {
  position: absolute; bottom: 0; inset-inline: 0; padding: 40px 18px 14px;
  font-family: var(--f-display); font-style: italic; font-size: .92rem; color: var(--pearl-dim);
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
}
.photo:hover img { filter: sepia(0) contrast(1.05); transition: filter 1s, transform 2s var(--ease); }

/* ---------------- الفصل الأول: البحر ---------------- */
.sea {
  --d: 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--sea) 18%, var(--sea-deep) 100%);
  overflow: clip;
}
.sea::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 70% 0%, rgba(120, 200, 210, .14), transparent 70%);
  opacity: calc(1 - var(--d));
}
.sea::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(0, 0, 0, calc(var(--d) * .45)); }
.sea .wrap { z-index: 2; }

.depth-rail { position: absolute; top: 120px; bottom: 120px; left: clamp(12px, 3vw, 40px); z-index: 3; width: 70px; }
.depth {
  position: sticky; top: 40vh;
  display: grid; justify-items: center; gap: 8px; width: 70px;
  font-family: var(--f-kufi); color: var(--pearl-dim); font-size: .78rem;
}
.depth-value { font-size: 1rem; color: var(--pearl); white-space: nowrap; }
.depth-value b { font-size: 1.8rem; font-weight: 400; color: var(--gold-2); }
.depth-bar { width: 2px; height: 140px; background: rgba(243, 237, 226, .15); position: relative; }
.depth-bar span { position: absolute; top: 0; inset-inline: 0; height: 0; background: linear-gradient(var(--gold-2), #5fc3cf); }
.depth-breath { writing-mode: vertical-rl; letter-spacing: .2em; opacity: .7; }

.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bubble {
  position: absolute; bottom: -20px; border-radius: 50%;
  border: 1px solid rgba(200, 240, 245, .35); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
  animation: rise linear infinite;
}
@keyframes rise { to { transform: translate(var(--x, 20px), -110vh); opacity: 0; } }

.story-row {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center;
  margin-bottom: clamp(90px, 14vw, 180px); padding-left: 90px;
}
.story-row:last-child { margin-bottom: 0; }
.story-row.reverse > :first-child { order: 2; }
.photo-tall { aspect-ratio: 4 / 4.4; }
.photo-wide { aspect-ratio: 4 / 3; }
.photo-stack { position: relative; padding-bottom: 18%; }
.photo-stack > .photo:first-child { aspect-ratio: 4 / 3; }
.photo-float { position: absolute !important; width: 46%; aspect-ratio: 1; bottom: 0; left: -6%; border: 6px solid var(--sea-deep); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.story-kicker { font-family: var(--f-kufi); color: var(--gold); font-size: .9rem; letter-spacing: .1em; display: flex; align-items: center; gap: 12px; }
.story-kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.story-text h3 { font-family: var(--f-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.35; margin: 12px 0 18px; }
.story-text p { color: var(--pearl-dim); font-size: 1.05rem; }

.pearl-terms { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pearl-terms li {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 16px; border-radius: 40px;
  border: 1px solid rgba(243, 237, 226, .15); background: rgba(243, 237, 226, .04); font-size: .88rem; color: var(--pearl-dim);
  transition: border-color .4s, background .4s;
}
.pearl-terms li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d8cdb9 60%, #8a7d6a); }
.pearl-terms li:hover { border-color: var(--gold); background: rgba(212, 169, 79, .08); }
.pearl-terms b { color: var(--pearl); font-weight: 600; }

.pull { margin-top: 30px; padding: 22px 26px; border-right: 3px solid var(--gold); background: linear-gradient(to left, rgba(212,169,79,.1), transparent); font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--gold-2); line-height: 1.6; }
.pull cite { display: block; font-family: var(--f-body); font-style: normal; font-size: .85rem; color: var(--pearl-dim); margin-top: 6px; }

/* ---------------- الفصل الثاني: البر ---------------- */
.land { padding-top: 0; background: linear-gradient(180deg, var(--sea-deep), #1a120b 30%, var(--ink-2)); }
.parallax-banner { position: relative; height: 100vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; margin-bottom: clamp(70px, 10vw, 120px); }
.parallax-img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; filter: sepia(.25) brightness(.55) contrast(1.1); will-change: transform; }
.parallax-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(10,8,6,.85), rgba(10,8,6,.1) 70%), linear-gradient(to top, var(--ink-2), transparent 30%), linear-gradient(to bottom, var(--sea-deep), transparent 25%); }
.banner-text { position: relative; z-index: 2; width: min(1240px, 100% - 32px); margin-inline: auto; max-width: 1240px; }
.banner-text > * { max-width: 640px; }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 4px; isolation: isolate; }
.tile-a { grid-column: span 7; grid-row: span 2; }
.tile-b { grid-column: span 5; grid-row: span 2; }
.tile-c { grid-column: span 5; grid-row: span 2; }
.tile-d { grid-column: span 7; grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: sepia(.4) brightness(.8); transition: transform 1.6s var(--ease), filter 1s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,8,6,.95) 5%, rgba(10,8,6,.2) 55%, transparent); transition: background .8s; }
.tile:hover img { transform: scale(1.08); filter: sepia(0) brightness(.9); }
.tile-body { position: absolute; bottom: 0; inset-inline: 0; padding: clamp(20px, 3vw, 34px); }
.tile-body span { font-family: var(--f-kufi); font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
.tile-body h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.3; margin: 4px 0 6px; }
.tile-body p { color: var(--pearl-dim); font-size: .96rem; max-width: 460px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .6s; }
.tile:hover .tile-body p, .tile:focus-within .tile-body p { max-height: 160px; opacity: 1; }

/* ---------------- الفصل الثالث: الفنون ---------------- */
.arts { background: var(--ink-2); overflow: hidden; }
.arts::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 14px;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) -7px 0 / 14px 14px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) -7px 0 / 14px 14px,
    linear-gradient(315deg, #8f1d1d 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(45deg, #8f1d1d 25%, transparent 25%) 0 0 / 14px 14px, var(--ink);
}
.gallery-ctrl { display: flex; align-items: center; gap: 12px; color: var(--pearl-dim); font-size: .9rem; }
.gallery-ctrl p { margin-left: 10px; }
.g-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(240, 213, 140, .4); color: var(--gold-2); font-size: 1.2rem; transition: background .4s, color .4s; }
.g-btn:hover { background: var(--gold-2); color: var(--ink); }

.gallery {
  display: flex; gap: clamp(16px, 2.5vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(16px, calc((100vw - 1240px) / 2)) 30px; scrollbar-width: none; cursor: grab;
  scroll-padding-inline: max(16px, calc((100vw - 1240px) / 2));
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.dragging * { pointer-events: none; }
.g-card { flex: 0 0 clamp(280px, 34vw, 440px); scroll-snap-align: start; user-select: none; }
.g-card figure { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 220px 220px 4px 4px; background: var(--ink-3); }
.g-card figure img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) brightness(.85); transition: transform 1.6s var(--ease), filter 1s; -webkit-user-drag: none; }
.g-card:hover figure img { transform: scale(1.07); filter: none; }
.g-body { padding: 22px 6px 0; position: relative; }
.g-num { font-family: var(--f-kufi); color: var(--gold); font-size: .85rem; }
.g-body h3 { font-family: var(--f-callig); font-size: 2.4rem; color: var(--pearl); line-height: 1.4; font-weight: 400; }
.g-body p { color: var(--pearl-dim); font-size: .97rem; }

/* لوحة التلي بالـ CSS */
.talli-art {
  background:
    repeating-linear-gradient(60deg, transparent 0 10px, rgba(240,213,140,.95) 10px 12px, transparent 12px 22px),
    repeating-linear-gradient(-60deg, transparent 0 10px, rgba(200, 40, 70, .9) 10px 12px, transparent 12px 22px),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(255,255,255,.15) 21px 22px),
    linear-gradient(160deg, #1d1530, #0f1d2a);
}
.talli-art span { position: absolute; inset: 22% 18%; border: 1px solid rgba(240,213,140,.5); border-radius: 160px 160px 4px 4px; }

/* ---------------- الفصل الرابع: الهوية ---------------- */
.identity { background: radial-gradient(ellipse at 20% 10%, rgba(212,169,79,.08), transparent 50%), var(--ink); }
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; margin-bottom: clamp(100px, 14vw, 170px); }
.arch { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; overflow: hidden; border: 1px solid rgba(240,213,140,.35); padding: 12px; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 999px 999px 4px 4px; filter: sepia(.5) contrast(1.05) brightness(.95); }
.arch::after { content: ""; position: absolute; inset: 12px; border-radius: 999px 999px 4px 4px; box-shadow: inset 0 -120px 80px -40px rgba(10,8,6,.7); }
.founder-text h3 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.3; margin: 6px 0 2px; }
.founder-sub { color: var(--pearl-dim); font-family: var(--f-kufi); font-size: .9rem; margin-bottom: 30px; }
.quotes { display: grid; min-height: 190px; }
.q {
  grid-area: 1 / 1; align-self: center;
  font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.65; color: var(--gold-2);
  opacity: 0; filter: blur(8px); transform: translateY(16px); transition: opacity 1s, filter 1s, transform 1s var(--ease);
}
.q.active { opacity: 1; filter: none; transform: none; }
.q-nav { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.q-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(240,213,140,.4); color: var(--gold-2); transition: background .4s, color .4s; }
.q-arrow:hover { background: var(--gold-2); color: var(--ink); }
.q-line { flex: 1; max-width: 240px; height: 1px; background: rgba(243,237,226,.2); }
.q-line span { display: block; height: 100%; width: 0; background: var(--gold-2); }

/* العلم المرفرف */
.flag-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; margin-bottom: clamp(100px, 14vw, 170px); }
.flag-stage { position: relative; padding: 30px 0 30px 24px; }
.flag-pole { position: absolute; left: 10px; top: 0; bottom: 0; width: 8px; border-radius: 4px; background: linear-gradient(90deg, #6b5a3e, #e7d7b0, #7b6a4c); }
.flag-pole::before { content: ""; position: absolute; top: -10px; left: -5px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8dc, var(--gold) 60%, var(--gold-3)); }
.flag-wave { display: flex; aspect-ratio: 2 / 1; width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); direction: ltr; }
.flag-wave i {
  flex: 1; height: 100%;
  background: linear-gradient(to bottom, #00843D 0 33.33%, #FFFFFF 33.33% 66.66%, #111 66.66%);
  animation: wave 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.09s);
}
.flag-wave i.red { background: #EF3340; }
.flag-wave i::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(255,255,255,.12), rgba(0,0,0,.12)); }
@keyframes wave { 0%, 100% { transform: translateY(calc(var(--amp) * -1)); } 50% { transform: translateY(var(--amp)); } }
.flag-date { margin-top: 26px; font-family: var(--f-display); font-size: 1.15rem; color: var(--pearl-dim); }
.flag-date b { color: var(--gold-2); font-weight: 400; }

.flag-meanings { list-style: none; display: grid; gap: 4px; }
.flag-meanings li { display: flex; align-items: center; gap: 20px; padding: 18px 6px; border-bottom: 1px solid rgba(243,237,226,.1); transition: padding .5s var(--ease), background .5s; }
.flag-meanings li:hover { padding-right: 18px; background: linear-gradient(to left, rgba(243,237,226,.05), transparent); }
.sw { flex: none; width: 14px; height: 54px; background: var(--c); border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); transition: width .5s var(--ease); }
.flag-meanings li:hover .sw { width: 40px; }
.flag-meanings h4 { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.3; }
.flag-meanings p { color: var(--pearl-dim); font-size: .98rem; }

.union { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.photo-archive { aspect-ratio: 4 / 5; max-height: 640px; border: 1px solid rgba(240,213,140,.25); padding: 10px; background: var(--ink-3); }
.photo-archive img { filter: grayscale(1) contrast(1.1); }
.photo-archive figcaption { inset-inline: 10px; bottom: 10px; }
.union-stats { display: grid; gap: 36px; }
.union-stats div { border-top: 1px solid rgba(212,169,79,.3); padding-top: 14px; }
.union-stats b { display: block; font-family: var(--f-kufi); font-weight: 400; font-size: clamp(3.6rem, 9vw, 6.5rem); line-height: 1; color: var(--gold-2); }
.union-stats span { color: var(--pearl-dim); font-size: 1.05rem; }

/* ---------------- الفصل الخامس: السوالف ---------------- */
.stories { background: linear-gradient(180deg, var(--ink), #17110b); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filter { padding: 8px 22px; border-radius: 40px; border: 1px solid rgba(243,237,226,.18); color: var(--pearl-dim); transition: all .4s var(--ease); }
.filter:hover { border-color: var(--gold); color: var(--pearl); }
.filter.active { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); font-weight: 700; }

.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 34px 26px; margin-bottom: 90px; }
.letter {
  position: relative; padding: 30px 26px 24px; color: var(--paper-ink);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(140, 100, 50, .25), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 80, 30, .3), transparent 50%),
    var(--paper);
  border-radius: 3px; box-shadow: 0 25px 50px rgba(0,0,0,.45);
  transform: rotate(var(--r, 0deg)); transition: transform .7s var(--ease), box-shadow .7s;
  animation: letterIn .9s var(--ease) both; animation-delay: var(--delay, 0s);
  display: flex; flex-direction: column;
}
@keyframes letterIn { from { opacity: 0; transform: translateY(40px) rotate(0deg); } }
.letter:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 0 35px 70px rgba(0,0,0,.55); }
.letter::before { content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; width: 90px; height: 24px; background: rgba(240, 213, 140, .55); box-shadow: 0 2px 4px rgba(0,0,0,.2); transform: rotate(-2deg); }
.letter-cat { font-family: var(--f-kufi); font-size: .78rem; color: #8a5a20; letter-spacing: .1em; }
.letter h3 { font-family: var(--f-display); font-size: 1.65rem; line-height: 1.35; margin: 4px 0 8px; color: #2a1a0c; }
.letter p { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.85; flex: 1; color: #4a3826; }
.letter-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgba(58, 42, 26, .3); font-size: .88rem; }
.letter-foot .by { font-family: var(--f-display); font-style: italic; color: #6b4f30; }
.l-actions { display: flex; gap: 8px; align-items: center; }
.l-read { font-weight: 700; color: #7a4b12; }
.l-read:hover { color: #3a2410; }
.l-like { display: inline-flex; gap: 4px; align-items: center; padding: 2px 10px; border-radius: 20px; background: rgba(58,42,26,.08); color: #7a4b12; }
.l-like.on { background: #7a1f1f; color: #fff; }
.l-del { color: #8a1f1f; font-size: .85rem; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--pearl-dim); padding: 40px; font-family: var(--f-display); font-size: 1.3rem; }

.scroll-form {
  max-width: 820px; margin-inline: auto; padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(180deg, rgba(240,213,140,.06), rgba(240,213,140,.02));
  border: 1px solid rgba(240,213,140,.25); border-radius: 4px; position: relative;
}
.scroll-form::before, .scroll-form::after { content: "✦"; position: absolute; top: -12px; color: var(--gold); background: #15100b; padding: 0 10px; }
.scroll-form::before { right: 30px; } .scroll-form::after { left: 30px; }
.scroll-form h3 { font-family: var(--f-callig); font-size: 2.4rem; color: var(--gold-2); font-weight: 400; line-height: 1.4; }
.form-note { color: var(--pearl-dim); font-size: .92rem; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scroll-form label { display: grid; gap: 4px; margin-bottom: 20px; }
.scroll-form label span { font-size: .85rem; color: var(--gold); font-family: var(--f-kufi); letter-spacing: .05em; }
.scroll-form input, .scroll-form textarea {
  font: inherit; color: var(--pearl); background: transparent; border: 0; border-bottom: 1px solid rgba(243,237,226,.25);
  padding: 10px 2px; resize: vertical; transition: border-color .4s;
}
.scroll-form textarea { font-family: var(--f-display); font-size: 1.1rem; }
.scroll-form input::placeholder, .scroll-form textarea::placeholder { color: rgba(243,237,226,.3); }
.scroll-form input:focus, .scroll-form textarea:focus { outline: none; border-bottom-color: var(--gold-2); }
.form-msg { min-height: 1.6em; font-size: .92rem; margin-bottom: 10px; }
.form-msg.err { color: #ff8a80; } .form-msg.ok { color: var(--gold-2); }
.btn-gold {
  padding: 14px 34px; border-radius: 50px; font-weight: 700; color: var(--ink);
  background: linear-gradient(110deg, var(--gold-3), var(--gold-2) 45%, var(--gold) 70%, var(--gold-2));
  background-size: 200% 100%; transition: background-position .8s var(--ease), transform .4s var(--ease);
}
.btn-gold:hover { background-position: 100% 0; transform: translateY(-2px); }

/* نافذة الرسالة */
.modal { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 16px; background: rgba(5,4,3,.82); backdrop-filter: blur(6px); animation: fade .4s; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.paper {
  position: relative; width: min(700px, 100%); max-height: 86vh; overflow-y: auto;
  padding: clamp(32px, 6vw, 60px); color: var(--paper-ink);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(140,100,50,.3), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(120,80,30,.35), transparent 50%),
    var(--paper);
  border-radius: 3px; box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: unfold .7s var(--ease);
}
@keyframes unfold { from { opacity: 0; transform: perspective(900px) rotateX(-25deg) translateY(40px); } }
.m-close { position: absolute; top: 12px; left: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 1.8rem; color: var(--paper-ink); }
.m-close:hover { background: rgba(58,42,26,.1); }
.m-tag { font-family: var(--f-kufi); color: #8a5a20; font-size: .85rem; letter-spacing: .1em; }
.paper h3 { font-family: var(--f-callig); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.4; font-weight: 400; color: #2a1a0c; }
.m-author { font-family: var(--f-display); font-style: italic; color: #6b4f30; margin-bottom: 20px; }
.m-body p { font-family: var(--f-display); font-size: 1.22rem; line-height: 2; margin-bottom: 14px; }
.seal {
  display: grid; place-items: center; width: 86px; height: 86px; margin: 20px auto 0 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b03030, #7a1515 70%); color: #f6d9a0;
  font-family: var(--f-callig); font-size: 1.3rem; transform: rotate(-12deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 0 0 4px rgba(255,255,255,.08);
}

/* ---------------- التذييل ---------------- */
.footer { background: #070504; padding: 90px 0 30px; border-top: 1px solid rgba(212,169,79,.15); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-quote { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--pearl); max-width: 700px; line-height: 1.6; }
.credits { border-top: 1px solid rgba(243,237,226,.08); padding-top: 20px; color: var(--pearl-dim); font-size: .85rem; }
.credits summary { cursor: pointer; color: var(--gold); font-family: var(--f-kufi); }
.credits ul { list-style: none; columns: 2 280px; gap: 30px; margin-top: 16px; direction: ltr; text-align: left; }
.credits li { margin-bottom: 6px; break-inside: avoid; }
.credits a { color: var(--pearl); border-bottom: 1px solid rgba(243,237,226,.2); }
.credits a:hover { color: var(--gold-2); }
.copyright { margin-top: 40px; text-align: center; font-size: .85rem; color: rgba(243,237,226,.45); }

/* ---------------- بطاقات الفيديو ---------------- */
.watch { margin-top: clamp(70px, 10vw, 120px); padding-top: 34px; border-top: 1px solid rgba(240,213,140,.15); }
.watch-title { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 24px; }
.watch-title span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-2); color: var(--ink); font-size: .8rem; padding-right: 2px; }
.vids { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.vids.three { grid-template-columns: repeat(3, 1fr); }
.vids.four { grid-template-columns: repeat(4, 1fr); }
.vid { position: relative; cursor: pointer; }
.vid-btn { display: block; width: 100%; text-align: right; }
.vid-poster { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--ink-3); border: 1px solid rgba(240,213,140,.18); }
.vid-poster img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) brightness(.75); transform: scale(1.02); transition: transform 1.2s var(--ease), filter .8s; }
.vid-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,.7), transparent 55%); }
.vid-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%;
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(240, 213, 140, .92); color: var(--ink); box-shadow: 0 0 0 10px rgba(240,213,140,.18);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.vid-play svg { width: 24px; height: 24px; margin-left: 4px; }
.vid-badge { position: absolute; z-index: 2; bottom: 10px; right: 12px; font-family: var(--f-kufi); font-size: .75rem; color: var(--gold-2); letter-spacing: .08em; }
.vid:hover .vid-poster img { transform: scale(1.08); filter: none; }
.vid:hover .vid-play { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(240,213,140,.12); }
.vid-meta { display: block; padding: 12px 2px 0; }
.vid-meta b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.6; color: var(--pearl); }
.vid-meta em { font-style: normal; font-size: .85rem; color: var(--pearl-dim); }

/* مشغّل الفيديو */
.vmodal { position: fixed; inset: 0; z-index: 850; display: grid; place-items: center; padding: 16px; background: rgba(5,4,3,.9); backdrop-filter: blur(8px); animation: fade .4s; }
.vmodal[hidden] { display: none; }
.v-box { width: min(1000px, 100%); animation: unfold .6s var(--ease); }
.v-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.v-head p { font-family: var(--f-display); font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--pearl); }
.v-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(240,213,140,.4); color: var(--gold-2); font-size: 1.6rem; }
.v-close:hover { background: var(--gold-2); color: var(--ink); }
.v-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.v-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-src { margin-top: 10px; font-size: .88rem; color: var(--pearl-dim); }
.v-src a { color: var(--gold-2); }
.credits-note { margin-top: 14px; }

/* ---------------- الفصل الرابع: اللبس ---------------- */
.attire {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(239, 51, 64, .07), transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(212, 169, 79, .08), transparent 50%),
    var(--ink);
}
.attire::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background:
    repeating-linear-gradient(60deg, transparent 0 18px, var(--gold-2) 18px 19px, transparent 19px 38px),
    repeating-linear-gradient(-60deg, transparent 0 18px, var(--gold-2) 18px 19px, transparent 19px 38px);
}
.wardrobe { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.w-side { position: sticky; top: 100px; }
.w-group { font-family: var(--f-kufi); color: var(--gold); font-size: .82rem; letter-spacing: .12em; margin: 0 0 10px; }
.w-group:not(:first-child) { margin-top: 26px; }
.w-tabs { display: grid; gap: 8px; }
.w-tab {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; text-align: right;
  padding: 14px 18px; border: 1px solid rgba(243,237,226,.12); border-radius: 4px; background: rgba(243,237,226,.02);
  position: relative; overflow: hidden; transition: border-color .4s, background .4s, padding .5s var(--ease);
}
.w-tab b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; color: var(--pearl); }
.w-tab span { font-size: .82rem; color: var(--pearl-dim); }
.w-tab::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-2); transform: scaleY(0); transition: transform .5s var(--ease); }
.w-tab:hover { border-color: rgba(240,213,140,.4); }
.w-tab.active { background: linear-gradient(to left, rgba(240,213,140,.12), transparent); border-color: rgba(240,213,140,.5); padding-right: 24px; }
.w-tab.active::before { transform: scaleY(1); }
.w-tab.active b { color: var(--gold-2); }

.w-stage { position: relative; min-height: 520px; }
.w-panel { display: none; }
.w-panel.active { display: block; animation: panelIn .8s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.w-kicker { font-family: var(--f-kufi); font-size: .82rem; color: var(--gold); letter-spacing: .1em; }
.w-panel h3 { font-family: var(--f-callig); font-weight: 400; font-size: clamp(3rem, 7vw, 5rem); line-height: 1.3; color: var(--pearl); }
.w-panel > p { font-size: 1.08rem; color: var(--pearl-dim); max-width: 720px; }
.w-panel > p b { color: var(--gold-2); font-weight: 600; }
.w-facts { list-style: none; display: grid; gap: 10px; margin: 24px 0 30px; max-width: 720px; }
.w-facts li { position: relative; padding-right: 26px; color: var(--pearl-dim); font-size: .98rem; }
.w-facts li::before { content: ""; position: absolute; right: 0; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d8cdb9 60%, #8a7d6a); }
.w-facts b { color: var(--pearl); }
.w-panel > .vid { max-width: 720px; }
.w-panel .vids.two { max-width: 900px; }

/* =================================================================
   التجاوب
   ================================================================= */
@media (max-width: 1000px) {
  .vids.three, .vids.four { grid-template-columns: repeat(2, 1fr); }
  .wardrobe { grid-template-columns: 1fr; }
  .w-side { position: static; }
  .w-tabs { grid-template-columns: repeat(3, 1fr); }
  .w-tab { flex-direction: column; align-items: flex-start; gap: 0; }
  .w-stage { min-height: 0; }
}
@media (max-width: 600px) {
  .vids, .vids.three, .vids.four, .vids.two { grid-template-columns: 1fr; }
  .w-tabs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .w-tab { padding: 10px; }
  .w-tab b { font-size: 1.05rem; }
  .w-tab span { display: none; }
  .w-tab.active { padding-right: 14px; }
}
@media (max-width: 1000px) {
  .story-row { grid-template-columns: 1fr; padding-left: 0; }
  .story-row.reverse > :first-child { order: 0; }
  .depth-rail { display: none; }
  .founder, .flag-block, .union { grid-template-columns: 1fr; }
  .arch { max-width: 380px; width: 100%; margin-inline: auto; }
  .union-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .photo-archive { max-width: 520px; width: 100%; margin-inline: auto; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 510; flex-direction: column; justify-content: center; gap: 4px;
    padding: 0 40px; background: rgba(10, 8, 6, .97); backdrop-filter: blur(10px);
    clip-path: circle(0 at calc(100% - 40px) 38px); transition: clip-path .9s var(--ease);
  }
  .nav-links.open { clip-path: circle(150% at calc(100% - 40px) 38px); }
  .nav-link { font-family: var(--f-display); font-size: 2.2rem; color: var(--pearl); padding: 8px 0; opacity: 0; transform: translateX(-30px); transition: opacity .6s, transform .6s var(--ease); }
  .nav-link i { font-size: 1rem; margin-left: 12px; }
  .nav-links.open .nav-link { opacity: 1; transform: none; }
  .nav-links.open .nav-link:nth-child(2) { transition-delay: .08s; }
  .nav-links.open .nav-link:nth-child(3) { transition-delay: .16s; }
  .nav-links.open .nav-link:nth-child(4) { transition-delay: .24s; }
  .nav-links.open .nav-link:nth-child(5) { transition-delay: .32s; }
  .nav-link::after { display: none; }

  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tile-a, .tile-b, .tile-c, .tile-d { grid-column: auto; grid-row: auto; }
  .tile-body p { max-height: none; opacity: 1; }
}

@media (max-width: 600px) {
  .hero-meta { flex-direction: column; align-items: flex-start; bottom: 20px; }
  .hero-caption { font-size: .85rem; }
  .chapter-num { font-size: 8rem; top: -.4em; }
  .photo-float { width: 52%; left: -2%; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .btn-gold { width: 100%; }
  .union-stats { grid-template-columns: 1fr; }
  .union-stats b { font-size: 3.6rem; }
  .gallery-ctrl p { display: none; }
  .g-card { flex-basis: 80vw; }
  .flag-stage { padding-left: 22px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero-eyebrow, .hero-lead, .btn-dive { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .clip-reveal { clip-path: none; }
  .clip-reveal img, .slide img { transform: none; }
  .grain { display: none; }
}
