@font-face{font-family:Vazirmatn;src:url('assets/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:light;--ink:#0a1725;--navy:#10263a;--mineral:#31566c;--blue:#86adbd;--mist:#dce7ea;--pearl:#f3f6f7;--white:#fbfcfc;--champagne:#c7b07a;--text:#122333;--muted:#60717d;--surface:#fbfcfc;--line:rgba(16,38,58,.15);--glass:rgba(243,246,247,.87);--shadow:0 30px 80px rgba(10,23,37,.14);--soft:0 16px 44px rgba(10,23,37,.08);--max:1280px;--r:22px;--ease:cubic-bezier(.16,1,.3,1)}
[data-theme=dark]{color-scheme:dark;--pearl:#0a1725;--white:#10263a;--text:#edf3f5;--muted:#9eb2bc;--surface:#11283c;--mist:#173249;--mineral:#8fb3c2;--line:rgba(220,231,234,.16);--glass:rgba(10,23,37,.88);--shadow:0 30px 80px rgba(0,0,0,.28);--soft:0 16px 44px rgba(0,0,0,.2)}
*,*:before,*:after{box-sizing:border-box}
/* Real bug fixed 2026-09-11 (owner report + screenshot): homepage.css had
   no base .icon rule (unlike blog.css's own svg.icon{width:1em;height:1em}),
   so every <svg class="icon"> not covered by a more specific contextual
   selector rendered at its raw/intrinsic SVG size - huge, unstyled shapes
   flashing on load (giant play triangles, X icons, arrows). This is the
   same fallback blog.css already has; more specific rules elsewhere in this
   file still win by specificity, this only catches the ones that had none. */
.icon{width:1em;height:1em;display:inline-block;vertical-align:-.125em;fill:currentColor;flex:none}
html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;min-width:320px;overflow-x:hidden;background:var(--pearl);color:var(--text);font-family:Vazirmatn,Tahoma,sans-serif;font-size:16px;line-height:1.8;transition:background .25s,color .25s}body.menu-lock{overflow:hidden}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}a,button{touch-action:manipulation}img{display:block;max-width:100%}::selection{background:var(--champagne);color:var(--ink)}.shell{width:min(calc(100% - 48px),var(--max));margin-inline:auto}.section{padding-block:clamp(96px,11vw,160px)}.skip{position:fixed;z-index:1000;top:10px;right:16px;padding:10px 16px;background:var(--white);border:1px solid var(--line);transform:translateY(-160%)}.skip:focus{transform:none}.overline{display:flex;align-items:center;gap:12px;margin:0 0 22px;color:var(--mineral);font-size:12px;font-weight:800;letter-spacing:.04em}.overline>span{width:36px;height:1px;background:var(--champagne)}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.15;letter-spacing:-.045em}h2{font-size:clamp(44px,6vw,82px);font-weight:700}h1 em,h2 em{color:var(--mineral);font-style:normal;font-weight:500}.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s var(--ease),transform .7s var(--ease)}.reveal.visible{opacity:1;transform:none}
.header{position:fixed;z-index:50;inset:0 0 auto;height:82px;background:transparent;border-bottom:1px solid transparent;transition:.25s}.header.scrolled{background:var(--glass);border-color:var(--line);backdrop-filter:blur(20px);box-shadow:0 8px 30px rgba(10,23,37,.06)}.nav{height:100%;display:flex;align-items:center;gap:28px}.logo{display:flex;align-items:center;gap:11px;min-width:max-content}.logo>span{width:42px;height:42px;display:grid;place-items:center;background:var(--ink);color:var(--champagne);font-size:23px;font-weight:900}.logo strong,.logo small{display:block;line-height:1.25}.logo strong{font-size:14px}.logo small{margin-top:4px;color:var(--muted);font-size:10px}.desktop-menu{display:flex;gap:34px;margin-inline:auto;color:var(--muted);font-size:13px;font-weight:650}.desktop-menu a{position:relative;padding:12px 0}.desktop-menu a:after{content:"";position:absolute;inset:auto 0 5px;width:0;height:1px;background:var(--champagne);transition:.25s}.desktop-menu a:hover:after{width:100%}.nav-actions{display:flex;align-items:center;gap:10px}.icon-btn{width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:20px;transition:.2s}.icon-btn:hover{border-color:var(--blue);background:var(--mist)}.nav-cta{min-height:46px;display:flex;align-items:center;gap:9px;padding-inline:20px;background:var(--ink);color:#f3f6f7;font-size:12px;font-weight:800}.menu-open{display:none}.button{min-height:56px;display:inline-flex;align-items:center;justify-content:center;gap:11px;padding-inline:26px;border:1px solid transparent;font-weight:800;white-space:nowrap;transition:transform .2s,box-shadow .2s,background .2s}.button:hover{transform:translateY(-2px)}.button.primary{background:var(--ink);color:#f3f6f7;box-shadow:0 12px 30px rgba(10,23,37,.18)}.button.primary:hover{background:var(--navy)}.quiet-link{min-height:48px;display:inline-flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:13px;font-weight:750}.quiet-link i{color:var(--champagne)}
.hero{position:relative;min-height:100svh;padding-top:82px;background:var(--pearl);overflow:hidden}.hero:before{content:"";position:absolute;left:0;top:0;width:36%;height:100%;background:var(--mist);opacity:.72}.hero-grid{position:relative;display:grid;grid-template-columns:1.06fr .94fr;gap:clamp(46px,8vw,120px);align-items:center;min-height:calc(100svh - 140px);padding-block:42px}.hero-copy{position:relative;z-index:2}.hero h1{margin:0;font-size:clamp(52px,5.8vw,86px);font-weight:750}.hero-lead{max-width:610px;margin:22px 0 0;color:var(--muted);font-size:clamp(17px,1.6vw,21px);line-height:1.95}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:28px}.hero-sign{display:flex;align-items:end;gap:20px;margin-top:36px;padding-top:20px;border-top:1px solid var(--line);max-width:400px}.hero-sign span,.hero-sign strong{display:block}.hero-sign span{color:var(--muted);font-size:11px}.hero-sign strong{font-size:14px}.hero-art{position:relative;align-self:end;margin:0;max-width:570px}.hero-art:before{content:"";position:absolute;z-index:-1;inset:38px -24px -22px 42px;border:1px solid var(--champagne)}.hero-art img{width:100%;height:min(76svh,780px);object-fit:cover;object-position:center 26%;filter:saturate(.86) contrast(1.02)}.hero-art figcaption{position:absolute;right:-38px;bottom:36px;padding:16px 20px;background:rgba(10,23,37,.9);color:#edf3f5;border-right:2px solid var(--champagne);backdrop-filter:blur(12px)}.hero-art figcaption span,.hero-art figcaption b{display:block}.hero-art figcaption span{color:#aebfc7;font-size:10px}.hero-art figcaption b{font-size:13px}.hero-rail{min-height:58px;display:flex;align-items:center;justify-content:center;gap:clamp(18px,4vw,60px);padding-inline:20px;background:var(--ink);color:#dce7ea;font-size:12px;font-weight:700}.hero-rail i{width:3px;height:3px;border-radius:50%;background:var(--champagne)}
.intro-grid{display:grid;grid-template-columns:120px 1fr .65fr;gap:clamp(30px,5vw,76px);align-items:start}.section-code{color:var(--muted);font-size:10px;letter-spacing:.08em;writing-mode:vertical-rl}.intro-title h2{margin:0}.intro-copy{padding-top:70px}.intro-copy>p{color:var(--muted);font-size:18px;line-height:2}.line-link{display:inline-flex;align-items:center;justify-content:space-between;gap:38px;min-height:52px;margin-top:20px;border-bottom:1px solid var(--text);font-size:13px;font-weight:800}.proof-row{display:grid;grid-template-columns:repeat(3,1fr);margin-top:100px;border-block:1px solid var(--line)}.proof-row article{padding:34px 30px;border-left:1px solid var(--line)}.proof-row article:last-child{border-left:0}.proof-row span{color:var(--champagne);font-size:11px;font-weight:800}.proof-row h3{margin:18px 0 8px;font-size:21px}.proof-row p{margin:0;color:var(--muted);font-size:13px}
.story{background:var(--ink);color:#edf3f5}.story-image{position:relative;max-width:1600px;margin-inline:auto}.story-image img{width:100%;max-height:810px;object-fit:cover;filter:saturate(.78)}.story-mark{position:absolute;left:5%;bottom:8%;padding:20px 24px;border-left:1px solid var(--champagne);background:rgba(10,23,37,.76);font-size:clamp(22px,3vw,42px);font-weight:650;line-height:1.35;backdrop-filter:blur(12px)}.story-notes{display:grid;grid-template-columns:120px 1.2fr .8fr;gap:clamp(30px,5vw,70px);padding-block:90px}.story-notes .section-code{color:#92a8b2}.story-notes blockquote{margin:0;font-size:clamp(30px,4vw,56px);font-weight:600;line-height:1.65}.story-notes>p{margin:12px 0 0;color:#aebfc7;font-size:16px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:60px;margin-bottom:70px}.section-head h2{margin:0}.section-head>p{max-width:380px;margin:0;color:var(--muted)}.method-list{border-top:1px solid var(--line)}.method-list article{display:grid;grid-template-columns:80px 70px 1fr;align-items:center;gap:30px;padding:32px 12px;border-bottom:1px solid var(--line);transition:padding .25s,background .25s}.method-list article:hover{padding-inline:28px;background:var(--mist)}.method-list article>span{color:var(--muted);font-size:11px}.method-list article>i{font-size:34px;color:var(--mineral)}.method-list h3{margin:0 0 7px;font-size:clamp(25px,3vw,40px);font-weight:650}.method-list p{margin:0;color:var(--muted)}
.courses{overflow:hidden;background:var(--mist)}.course-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:46px}.course-head h2{max-width:780px;margin:0;font-size:clamp(42px,5.5vw,72px)}.rail-actions{display:grid;grid-template-columns:auto 46px 46px;gap:9px;align-items:center}.rail-actions p{display:flex;align-items:center;gap:8px;margin:0 16px 0 0;color:var(--muted);font-size:11px}.course-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(330px,27vw);gap:18px;width:max-content;max-width:100%;overflow-x:auto;padding:10px max(24px,calc((100vw - var(--max))/2)) 32px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--mineral) transparent;direction:rtl;cursor:grab;touch-action:pan-y;overscroll-behavior-inline:contain}.course-rail.dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}.course-card{position:relative;display:grid;grid-template-rows:300px auto;min-height:540px;overflow:hidden;background:var(--surface);border:1px solid var(--line);scroll-snap-align:start;box-shadow:var(--soft);transition:transform .3s var(--ease),box-shadow .3s}.course-card:hover{transform:translateY(-7px);box-shadow:var(--shadow)}.course-photo{position:relative;overflow:hidden;background:var(--navy)}.course-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,23,37,.7),transparent 55%);pointer-events:none}.course-photo img{width:100%;height:100%;object-fit:cover;object-position:center 16%;filter:saturate(.34) sepia(.05) hue-rotate(160deg) contrast(1.04);pointer-events:none;transition:transform .6s var(--ease),filter .4s}.course-card:hover img{transform:scale(1.035);filter:saturate(.55) sepia(.03) hue-rotate(160deg)}.course-photo span{position:absolute;z-index:2;right:18px;top:18px;padding:7px 11px;background:var(--champagne);color:var(--ink);font-size:10px;font-weight:850}.course-info{display:flex;flex-direction:column;padding:25px}.course-info small{color:var(--mineral);font-weight:800}.course-info h3{margin:8px 0 10px;font-size:28px}.course-info p{margin:0;color:var(--muted);font-size:13px}.course-info a{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:12px;font-weight:850}
/* Real UX bug fixed 2026-09-06 (same fix as .content-card in blog.css) -
   whole card clickable via this one real link's stretched hit area, not
   just its small bottom text. Safe with the drag-to-scroll rail above:
   that rail's own click handler (homepage.js) already intercepts and
   cancels the click in the capture phase whenever a drag happened,
   regardless of which element inside the card was actually hit. */
