/* V4 — The Learning Atlas. Only the homepage; existing Persian font faces remain in natilos-modern.css. */
.nat-landing{--atlas-ink:#251337;--atlas-plum:#31174b;--atlas-violet:#7843b2;--atlas-light:#ead9fb;--atlas-line:#e8deef;background:#faf8fc!important}
.nat-landing .nat-shell{width:min(1220px,calc(100% - 64px))}
.nat-landing .nat-home-header{background:#fff;box-shadow:0 1px 0 #3020440a}
.nat-landing .nat-hero{position:relative;isolation:isolate;overflow:hidden;min-height:560px;grid-template-columns:1.13fr .87fr;padding:clamp(30px,5vw,68px);border-radius:32px;background:radial-gradient(ellipse at 16% 42%,#5f3286 0%,transparent 54%),linear-gradient(120deg,#361950,#20102f 83%);box-shadow:0 24px 70px #35134f1b;gap:30px;margin:24px 0 72px}
.nat-landing .nat-hero:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#e7cfff09 1px,transparent 1px),linear-gradient(90deg,#e7cfff09 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(90deg,#000,transparent 80%)}
.nat-landing .nat-hero-copy{position:relative;z-index:2;padding-bottom:22px}
.nat-landing .nat-hero h1{font-size:clamp(36px,4.7vw,67px);line-height:1.55;font-weight:700;letter-spacing:normal;margin:18px 0 14px}
.nat-landing .nat-hero h1 em{color:#e1c5fb;font-style:normal}
.nat-landing .nat-hero-copy>p{max-width:490px;color:#e7d9ef;font-size:16px;line-height:2.2}
.nat-landing .nat-search{margin-top:26px;box-shadow:0 12px 30px #170a2830}
.nat-landing .nat-hero-art{position:relative;min-width:0;transform:translate3d(0,var(--atlas-art-y,0px),0);will-change:auto}
.nat-landing .nat-book-art{width:100%;max-width:440px;position:relative;filter:drop-shadow(0 16px 24px #190b2e5e);transform:rotate(var(--atlas-book-rotate,0deg))}
.nat-hero-halo{position:absolute;inset:10% 6%;border-radius:50%;background:radial-gradient(circle,#b885ff38,transparent 68%);pointer-events:none;transform:scale(var(--atlas-halo-scale,1))}
.nat-art-index{position:absolute;bottom:3%;right:4%;font-size:11px;color:#d6b9f1;direction:ltr}
.nat-scroll-cue{position:absolute;bottom:22px;right:clamp(30px,5vw,68px);display:inline-flex;gap:9px;align-items:center;color:#e6d3f9!important;font-size:12px;text-decoration:none!important;z-index:3}
.nat-scroll-cue span{display:grid;place-items:center;border:1px solid #d9bdfb70;width:29px;height:29px;border-radius:50%;transition:transform .25s}
.nat-scroll-cue:hover span{transform:translateY(4px)}
.nat-scroll-meter{position:fixed;z-index:10000;inset:0 0 auto;height:3px;pointer-events:none;display:none;background:#e5d7ee44;direction:rtl}.nat-landing.atlas-motion .nat-scroll-meter{display:block}.nat-scroll-meter span{display:block;width:100%;height:100%;background:#a46cde;transform:scaleX(var(--atlas-progress,0));transform-origin:right center}
.nat-landing .nat-section{margin:0 0 80px;scroll-margin-top:20px}.nat-landing .nat-section-head{align-items:end;margin:0 0 28px}.nat-landing .nat-section h2{font-size:clamp(25px,3vw,38px);line-height:1.6;color:var(--atlas-ink);font-weight:700}.nat-landing .nat-eyebrow{font-weight:700;letter-spacing:normal;color:#7945a8}.nat-landing .nat-section-head p{color:#74647e}
.nat-journey-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr);gap:24px;align-items:start}.nat-chapters{grid-column:1;grid-row:1;display:grid;gap:18px;min-width:0}.nat-journey-visual{grid-column:2;grid-row:1;position:sticky;top:24px;min-height:390px;overflow:hidden;padding:24px;border-radius:26px;background:radial-gradient(circle at 50% 40%,#f8f2ff 0%,#ede1fa 80%);border:1px solid #e8d8f5;display:grid;grid-template-rows:auto 1fr auto auto;gap:12px;color:#5c347f;isolation:isolate;transition:background .45s,color .45s}
.nat-journey-caption{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px;direction:ltr;color:inherit}.nat-scene-counter{font-size:12px;letter-spacing:0}.nat-orbit{position:relative;display:grid;place-items:center;aspect-ratio:1.5;max-height:210px;min-height:175px;width:100%;align-self:center}.nat-orbit-ring{position:absolute;width:145px;height:145px;border-radius:50%;border:1px solid currentColor;opacity:.16}.nat-orbit-ring.ring-2{width:190px;height:190px;border-style:dashed;opacity:.25}.nat-orbit-ring.ring-3{width:222px;height:222px;opacity:.12}.nat-orbit-track{position:absolute;width:190px;height:190px;transform:rotate(var(--atlas-orbit-angle,0deg));transition:transform .75s cubic-bezier(.22,.8,.25,1)}.nat-orbit-track i{position:absolute;top:5px;left:45px;width:11px;height:11px;border-radius:50%;background:currentColor;box-shadow:0 0 0 6px #9975c12c}.nat-scene-icon{width:117px;height:117px;border-radius:32px;background:#ffffffb5;box-shadow:0 13px 35px #5b378b24;display:grid;place-items:center;transform:rotate(-7deg);border:1px solid #fff;transition:transform .55s,background .45s}.nat-scene-icon svg{width:78px;height:78px}.nat-scene-symbol{opacity:0;transform-origin:50% 50%;transform:scale(.78) rotate(9deg);transition:opacity .32s,transform .5s}.nat-journey-visual[data-active="0"] .scene-0,.nat-journey-visual[data-active="1"] .scene-1,.nat-journey-visual[data-active="2"] .scene-2{opacity:1;transform:scale(1) rotate(0)}.nat-orbit-star{position:absolute;top:14%;right:14%;font-size:26px}.nat-orbit-dot{position:absolute;bottom:13%;left:12%;height:6px;width:6px;background:currentColor;border-radius:50%}.nat-scene-description{position:relative;text-align:center}.nat-scene-description small{display:block;font-size:11px;opacity:.75}.nat-scene-description strong{display:block;font-size:23px;line-height:1.6}.nat-scene-description p{margin:4px 0 0;font-size:12px}.nat-scene-dots{display:flex;gap:6px;justify-content:center}.nat-scene-dots i{width:7px;height:7px;border-radius:8px;background:currentColor;opacity:.25;transition:width .3s,opacity .3s}.nat-journey-visual[data-active="0"] .nat-scene-dots i:nth-child(1),.nat-journey-visual[data-active="1"] .nat-scene-dots i:nth-child(2),.nat-journey-visual[data-active="2"] .nat-scene-dots i:nth-child(3){width:24px;opacity:1}.nat-journey-visual[data-active="1"]{background:radial-gradient(circle at 50% 40%,#eee6fa,#d9c4ef);color:#4d277a;--atlas-orbit-angle:118deg}.nat-journey-visual[data-active="2"]{background:radial-gradient(circle at 50% 40%,#5f3683,#311749);color:#f0dfff;--atlas-orbit-angle:236deg}.nat-journey-visual[data-active="1"] .nat-scene-icon{transform:rotate(4deg)}.nat-journey-visual[data-active="2"] .nat-scene-icon{transform:rotate(0deg);background:#ffffff18;border-color:#ffffff35}
.nat-chapter{min-height:255px;padding:25px;background:#fff;border:1px solid #e9e2ee;border-radius:24px;transition:border-color .3s,box-shadow .3s;scroll-margin-top:24px}.atlas-motion .nat-chapter.is-active{border-color:#bc99df;box-shadow:0 12px 32px #48216a0a}.nat-chapter-head{display:flex;gap:15px;align-items:center;margin-bottom:20px}.nat-chapter-number{font-size:25px;color:#a578cb;border-left:1px solid #ebdff3;padding-left:15px;direction:ltr}.nat-chapter-head h3{margin:0;color:var(--atlas-ink);font-size:22px;font-weight:700}.nat-chapter-head p{margin:3px 0 0;color:#72667f;font-size:13px}.nat-chapter-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nat-landing .nat-chapter .nat-topic{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;gap:5px;min-height:98px;position:relative;padding:18px 16px 18px 38px;border:1px solid #eee7f3;border-radius:15px;box-shadow:none;background:#faf8fc;transform:none;transition:background .22s,border-color .22s}.nat-landing .nat-chapter .nat-topic:hover{background:#f0e7fa;border-color:#cba9e9;text-decoration:none}.nat-chapter .nat-topic-num{display:none}.nat-landing .nat-chapter .nat-topic strong{font-size:15px;padding:0;line-height:1.7}.nat-landing .nat-chapter .nat-topic small{font-size:12px;line-height:1.7}.nat-chapter .nat-arrow{top:50%;left:12px;transform:translateY(-50%);transition:transform .25s}.nat-chapter .nat-topic:hover .nat-arrow{transform:translate(-4px,-50%)}
.nat-landing .nat-guide-section{padding:30px;border:1px solid #ece3f1;border-radius:27px;background:#fff}.nat-landing .nat-guides{gap:12px}.nat-landing .nat-guide{box-shadow:none;border:1px solid #ece4f1;background:#faf8fc;min-height:92px}.nat-landing .nat-guide:hover{border-color:#bd9bdb;background:#f2eafa}.nat-endcap{margin:0 0 65px;display:flex;gap:24px;align-items:center;justify-content:space-between;padding:35px 40px;background:#eee5f7;border:1px solid #e4d5ef;border-radius:26px}.nat-endcap h2{font-size:26px;color:#31174b;margin:4px 0}.nat-endcap p{font-size:13px;color:#6f5c7e;margin:0}.nat-endcap>a{display:inline-flex;gap:12px;align-items:center;padding:12px 20px;border-radius:13px;background:#5e328a;color:#fff!important;text-decoration:none!important;white-space:nowrap;font-size:14px}
/* Content remains visible without JavaScript. Animate only when a section enters view. */
.atlas-motion .nat-entered{animation:atlas-enter .65s cubic-bezier(.2,.75,.25,1) both;animation-delay:var(--atlas-delay,0ms)}@keyframes atlas-enter{from{opacity:.4;translate:0 22px}to{opacity:1;translate:0 0}}.nat-landing :focus-visible{outline-offset:4px}.nat-landing #nat-search{scroll-margin-top:24px}
@media(max-width:900px){.nat-landing .nat-hero{min-height:480px;gap:15px;padding:36px}.nat-journey-grid{grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:16px}.nat-chapter{padding:18px}.nat-chapter-links{grid-template-columns:1fr}.nat-journey-visual{padding:18px}.nat-scroll-cue{right:36px}}
@media(max-width:720px){.nat-landing .nat-shell{width:calc(100% - 28px)}.nat-landing .nat-hero{grid-template-columns:1fr;min-height:0;padding:26px 20px 47px;border-radius:24px;gap:6px;margin:16px 0 48px}.nat-landing .nat-hero-copy{padding-bottom:0}.nat-landing .nat-hero h1{font-size:clamp(32px,9vw,43px);margin:12px 0}.nat-landing .nat-hero-copy>p{font-size:14px}.nat-landing .nat-hero-art{min-height:0;max-height:205px;transform:none}.nat-landing .nat-book-art{max-width:250px}.nat-scroll-cue{bottom:12px;right:20px}.nat-art-index{display:none}.nat-landing .nat-section{margin-bottom:46px}.nat-landing .nat-section-head{align-items:start;gap:10px;margin-bottom:17px}.nat-landing .nat-section h2{font-size:25px}.nat-journey-grid{display:block}.nat-journey-visual{display:none}.nat-chapters{gap:12px}.nat-chapter{min-height:0;padding:17px;border-radius:19px}.nat-chapter-head h3{font-size:19px}.nat-chapter-head p{font-size:12px}.nat-chapter-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.nat-landing .nat-chapter .nat-topic{min-height:96px;padding:12px 10px 12px 23px}.nat-landing .nat-chapter .nat-topic strong{font-size:13px}.nat-landing .nat-chapter .nat-topic small{font-size:11px}.nat-chapter .nat-arrow{left:7px;font-size:14px}.nat-landing .nat-guide-section{padding:16px;border-radius:20px}.nat-endcap{flex-direction:column;align-items:flex-start;padding:22px;margin-bottom:35px}.nat-endcap h2{font-size:21px}}
@media(max-width:360px){.nat-chapter-links{grid-template-columns:1fr}.nat-landing .nat-hero h1{font-size:31px}}
@media(prefers-reduced-motion:reduce){.nat-landing *, .nat-landing *::before,.nat-landing *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.nat-landing .nat-hero-art,.nat-landing .nat-book-art,.nat-landing .nat-hero-halo{transform:none!important}}

/* V5 — a real scroll-linked journey, not a one-shot entrance animation. */
.nat-landing .nat-hero{min-height:clamp(530px,76vh,680px);margin-bottom:clamp(60px,9vw,110px)}
.nat-landing .nat-hero-art{overflow:visible;transform:none;min-height:280px}
.nat-landing .nat-book-art{transform:translate3d(var(--v5-hero-x,0px),var(--v5-hero-y,0px),0) rotate(var(--v5-hero-rotate,0deg)) scale(var(--v5-hero-scale,1));transform-origin:50% 50%}
.nat-landing .nat-hero-halo{transform:translateX(var(--v5-hero-glow,0px)) scale(1.35);background:radial-gradient(circle,#b88bf954,transparent 69%)}
.nat-landing .nat-hero-copy{transform:translateY(var(--v5-copy-y,0px))}
.nat-landing .nat-scroll-meter{display:block;height:4px;background:#e7d9f5}
.nat-landing .nat-scroll-meter span{background:linear-gradient(90deg,#a77be0,#6834a4)}
.nat-landing .nat-journey-grid{gap:clamp(20px,4vw,52px);position:relative;overflow:visible;align-items:start}
.nat-landing .nat-chapters{gap:22px}
.nat-landing .nat-chapter{min-height:clamp(340px,57vh,490px);padding:clamp(23px,3vw,38px);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;border-radius:28px;border:1px solid #e5d8ef;box-shadow:0 8px 28px #37144d06;background:linear-gradient(140deg,#fff 55%,#faf5ff);}
.nat-landing .nat-chapter:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:#ab78da;transform:scaleX(var(--v5-chapter-progress,0));transform-origin:right;pointer-events:none}
.nat-landing.atlas-motion .nat-chapter.is-active{border-color:#a77ad2;box-shadow:0 16px 48px #62318d16}
.nat-landing .nat-chapter-head{margin-bottom:26px;align-items:center;gap:18px}
.nat-landing .nat-chapter-number{font-size:35px;color:#7d4caf;padding-left:20px;line-height:1.2}
.nat-landing .nat-chapter-head h3{font-size:clamp(23px,2.7vw,33px);line-height:1.7}
.nat-landing .nat-chapter-head p{font-size:14px;line-height:1.95}
.nat-landing .nat-chapter .nat-topic{min-height:118px;border-radius:18px;padding:20px 18px 20px 35px;align-content:center}
.nat-landing .nat-chapter .nat-topic strong{font-size:16px}
.nat-landing .nat-journey-visual{position:sticky;top:clamp(20px,9vh,88px);min-height:clamp(410px,64vh,570px);padding:clamp(23px,3vw,35px);border-radius:30px;gap:18px;box-shadow:0 20px 46px #32144f20;isolation:isolate;overflow:hidden;background:#32174c;color:#f5e9ff;border:1px solid #8e64b9;transition:background-color .55s,border-color .55s}
.nat-landing .nat-journey-visual:before{content:"";position:absolute;z-index:-1;inset:-30%;background:radial-gradient(circle at 50% 40%,#b886f94d,transparent 47%),repeating-radial-gradient(circle at center,#fff0 0 37px,#e8d3ff0c 38px 39px);transform:rotate(var(--v5-orbit-spin,0deg));pointer-events:none}
.nat-landing .nat-journey-visual[data-active="1"]{background:#51327c;color:#f6edff;border-color:#b395d9}
.nat-landing .nat-journey-visual[data-active="2"]{background:#221031;color:#ebd4ff;border-color:#7952a0}
.nat-landing .nat-orbit{max-height:290px;min-height:230px;aspect-ratio:1.15;transform:scale(var(--v5-orbit-scale,1));}
.nat-landing .nat-orbit-ring.ring-1{width:164px;height:164px;opacity:.24}
.nat-landing .nat-orbit-ring.ring-2,.nat-landing .nat-orbit-track{width:215px;height:215px}
.nat-landing .nat-orbit-ring.ring-3{width:260px;height:260px}
.nat-landing .nat-orbit-track{transform:rotate(var(--v5-orbit-spin,0deg));transition:none}
.nat-landing .nat-scene-icon{width:146px;height:146px;border-radius:40px;background:#e5ccff19;border-color:#f1dfff48;box-shadow:0 15px 50px #180b2c60}
.nat-landing .nat-scene-icon svg{width:100px;height:100px}
.nat-landing .nat-scene-symbol{transform:scale(.65) rotate(-22deg);transition:opacity .35s,transform .65s cubic-bezier(.2,.8,.2,1)}
.nat-landing .nat-journey-visual[data-active="0"] .scene-0,.nat-landing .nat-journey-visual[data-active="1"] .scene-1,.nat-landing .nat-journey-visual[data-active="2"] .scene-2{transform:scale(1) rotate(0)}
.nat-landing .nat-scene-description strong{font-size:26px;color:#fff}
.nat-landing .nat-scene-description p{font-size:13px;color:#e4d0f8}
.nat-v5-journey-progress{height:4px;border-radius:6px;overflow:hidden;background:#ffffff25;direction:rtl}
.nat-v5-journey-progress i{display:block;height:100%;background:#e6c9ff;border-radius:6px;transform:scaleX(var(--v5-journey-progress,0));transform-origin:right}
.nat-landing .nat-journey-visual{grid-template-rows:auto 1fr auto auto auto}
.nat-v5-chapter-art{display:none}
.nat-landing.atlas-motion .nat-chapter-head,.nat-landing.atlas-motion .nat-chapter-links{transform:translateY(var(--v5-chapter-y,0px));opacity:var(--v5-chapter-opacity,1)}
.nat-landing.atlas-motion .nat-section-head,.nat-landing.atlas-motion .nat-guide,.nat-landing.atlas-motion .nat-endcap{translate:0 var(--v5-reveal-y,0px);opacity:var(--v5-reveal-opacity,1)}
@media(min-width:721px) and (max-height:640px){.nat-landing .nat-journey-visual{top:12px;min-height:360px;padding:16px;gap:9px}.nat-landing .nat-orbit{max-height:190px;min-height:160px;transform:scale(.82)}.nat-landing .nat-scene-description strong{font-size:21px}}
@media(max-width:720px){
 .nat-landing .nat-hero{min-height:0;margin-bottom:58px}
 .nat-landing .nat-hero-art{min-height:180px;max-height:205px;overflow:hidden}
 .nat-landing .nat-book-art{transform:translateY(calc(var(--v5-hero-y,0px) * .35)) rotate(var(--v5-hero-rotate,0deg)) scale(var(--v5-hero-scale,1))}
 .nat-landing .nat-hero-copy{transform:none}
 .nat-landing .nat-chapter{min-height:0;padding:18px;gap:12px;border-radius:23px}
 .nat-landing .nat-chapter-head{margin-bottom:6px;gap:12px}
 .nat-landing .nat-chapter-head h3{font-size:21px}.nat-landing .nat-chapter-head p{font-size:12px}.nat-landing .nat-chapter-number{font-size:25px;padding-left:12px}
 .nat-v5-chapter-art{display:grid;place-items:center;position:relative;height:145px;border-radius:17px;overflow:hidden;color:#f0dbff;background:radial-gradient(circle at 50% 40%,#7043a3,#31174b);isolation:isolate}
 .nat-v5-chapter-art:before{content:"";position:absolute;inset:-45%;background:repeating-radial-gradient(circle,#fff0 0 24px,#ffffff18 25px 26px);transform:rotate(calc(var(--v5-chapter-progress,0) * 150deg)) translateX(calc(var(--v5-chapter-progress,0) * 25px));z-index:-1}
 .nat-v5-chapter-art svg{width:77px;height:77px;transform:scale(calc(.82 + var(--v5-chapter-progress,0) * .35)) rotate(calc(-12deg + var(--v5-chapter-progress,0) * 24deg))}
 .nat-landing .nat-chapter .nat-topic{min-height:95px;padding:13px 9px 13px 25px}.nat-landing .nat-chapter .nat-topic strong{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.nat-landing .nat-hero-copy,.nat-landing .nat-book-art,.nat-landing .nat-hero-halo,.nat-landing .nat-v5-chapter-art svg,.nat-landing .nat-v5-chapter-art:before,.nat-landing .nat-orbit,.nat-landing .nat-orbit-track{transform:none!important}.nat-landing .nat-scroll-meter{display:none}.nat-landing .nat-chapter:before{display:none}.nat-landing .nat-section-head,.nat-landing .nat-guide,.nat-landing .nat-endcap{translate:none!important;opacity:1!important}}
