/* Shared controls: content and product color never alter button geometry. */
:root{--control-height:48px;--control-radius:12px;--control-font:14px}
.primary-button,.project-button,.project-fanaptech-quality-control .project-button,.login-link{box-sizing:border-box;min-height:var(--control-height);height:var(--control-height);padding:0 20px;line-height:1.5;font-size:var(--control-font);font-weight:700;border-radius:var(--control-radius);flex-shrink:0;align-self:center}
.project-button{align-self:stretch;margin-top:24px;gap:10px}
.project-button i,.primary-button i{font-size:20px}
.project-card h3{min-height:3.1em;margin-bottom:12px}
.project-card>p{min-height:5.7em}
.project-purpose{min-height:64px}
.project-card .project-button{margin-top:18px}
.branded-partners{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.branded-partners>a{padding:20px 12px;gap:16px;align-items:center;text-align:center;justify-content:start}
.branded-partners .partner-brand{height:112px;padding:8px;width:100%;border-radius:0;background:white}
.partner-brand img{width:150px;height:96px;object-fit:contain;max-width:100%;transform:none}
.branded-partners strong{display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1.8;min-height:54px;margin:0;font-weight:700}
.project-dialog{width:min(880px,calc(100% - 32px));max-height:90dvh;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:24px}
.project-dialog .project-story{padding:0 32px 28px}
.story-toolbar{position:sticky;top:0;z-index:2;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.story-toolbar .dialog-close{position:static;flex-shrink:0;width:44px;height:44px}
.story-hero{display:flex;align-items:center;gap:24px;margin:24px -8px 20px;padding:24px;background:var(--project-soft);border-radius:18px;border-inline-start:4px solid var(--project)}
.story-hero .project-logo{width:96px;height:96px;background:white}
.story-hero h2{margin:8px 0 0;font-size:32px;line-height:1.5}
.project-dialog .story-tagline{margin:6px 0 0;font-size:13px}
.project-dialog .story-summary{font-size:15px;line-height:2;margin:18px 0}
.story-audience{display:flex;gap:12px;align-items:center;padding:14px 0 22px;border-bottom:1px solid var(--line);font-size:13px}
.story-audience i{font-size:26px;color:var(--project)}
.story-audience small{display:block;color:var(--muted);font-size:11px}
.story-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:26px 0}
.story-label{font-size:11px;font-weight:700;color:var(--muted)}
.project-story h3{font-size:19px;margin:8px 0 10px;color:var(--ink)}
.story-columns p{margin:0;font-size:13px;line-height:2}
.story-journey{border:1px solid var(--line);border-radius:16px;padding:20px}
.story-journey h3{display:flex;align-items:center;gap:8px;margin-top:0}
.story-journey h3 i{color:var(--project);font-size:24px}
.story-journey ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:20px 0 0;padding:0;counter-reset:step}
.story-journey li{counter-increment:step;min-width:0;border-inline-start:2px solid var(--project);padding-inline-start:14px}
.story-journey li:before{content:counter(step,persian);font-size:12px;color:var(--muted);display:block;margin-bottom:8px}
.story-journey strong{font-size:14px}.story-journey span{display:block;font-size:12px;color:var(--muted);margin-top:6px}
.story-success{display:flex;gap:12px;padding:22px 0;align-items:flex-start}.story-success>i{font-size:26px;color:var(--project)}.story-success strong{font-size:14px}.story-success p{margin:4px 0 0;font-size:13px}
footer.story-footer{display:flex;align-items:center;gap:24px;padding:20px 0 0;background:none;color:var(--ink);border-top:1px solid var(--line);text-align:start}
.story-footer p{font-size:11px;color:var(--muted);margin:0;flex:1}.story-footer .project-button{width:auto;min-width:220px;margin:0}
body:has(dialog[open]){overflow:hidden}
@media(max-width:1000px){.branded-partners{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.branded-partners{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.branded-partners>a{padding:16px 8px}.branded-partners strong{font-size:13px}.partner-brand img{height:86px}.project-dialog .project-story{padding:0 20px 20px}.story-hero{padding:18px;gap:14px;align-items:flex-start}.story-hero .project-logo{width:64px;height:64px;padding:8px}.story-hero h2{font-size:24px}.story-columns{grid-template-columns:1fr;gap:22px}.story-journey ol{grid-template-columns:1fr}.story-journey li{display:grid;grid-template-columns:20px 1fr;gap:2px 8px}.story-journey li:before{grid-row:1/3}.story-journey span{grid-column:2}.story-footer{flex-direction:column;align-items:stretch!important;gap:16px!important}.story-footer .project-button{width:100%}.project-card h3,.project-card>p{min-height:0}.project-purpose{min-height:0}}

/* Community band — bridge to the community layer */
.community-band{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:40px;align-items:center;margin:40px max(5vw,calc((100vw - 1380px)/2));padding:56px;border-radius:32px;color:#fff;position:relative;overflow:hidden;isolation:isolate;background-color:#0b6248}
.community-band::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:80px 80px,80px 80px,16px 16px,16px 16px}
.community-band::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(520px 260px at 90% 0%,rgba(215,239,90,.2),transparent 60%),radial-gradient(420px 260px at 0% 100%,rgba(255,106,19,.22),transparent 60%)}
.community-band .eyebrow{color:#d7ef5a}
.community-band h2{color:#fff}
.community-band p{color:rgba(255,255,255,.84)}
.community-band .text-link{color:#fff}
.community-band__cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.community-band__cards li{display:grid;gap:4px;padding:20px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);transition:transform .25s}
.community-band__cards li:hover{transform:translateY(-4px) rotate(-.5deg)}
.community-band__cards li:nth-child(2){background:#d7ef5a;color:#1d2a05;transform:rotate(1.5deg)}
.community-band__cards li:nth-child(3){background:#ff6a13;transform:rotate(-1deg)}
.community-band__cards i{font-size:28px}
.community-band__cards strong{font-size:17px}
.community-band__cards span{font-size:13.5px;opacity:.85}
@media (max-width:900px){.community-band{grid-template-columns:1fr;padding:32px 22px;border-radius:24px;margin:24px 16px}.community-band__cards li:nth-child(n){transform:none}}
@media (max-width:480px){.community-band__cards{grid-template-columns:1fr}}
.project-status{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;margin:-8px 0 12px;padding:3px 10px 3px 12px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.7;background:#ffffffd9;color:var(--ink);border:1px solid #18362e1f}.project-status__dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex-shrink:0}.project-status--live .project-status__dot{background:#16a05d;box-shadow:0 0 0 3px #16a05d33}.project-status--building .project-status__dot{background:#d07a00;box-shadow:0 0 0 3px #d07a0033}.project-status--design .project-status__dot{background:#5a6f8f;box-shadow:0 0 0 3px #5a6f8f33}