.course-info a:after{content:"";position:absolute;inset:0}
.app-section{background:var(--pearl)}.app-grid{display:grid;grid-template-columns:.86fr 1.14fr;gap:clamp(50px,9vw,130px);align-items:center}.app-copy h2{margin:0}.app-copy>p:not(.overline){max-width:560px;color:var(--muted);font-size:17px}.app-copy ul{list-style:none;padding:0;margin:30px 0}.app-copy li{display:flex;align-items:center;gap:12px;margin:13px 0;font-weight:650}.app-copy li i{color:var(--mineral)}.app-showcase{position:relative;min-height:700px;display:grid;place-items:center;background:var(--navy);overflow:hidden}.app-showcase:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(134,173,189,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(134,173,189,.09) 1px,transparent 1px);background-size:56px 56px;mask-image:linear-gradient(#000,transparent)}.phone{position:relative;z-index:2;width:min(330px,58%);height:590px;overflow:hidden;border:8px solid var(--ink);border-radius:36px;background:#eef4fa;box-shadow:0 34px 90px rgba(0,0,0,.34)}.phone-bar{height:42px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-inline:15px;background:#fbfcfc;color:#0a1725;font-size:10px}.phone-bar b{width:60px;height:16px;border-radius:999px;background:#0a1725}.phone-bar i{justify-self:end}.phone>img{width:100%;height:calc(100% - 42px);object-fit:cover;object-position:top}.app-caption{position:absolute;z-index:3;left:7%;bottom:8%;padding:16px 20px;background:var(--champagne);color:var(--ink)}.app-caption span,.app-caption strong{display:block}.app-caption span{font-size:10px}.app-caption strong{font-size:14px}
.journal{background:var(--white)}.journal-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:clamp(50px,8vw,120px)}.journal-title h2{margin:0}.journal-list{border-top:1px solid var(--line)}.journal-list>a{min-height:122px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);transition:padding .25s,background .25s}.journal-list>a:hover{padding-inline:18px;background:var(--mist)}.journal-list span small,.journal-list span b{display:block}.journal-list small{color:var(--mineral);font-weight:800}.journal-list b{margin-top:7px;font-size:18px}.journal-list>a>i{font-size:22px;color:var(--champagne)}
.closing{background:var(--ink);color:#edf3f5;text-align:center}.closing-inner{position:relative}.closing .overline{justify-content:center;color:#aebfc7}.closing h2{max-width:1050px;margin:0 auto;font-size:clamp(44px,6vw,84px)}.closing h2 em{color:var(--champagne)}.closing-inner>div{display:flex;justify-content:center;align-items:center;gap:28px;margin-top:45px}.button.light{background:#edf3f5;color:var(--ink)}.light-link{color:#edf3f5;border-color:#405568}.footer{background:#07111c;color:#dce7ea;padding-top:78px}.footer-grid{display:grid;grid-template-columns:1.5fr .7fr .7fr auto;gap:60px}.footer-brand p{max-width:420px;margin-top:24px;color:#849ba6}.footer-grid>div:not(.footer-brand)>strong,.footer-grid>div:not(.footer-brand)>a{display:block}.footer-grid>div:not(.footer-brand)>strong{margin-bottom:18px;color:#aebfc7}.footer-grid>div:not(.footer-brand)>a{padding:6px 0;color:#849ba6}.footer-grid>div:not(.footer-brand)>a:hover{color:var(--champagne)}.footer .logo small{color:#849ba6}.top{align-self:start;min-height:46px;padding:0 18px;border:1px solid #405568;background:transparent;color:#dce7ea;cursor:pointer}.copyright{min-height:80px;margin-top:60px;border-top:1px solid #263a4b;display:flex;align-items:center;justify-content:space-between;color:#647b86;font-size:11px}
.drawer{width:min(100%,460px);height:100%;max-height:none;margin:0 0 0 auto;padding:24px;border:0;border-left:1px solid var(--line);background:var(--pearl);color:var(--text)}.drawer::backdrop{background:rgba(5,13,22,.72);backdrop-filter:blur(7px)}.drawer-head{display:flex;align-items:center;justify-content:space-between;font-weight:800}.drawer nav{margin:55px 0}.drawer nav a{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line);font-size:23px;font-weight:700}.drawer nav b{color:var(--muted);font-size:10px}
@media(max-width:1024px){.desktop-menu{gap:18px}.hero-grid{grid-template-columns:1fr 1fr;gap:40px}.hero h1{font-size:7vw}.intro-grid{grid-template-columns:70px 1fr .75fr}.course-rail{grid-auto-columns:minmax(320px,42vw)}.app-showcase{min-height:590px}.phone{height:500px}.footer-grid{grid-template-columns:1.3fr .7fr .7fr}.top{grid-column:3}}
@media(max-width:768px){.shell{width:min(calc(100% - 32px),var(--max))}.header{height:68px}.desktop-menu,.nav-cta{display:none}.menu-open{display:grid}.nav-actions{margin-right:auto}.hero{padding-top:68px}.hero:before{width:100%;height:44%;opacity:.55}.hero-grid{display:flex;flex-direction:column;align-items:stretch;padding-block:54px 40px}.hero-copy{order:1}.hero-art{order:2;width:88%;margin-inline:auto}.hero-art img{height:62svh;min-height:500px}.hero-art figcaption{right:-18px}.hero h1{font-size:clamp(52px,14vw,82px)}.hero-lead{font-size:16px}.hero-sign{margin-top:36px}.hero-rail{justify-content:flex-start;overflow:hidden}.intro-grid{display:block}.section-code{writing-mode:horizontal-tb;margin-bottom:34px}.intro-copy{padding-top:36px}.proof-row{grid-template-columns:1fr;margin-top:70px}.proof-row article{border-left:0;border-bottom:1px solid var(--line)}.proof-row article:last-child{border-bottom:0}.story-notes{display:block}.story-notes blockquote{margin:30px 0}.story-image img{min-height:520px}.section-head{display:block}.section-head>p{margin-top:24px}.method-list article{grid-template-columns:45px 46px 1fr;gap:14px}.course-head{display:block}.rail-actions{margin-top:26px;grid-template-columns:1fr 46px 46px}.course-rail{grid-auto-columns:minmax(290px,78vw);padding-inline:16px}.app-grid,.journal-grid{grid-template-columns:1fr}.app-showcase{min-height:570px;margin-top:45px}.closing-inner>div{flex-direction:column}.footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.top{grid-column:2;justify-self:end}}
@media(max-width:520px){.section{padding-block:82px}.logo>span{width:40px;height:40px}.hero-actions{display:grid}.hero-actions .button{width:100%}.hero-art{width:94%}.hero-art img{min-height:440px;height:54svh}.hero-rail{gap:18px;white-space:nowrap}.intro-title h2,.app-copy h2,.journal-title h2{font-size:13vw}.proof-row article{padding-inline:6px}.story-image img{min-height:440px}.story-mark{left:16px;bottom:16px}.method-list article{grid-template-columns:34px 36px 1fr;padding-inline:0}.method-list article:hover{padding-inline:8px}.method-list p{font-size:13px}.rail-actions p{margin:0}.course-card{grid-template-rows:270px auto;min-height:500px}.app-showcase{min-height:500px}.phone{width:70%;height:430px;border-width:6px;border-radius:30px}.app-caption{left:3%;bottom:5%;padding:12px 14px}.journal-list>a{min-height:110px}.journal-list b{font-size:16px}.closing-inner>div{align-items:stretch}.button.light{width:100%}.footer-grid{grid-template-columns:1fr}.footer-brand,.top{grid-column:auto}.top{justify-self:start}.copyright{align-items:flex-start;flex-direction:column;justify-content:center;gap:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.course-card,.course-photo img,.method-list article{transition:none}}
.amir-original{position:relative;height:min(64svh,650px);overflow:hidden;background:var(--navy)}.amir-original:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,23,37,.68),transparent 52%);pointer-events:none}.amir-original img{width:100%;height:111%;margin-top:-9%;object-fit:cover;object-position:center bottom;filter:saturate(.34) sepia(.05) hue-rotate(160deg) contrast(1.04) brightness(.96)}
@media(max-width:768px){.amir-original{height:62svh;min-height:500px}.amir-original img{height:111%;min-height:0}}
@media(max-width:520px){.amir-original{min-height:440px;height:54svh}.amir-original img{height:111%;min-height:0}}
.proof-row{grid-template-columns:repeat(4,1fr)}
@media(max-width:768px){.proof-row{grid-template-columns:1fr}}
:focus-visible{outline:3px solid var(--champagne);outline-offset:4px}

/* Soft geometry: premium, friendly and deliberately free of sharp card edges. */
.skip,.logo>span,.icon-btn,.nav-cta,.button,.top{border-radius:14px}
.header.scrolled{border-radius:0 0 24px 24px}
.hero-art,.amir-original{border-radius:32px}
.hero-art:before{border-radius:36px}
.hero-art figcaption,.story-mark,.course-photo span,.app-caption{border-radius:16px}
.proof-row{border-radius:26px;overflow:hidden}
.story-image,.story-image img{border-radius:34px}
.method-list article{border-radius:18px}
.course-card{border-radius:28px}
.app-showcase{border-radius:38px}
.journal-list>a{border-radius:18px;padding-inline:18px}
.drawer{border-radius:0 30px 30px 0}
.hero-rail{position:relative;z-index:3;isolation:isolate}
@media(max-width:520px){.hero-art,.amir-original{border-radius:24px}.story-image,.story-image img{border-radius:26px}.course-card{border-radius:24px}.app-showcase{border-radius:28px}}

/* Editorial story split: a vertical visual supporting the copy. */
.story{padding-block:clamp(90px,10vw,150px)}
.story-layout{display:grid;grid-template-columns:.82fr 1.18fr;grid-template-areas:"image copy";gap:clamp(54px,8vw,120px);align-items:center}
.story-image{grid-area:image;max-width:none;margin:0;overflow:hidden;box-shadow:0 34px 90px rgba(0,0,0,.22)}
.story-image img{width:100%;height:clamp(470px,46vw,610px);max-height:none;aspect-ratio:auto;object-fit:cover;object-position:68% center}
.story-notes{grid-area:copy;display:grid;grid-template-columns:56px 1fr;gap:30px;padding:0}
.story-notes .section-code{align-self:start}
.story-copy h2{margin:0 0 36px;font-size:clamp(46px,5.4vw,76px)}
.story-copy h2 em{color:var(--champagne)}
.story-copy blockquote{margin:0 0 24px;padding-right:24px;border-right:2px solid var(--champagne);font-size:clamp(23px,2.4vw,34px);font-weight:650;line-height:1.75}
.story-copy>p{max-width:610px;margin:0;color:#aebfc7;font-size:16px}
.story-link{color:#edf3f5;border-color:#405568}

/* Invisible scrollbar with soft edge masks for the draggable course rail. */
.course-rail-wrap{position:relative}
.course-rail{scrollbar-width:none;-ms-overflow-style:none}
.course-rail::-webkit-scrollbar{display:none}
.course-rail-wrap:before,.course-rail-wrap:after{content:"";position:absolute;z-index:5;top:0;bottom:0;width:min(10vw,140px);pointer-events:none}
.course-rail-wrap:before{right:0;background:linear-gradient(to left,var(--mist) 4%,rgba(220,231,234,0))}
.course-rail-wrap:after{left:0;background:linear-gradient(to right,var(--mist) 4%,rgba(220,231,234,0))}
[data-theme=dark] .course-rail-wrap:before{background:linear-gradient(to left,var(--mist) 4%,rgba(23,50,73,0))}
[data-theme=dark] .course-rail-wrap:after{background:linear-gradient(to right,var(--mist) 4%,rgba(23,50,73,0))}
@media(max-width:768px){.story-layout{grid-template-columns:1fr;grid-template-areas:"copy" "image";gap:54px}.story-notes{display:grid;grid-template-columns:1fr}.story-notes .section-code{margin-bottom:0}.story-image{width:82%;margin-inline:auto}.story-image img{height:440px;aspect-ratio:auto;min-height:0}.course-rail-wrap:before,.course-rail-wrap:after{width:42px}}

/* Branded app download control with a custom linear SVG icon. */
.app-download{position:relative;display:grid;grid-template-columns:54px 1fr 24px;align-items:center;gap:16px;width:min(100%,430px);min-height:82px;margin-top:34px;padding:12px 14px 12px 18px;overflow:hidden;border:1px solid rgba(134,173,189,.34);border-radius:22px;background:var(--ink);color:#edf3f5;box-shadow:0 18px 46px rgba(10,23,37,.2);transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
.app-download:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(134,173,189,.16),transparent 42%,rgba(199,176,122,.1));pointer-events:none}
.app-download:hover{transform:translateY(-4px);border-color:var(--champagne);box-shadow:0 26px 60px rgba(10,23,37,.28)}
.app-download-icon{position:relative;width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:rgba(255,255,255,.08);color:var(--champagne)}
.app-download-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.app-download>span:nth-child(2){position:relative;display:flex;flex-direction:column;line-height:1.55}
.app-download small{color:#9eb2bc;font-size:10px}.app-download strong{font-size:15px}
.app-download-arrow{position:relative;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transform:scaleX(-1);transition:transform .25s var(--ease)}
.app-download:hover .app-download-arrow{transform:scaleX(-1) translateX(4px)}
[data-theme=dark] .app-download{background:#071624;border-color:rgba(143,179,194,.28)}

/* Filterable editorial cards. */
.content-filter{display:flex;flex-wrap:wrap;gap:9px;margin:-22px 0 34px}
.content-filter button{min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--muted);cursor:pointer;font-size:12px;font-weight:750;transition:.2s}
.content-filter button:hover{border-color:var(--blue);color:var(--text)}
.content-filter button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#edf3f5;box-shadow:0 10px 26px rgba(10,23,37,.16)}
.method-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;border:0}
.method-list article{position:relative;display:grid;grid-template-columns:44px 58px 1fr;align-items:center;gap:18px;min-height:230px;padding:30px;border:1px solid var(--line);border-radius:26px;background:var(--surface);box-shadow:var(--soft);overflow:hidden}
.method-list article:before{content:"";position:absolute;inset:auto -12% -50% auto;width:210px;aspect-ratio:1;border-radius:50%;background:var(--mist);opacity:.8;transition:transform .45s var(--ease)}
.method-list article:hover{padding-inline:30px;background:var(--surface);box-shadow:var(--shadow);transform:translateY(-5px)}
.method-list article:hover:before{transform:scale(1.18)}
.method-list article>span,.method-list article>i,.method-list article>div,.method-list article>b{position:relative;z-index:1}
.method-list article>i{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:var(--mist);font-size:29px}
.method-list article>b{position:absolute;left:28px;bottom:26px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}
.method-list article[hidden]{display:none}
.course-rail{padding-inline:0}
@media(max-width:768px){.method-list{grid-template-columns:1fr}.method-list article{grid-template-columns:36px 50px 1fr;min-height:190px;padding:22px}.method-list article:hover{padding-inline:22px}.method-list article>i{width:50px;height:50px}.content-filter{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}.content-filter::-webkit-scrollbar{display:none}.course-rail{padding-inline:0}}

/* Real content lives inside each filter tab. */
.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.content-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:26px;background:var(--surface);box-shadow:var(--soft);transition:transform .3s var(--ease),box-shadow .3s}
.content-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.content-card[hidden]{display:none}
.content-thumb{position:relative;height:205px;overflow:hidden;background:var(--navy)}
.content-thumb .card-kind{position:absolute;z-index:2;right:14px;top:14px;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:11px;background:rgba(10,23,37,.84);color:#edf3f5;font-size:10px;font-weight:850;backdrop-filter:blur(10px)}
.content-thumb .play-orbit{position:absolute;left:16px;bottom:16px;width:44px;height:44px;display:grid;place-items:center;border:1px solid rgba(237,243,245,.3);border-radius:50%;color:#edf3f5;font-size:16px;background:rgba(10,23,37,.35);backdrop-filter:blur(4px)}
.content-thumb img{width:100%;height:100%;object-fit:cover;object-position:center 18%;filter:saturate(.34) sepia(.05) hue-rotate(160deg) contrast(1.04);transition:transform .5s var(--ease)}
.content-card:hover .content-thumb img{transform:scale(1.04)}
.content-thumb.graphic{position:relative;display:flex;align-items:flex-end;justify-content:space-between;padding:24px;color:#edf3f5;background:var(--navy)}
.content-thumb.graphic:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 38px,rgba(255,255,255,.045) 39px 40px)}
.content-thumb.graphic i,.content-thumb.graphic span{position:relative}.content-thumb.graphic i{font-size:52px;color:var(--champagne)}.content-thumb.graphic span{font-size:11px;font-weight:800}
.content-thumb.audio{background:linear-gradient(145deg,#122d43,#31566c)}.content-thumb.video{background:linear-gradient(145deg,#0a1725,#173249)}
.content-thumb.video i{width:68px;height:68px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:50%}
.content-meta{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0;color:var(--mineral);font-size:11px;font-weight:800}.content-meta small{color:var(--muted)}
.content-card h3{min-height:64px;margin:8px 24px 16px;font-size:23px;line-height:1.4}
.content-card>a{display:flex;align-items:center;justify-content:space-between;min-height:58px;margin-inline:24px;border-top:1px solid var(--line);font-size:12px;font-weight:800}
/* Real UX bug fixed 2026-09-06 (owner: "کارت‌های محتوای صفحه اول کامل
   کلیک‌خور نشده") - same stretched-link fix as .content-card in blog.css
   and .course-card above: the one real link's ::after now covers the
   whole card (image/badge/title included), not just its own small footer
   strip. Deliberately NOT position:relative on the anchor itself - that
   was the exact bug caught earlier this session (it shrinks the stretch
   back down to just the anchor's own box). */
.content-card>a:after{content:"";position:absolute;inset:0}
@media(max-width:1024px){.content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.content-grid{grid-template-columns:1fr}.content-thumb{height:220px}}
.content-more-wrap{display:flex;justify-content:flex-end;margin-top:30px}.content-more{min-height:54px;display:inline-flex;align-items:center;gap:30px;padding-inline:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);font-size:12px;font-weight:850;box-shadow:var(--soft);transition:.25s}.content-more:hover{transform:translateY(-3px);border-color:var(--champagne);box-shadow:var(--shadow)}.content-more svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:scaleX(-1)}

/* Floating phone, without a decorative background panel. */
.app-showcase{min-height:650px;background:transparent;overflow:visible}
.app-showcase:before{display:none}
.phone{animation:phone-float 6s ease-in-out infinite;box-shadow:0 42px 90px rgba(10,23,37,.26),0 14px 30px rgba(10,23,37,.18)}
@keyframes phone-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@media(max-width:768px){.app-showcase{min-height:540px}}
@media(prefers-reduced-motion:reduce){.phone{animation:none}}

/* Immersive footer with app stores, courses and line-icon contact cards. */
.footer{position:relative;padding:0;background:#06111d;color:#dce7ea;overflow:hidden}
.footer:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 20%,rgba(49,86,108,.32),transparent 31%),radial-gradient(circle at 10% 75%,rgba(199,176,122,.08),transparent 26%);pointer-events:none}
.footer>.shell{position:relative}
.footer-app{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(40px,8vw,110px);align-items:center;margin-bottom:84px;padding:clamp(38px,5vw,68px);border:1px solid rgba(220,231,234,.13);border-radius:36px;background:linear-gradient(125deg,rgba(23,50,73,.94),rgba(10,23,37,.92));box-shadow:0 34px 90px rgba(0,0,0,.28);transform:translateY(-54px)}
.footer-app h2{margin:0 0 18px;color:#edf3f5;font-size:clamp(38px,4.5vw,66px)}.footer-app>div>p:last-child{max-width:650px;margin:0;color:#9eb2bc}.footer-app .overline{color:#aebfc7}
.store-buttons{display:grid;gap:12px}.store-button{display:grid;grid-template-columns:52px 1fr 22px;align-items:center;gap:14px;min-height:78px;padding:11px 14px;border:1px solid rgba(220,231,234,.15);border-radius:21px;background:#edf3f5;color:#0a1725;transition:transform .25s var(--ease),border-color .25s,background .25s}.store-button.ios{background:rgba(237,243,245,.08);color:#edf3f5}.store-button:hover{transform:translateX(-5px);border-color:var(--champagne)}
.store-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:rgba(10,23,37,.08);color:var(--mineral)}.ios .store-icon{background:rgba(255,255,255,.08);color:var(--champagne)}
.store-icon svg,.store-arrow{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.store-icon svg{width:29px;height:29px}.store-arrow{width:21px;height:21px;transform:scaleX(-1)}.store-button>span:nth-child(2){display:flex;flex-direction:column;line-height:1.4}.store-button small{font-size:10px;opacity:.65}.store-button strong{font-size:18px;letter-spacing:.02em}
.footer-main{display:grid;grid-template-columns:.72fr 1fr 1.35fr;gap:clamp(42px,6vw,90px);padding-bottom:74px}.footer-identity>p{max-width:270px;margin:24px 0;color:#849ba6}.footer-logo .logo>span,.footer-logo>span{background:#dce7ea;color:#0a1725}.footer-main>div>strong{display:block;margin-bottom:24px;color:#aebfc7;font-size:13px}
.footer-courses nav{display:grid;grid-template-columns:1fr 1fr;gap:4px 22px}.footer-courses a{padding:8px 0;color:#849ba6;font-size:13px;transition:.2s}.footer-courses a:hover{color:var(--champagne);transform:translateX(-3px)}
.footer-contact{display:grid;align-content:start;gap:10px}.footer-contact>strong{margin-bottom:14px!important}.contact-chip{display:grid;grid-template-columns:46px 1fr;align-items:center;gap:13px;min-height:68px;padding:9px 11px;border:1px solid rgba(220,231,234,.1);border-radius:18px;background:rgba(255,255,255,.025);transition:.2s}.contact-chip:hover{border-color:rgba(199,176,122,.5);background:rgba(255,255,255,.05);transform:translateX(-4px)}.contact-chip>span:first-child{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:rgba(143,179,194,.1);color:var(--champagne)}.contact-chip svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.contact-chip>span:last-child{display:flex;flex-direction:column;line-height:1.55}.contact-chip small{color:#748c98;font-size:9px}.contact-chip b{color:#dce7ea;font-size:13px}
.footer .top{margin-top:28px}.footer-badges{display:flex;align-items:center;margin-top:28px}.footer-badges img{display:block;width:74px;height:74px;border-radius:10px;background:#fff;padding:4px}.footer .copyright{min-height:78px;margin:0;border-top:1px solid #263a4b;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#647b86;font-size:11px}.footer .copyright a{color:#9eb2bc}
@media(max-width:900px){.footer-app{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr 1fr}.footer-identity{grid-column:1/-1}.footer-contact{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.footer-contact>strong{grid-column:1/-1}}
@media(max-width:620px){.footer-app{margin-bottom:24px;padding:28px 20px;border-radius:28px}.footer-main{grid-template-columns:1fr}.footer-identity,.footer-contact{grid-column:auto}.footer-courses nav{grid-template-columns:1fr 1fr}.footer-contact{grid-template-columns:1fr}.footer-contact>strong{grid-column:auto}.footer .copyright{min-height:110px;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}}

/* Final balance corrections requested in review. */
.story-image img{height:480px}
.footer{overflow:visible;padding-top:1px}
.footer-app{min-height:380px;margin-top:-190px;margin-bottom:90px;transform:none}
@media(max-width:768px){.story-image img{height:390px}.footer-app{min-height:0;margin-top:-160px;margin-bottom:72px}}
@media(max-width:620px){.footer-app{margin-top:-252px;margin-bottom:64px}}

/* Footer V3 (2026-09-11) - namespaced entirely under .pf3-footer per the
   owner's implementation instructions; no selector here reaches outside it.
   No extra font-family declared - inherits the site's own Vazirmatn. */
.pf3-footer {
  --pf-bg: #05111f;
  --pf-panel: rgba(14, 30, 49, .78);
  --pf-white: #f4f7fb;
  --pf-text: #b6c4d3;
  --pf-muted: #8090a2;
  --pf-gold: #d7b86f;
  --pf-gold-2: #f2cf7f;
  --pf-ease: cubic-bezier(.2,.8,.2,1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  direction: rtl;
  color: var(--pf-white);
  background:
    radial-gradient(900px 460px at 15% -8%, rgba(76, 118, 170, .12), transparent 62%),
    radial-gradient(820px 420px at 94% 0%, rgba(47, 105, 167, .12), transparent 64%),
    linear-gradient(180deg, #071422 0%, #05111f 42%, #061421 100%);
  padding: 66px 28px 30px;
}
.pf3-footer, .pf3-footer *, .pf3-footer *::before, .pf3-footer *::after { box-sizing: border-box; }
.pf3-footer a { color: inherit; }
.pf3-footer__ambient, .pf3-footer__ambient::before, .pf3-footer__ambient::after { position: absolute; pointer-events: none; z-index: -1; }
.pf3-footer__ambient { inset: 0; overflow: hidden; }
.pf3-footer__ambient::before { content: ""; width: 430px; height: 430px; right: -210px; top: -105px; border-radius: 50%; border: 1px solid rgba(104, 159, 219, .07); box-shadow: 0 0 0 70px rgba(75, 133, 196, .025), 0 0 0 140px rgba(75, 133, 196, .018); }
.pf3-footer__ambient::after { content: ""; width: 520px; height: 310px; left: -135px; bottom: -130px; border-radius: 50% 45% 42% 52%; background: radial-gradient(circle at 55% 30%, rgba(78, 131, 195, .08), transparent 65%); border-top: 1px solid rgba(124, 171, 220, .05); transform: rotate(8deg); }
.pf3-footer__shell { width: min(var(--max, 1280px), 100%); margin: 0 auto; position: relative; z-index: 1; }
.pf3-footer__main { display: grid; grid-template-columns: minmax(240px, 1.25fr) minmax(175px, .82fr) minmax(175px, .82fr) minmax(280px, 1.32fr); gap: 0; align-items: stretch; }
.pf3-footer__col { position: relative; min-width: 0; padding: 0 22px; }
.pf3-footer__col:first-child { padding-right: 0; }
.pf3-footer__col:last-child { padding-left: 0; }
.pf3-footer__col + .pf3-footer__col::before { content: ""; position: absolute; top: 58px; bottom: 26px; right: 0; width: 1px; background: linear-gradient(180deg, transparent 0%, rgba(148, 173, 203, .12) 10%, rgba(148, 173, 203, .14) 72%, transparent 100%); }
.pf3-footer__title { margin: 0; font-size: clamp(18px, 1.3vw, 22px); line-height: 1.35; font-weight: 800; letter-spacing: -.02em; color: var(--pf-white); }
.pf3-footer__title-line { width: 34px; height: 2px; margin: 10px 0 22px; border-radius: 999px; background: linear-gradient(90deg, var(--pf-gold-2), var(--pf-gold)); }
.pf3-footer__brand-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.pf3-footer__brand-copy { min-width: 0; flex: 1; }
.pf3-footer__brand-name { margin: 0 0 6px; font-size: clamp(21px, 1.5vw, 28px); line-height: 1.25; font-weight: 850; color: #fff; letter-spacing: -.03em; }
.pf3-footer__brand-person { margin: 0; color: var(--pf-text); font-size: 14px; line-height: 1.6; }
.pf3-footer__logo { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(189, 218, 247, .11); background: linear-gradient(180deg, rgba(25, 47, 73, .95), rgba(7, 20, 34, .97)); }
.pf3-footer__logo img { display: block; max-width: 74%; max-height: 74%; object-fit: contain; }
.pf3-footer__about { max-width: 420px; color: var(--pf-text); font-size: clamp(13px, 1vw, 15px); line-height: 1.95; margin: 0; }
.pf3-footer__back { margin-top: 26px; }
.pf3-footer__back-btn { appearance: none; border: 1px solid rgba(236, 203, 125, .55); outline: none; color: var(--pf-white); background: rgba(15, 34, 55, .55); min-width: 220px; min-height: 56px; padding: 0 22px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: border-color .2s var(--pf-ease), background .2s var(--pf-ease); }
.pf3-footer__back-btn:hover { border-color: var(--pf-gold-2); background: rgba(15, 34, 55, .8); }
.pf3-footer__back-btn i { display: inline-flex; width: 18px; height: 18px; }
.pf3-footer__back-btn svg, .pf3-footer__back-btn .icon { width: 18px; height: 18px; }
.pf3-footer__list { list-style: none; padding: 0; margin: 0; }
.pf3-footer__list li + li { margin-top: 14px; }
.pf3-footer__list a { text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--pf-text); font-size: clamp(13.5px, 1vw, 15px); line-height: 1.7; transition: color .25s var(--pf-ease), transform .25s var(--pf-ease); }
.pf3-footer__list a::after { content: "‹"; color: #95a5b6; font-size: 20px; line-height: 1; transform: translateY(-1px); transition: color .25s var(--pf-ease), transform .25s var(--pf-ease); }
.pf3-footer__list a:hover { color: var(--pf-white); transform: translateX(-4px); }
.pf3-footer__list a:hover::after { color: var(--pf-gold); transform: translate(-4px, -1px); }
.pf3-footer__contact-card { min-height: 82px; padding: 12px 14px 12px 18px; border-radius: 18px; border: 1px solid rgba(151, 179, 210, .15); background: rgba(17, 35, 57, .55); display: flex; align-items: center; gap: 16px; }
.pf3-footer__contact-card + .pf3-footer__contact-card { margin-top: 14px; }
.pf3-footer__contact-card:hover { border-color: rgba(214, 184, 111, .32); }
.pf3-footer__contact-icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--pf-gold-2); border: 1px solid rgba(183, 208, 236, .08); background: rgba(32, 54, 78, .7); }
.pf3-footer__contact-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.pf3-footer__contact-body { min-width: 0; flex: 1; }
.pf3-footer__contact-label { display: block; color: var(--pf-muted); font-size: 12px; line-height: 1.6; margin-bottom: 3px; }
.pf3-footer__contact-value { display: block; color: #fff; text-decoration: none; font-size: clamp(14px, 1vw, 16px); line-height: 1.5; font-weight: 800; direction: ltr; text-align: right; letter-spacing: .01em; white-space: nowrap; }
.pf3-footer__contact-value--rtl { direction: rtl; }
.pf3-footer__bottom { position: relative; margin-top: 40px; }
.pf3-footer__bottom-bar { min-height: 90px; border: 1px solid rgba(142, 168, 198, .14); border-radius: 18px; background: rgba(12, 27, 45, .55); display: grid; grid-template-columns: 1.15fr .72fr 1fr 1.65fr; align-items: center; overflow: hidden; }
.pf3-footer__bottom-item { min-width: 0; padding: 14px 22px; color: var(--pf-text); font-size: 13px; line-height: 1.75; text-align: center; }
.pf3-footer__bottom-item + .pf3-footer__bottom-item { border-right: 1px solid rgba(145, 171, 199, .14); }
.pf3-footer__bottom-item:first-child { text-align: left; }
.pf3-footer__bottom-item:last-child { text-align: right; }
.pf3-footer__bottom-item a { text-decoration: none; transition: color .22s var(--pf-ease); }
.pf3-footer__bottom-item a:hover { color: var(--pf-gold); }
.pf3-footer__heart { color: #ff4868; }

@media (max-width: 1300px) {
  .pf3-footer__main { grid-template-columns: 1.18fr .78fr .78fr 1.2fr; }
  .pf3-footer__col { padding: 0 16px; }
  .pf3-footer__bottom-item { padding-inline: 16px; font-size: 12px; }
}
@media (max-width: 1050px) {
  .pf3-footer { padding-top: 48px; }
  .pf3-footer__main { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .pf3-footer__col { padding: 0 20px !important; }
  .pf3-footer__col:nth-child(odd) { padding-right: 0 !important; }
  .pf3-footer__col:nth-child(even) { padding-left: 0 !important; }
  .pf3-footer__col + .pf3-footer__col::before { display: none; }
  .pf3-footer__col:nth-child(2)::after, .pf3-footer__col:nth-child(4)::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: rgba(148, 173, 203, .12); }
  .pf3-footer__about { max-width: none; }
  .pf3-footer__bottom-bar { grid-template-columns: 1fr 1fr; }
  .pf3-footer__bottom-item:nth-child(3) { border-right: 0; border-top: 1px solid rgba(145, 171, 199, .12); }
  .pf3-footer__bottom-item:nth-child(4) { border-top: 1px solid rgba(145, 171, 199, .12); }
}
@media (max-width: 720px) {
  .pf3-footer { padding: 38px 16px 40px; }
  .pf3-footer__main { grid-template-columns: 1fr; row-gap: 30px; }
  .pf3-footer__col { padding: 0 !important; }
  .pf3-footer__col:nth-child(2)::after, .pf3-footer__col:nth-child(4)::after { display: none; }
  .pf3-footer__col + .pf3-footer__col { padding-top: 24px !important; border-top: 1px solid rgba(145, 171, 199, .11); }
  .pf3-footer__brand-top { align-items: center; }
  .pf3-footer__about { font-size: 14px; line-height: 1.9; }
  .pf3-footer__title { font-size: 18px; }
  .pf3-footer__title-line { margin-bottom: 18px; }
  .pf3-footer__list li + li { margin-top: 8px; }
  .pf3-footer__list a { font-size: 14px; padding: 6px 0; }
  .pf3-footer__back-btn { width: 100%; min-width: 0; min-height: 52px; border-radius: 14px; font-size: 14px; }
  .pf3-footer__contact-value { font-size: 15px; }
  .pf3-footer__bottom { margin-top: 30px; }
  .pf3-footer__bottom-bar { grid-template-columns: 1fr; border-radius: 16px; }
  .pf3-footer__bottom-item { text-align: center !important; padding: 12px 16px; }
  .pf3-footer__bottom-item + .pf3-footer__bottom-item { border-right: 0; border-top: 1px solid rgba(145, 171, 199, .11); }
}
@media (prefers-reduced-motion: reduce) {
  .pf3-footer *, .pf3-footer *::before, .pf3-footer *::after { transition: none !important; animation: none !important; }
}

/* ================================================================
   Header V1 redesign (2026-09-11) - reskins the EXISTING real header
   classes (.header/.nav/.logo/.desktop-menu/.nav-has-dropdown/
   .nav-dropdown/.icon-btn/.nav-cta) with the new dark-navy + gold
   visual language from the supplied reference package, using the
   site's OWN theme-aware CSS variables (--ink/--navy/--champagne/
   --surface/--line/--text/--muted) so light/dark mode keeps working
   automatically via the existing [data-theme] toggle - no separate
   light/dark header classes needed, no JS changes, no risk to the
   real search/login/drawer functionality (all untouched, same IDs
   and classes). ================================================ */
/* Header V1 redesign - MISSING BASE RULES fix (2026-09-11 hotfix)
   The homepage's own front-page.php gained a real magazine dropdown
   (.nav-has-dropdown/.nav-dropdown/.nav-dropdown-sub) this session, but
   this file (homepage.css - the ONLY stylesheet the homepage loads) only
   ever received the hover/polish additions below, never the foundational
   positioning/hide rules that blog.css already has. Result: on the live
   homepage the dropdown rendered permanently visible/unstyled, overlapping
   the hero. Copied 1:1 from blog.css so both templates share identical
   dropdown behavior. */
.nav-has-dropdown{position:relative;display:flex;align-items:center}
.nav-dropdown{position:absolute;top:100%;right:-14px;z-index:20;min-width:160px;padding:8px;margin-top:4px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--lift);opacity:0;visibility:hidden;transform:translateY(-6px);transition:.2s}
.nav-has-dropdown:hover>.nav-dropdown,.nav-has-dropdown:focus-within>.nav-dropdown{opacity:1;visibility:visible;transform:none}
.nav-dropdown a{display:block!important;padding:9px 12px!important;border-radius:9px;color:var(--muted);font-size:12px;font-weight:600}
.nav-dropdown a:after{display:none}
.nav-dropdown a:hover{background:var(--mist);color:var(--text)}
.nav-dropdown .nav-sub-has-dropdown{position:relative}
.nav-dropdown .nav-sub-has-dropdown>a{display:flex!important;align-items:center;justify-content:space-between;gap:8px}
.nav-sub-caret{font-size:10px;color:var(--muted)}
.nav-dropdown-sub{position:absolute;top:0;right:100%;z-index:21;min-width:170px;margin-right:6px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--lift);opacity:0;visibility:hidden;transform:translateX(6px);transition:.2s}
.nav-sub-has-dropdown:hover .nav-dropdown-sub,.nav-sub-has-dropdown:focus-within .nav-dropdown-sub{opacity:1;visibility:visible;transform:none}

.header{backdrop-filter:blur(16px)}
.header.scrolled{background:linear-gradient(180deg,rgba(10,23,37,.94),rgba(10,23,37,.88))}
[data-theme="dark"] .header.scrolled{background:linear-gradient(180deg,rgba(6,16,28,.95),rgba(5,13,23,.9))}
.header.scrolled .desktop-menu,.header.scrolled .logo strong{color:#edf3f5}
.header.scrolled .logo small{color:#9fb2bc}
.header.scrolled .icon-btn{background:rgba(255,255,255,.07);border-color:rgba(237,243,245,.16);color:#edf3f5}
.header.scrolled .icon-btn:hover{background:rgba(255,255,255,.12);border-color:var(--champagne)}
.header.scrolled .nav-cta{background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.05));box-shadow:none}
.header.scrolled .desktop-menu a:after{background:linear-gradient(90deg,#f2cf7f,var(--champagne))}

.logo-mark{border-radius:14px}

.desktop-menu{align-items:center;gap:6px}
.desktop-menu a{padding:10px 16px;border-radius:12px;transition:color .2s,background .2s}
.desktop-menu a:hover{background:var(--mist);color:var(--text)}
.desktop-menu a:after{right:16px;left:16px;width:auto;transform:scaleX(0);transform-origin:center;background:linear-gradient(90deg,#f2cf7f,var(--champagne))}
.desktop-menu a:hover:after{transform:scaleX(1);width:auto}
.nav-has-dropdown>a{padding:10px 16px;border-radius:12px}
.nav-has-dropdown:hover>a{background:var(--mist);color:var(--text)}

.nav-dropdown{min-width:220px;padding:10px;border-radius:18px}
.nav-dropdown a{padding:12px 14px!important;border-radius:11px;font-size:13px!important}
.nav-dropdown-sub{min-width:230px;padding:10px;border-radius:18px}

.icon-btn{border-radius:15px;transition:transform .2s,border-color .2s,background .2s}
.icon-btn:hover{transform:translateY(-2px)}
[data-theme="dark"] .icon-btn.theme{border-color:var(--champagne);box-shadow:inset 0 0 0 1px rgba(199,176,122,.25),0 0 0 3px rgba(199,176,122,.12)}

.nav-cta{border-radius:14px;padding-inline:22px;font-size:13px;gap:10px;transition:transform .2s,box-shadow .2s}
.nav-cta:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(10,23,37,.22)}
.nav-cta i{display:inline-flex}
