/* Shared focused product-page layer. It extends the main RAYASOFT system. */
.project-page { --product: var(--brand); --product-deep: var(--brand-700); --product-wash: var(--brand-050); overflow-x: clip; }
.project-page--mizan { --product: #287b80; --product-deep: #1b5d62; --product-wash: #e7f3f3; }
.project-page--eyaar { --product: #a7711b; --product-deep: #7d4f0f; --product-wash: #fbf2e3; }
.project-page--tajer { --product: #197458; --product-deep: #10573f; --product-wash: #e5f4ed; }
.project-hero { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 9vw, 8.5rem) clamp(4rem, 7vw, 7rem); background: linear-gradient(130deg, #fff 28%, var(--product-wash) 190%); }
.project-hero__grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.project-hero__copy { position: relative; z-index: 1; max-width: 630px; }
.project-kicker { display: flex; align-items: center; gap: 9px; color: var(--product-deep); font-size: .88rem; font-weight: 700; }
.project-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--product); box-shadow: 0 0 0 5px color-mix(in srgb, var(--product) 14%, transparent); }
.project-hero h1 { margin-top: 18px; font-family: var(--font-disp); font-size: clamp(2.55rem, 5vw, 4.55rem); line-height: 1.19; }
.project-hero h1 span { display: block; margin-bottom: 14px; color: var(--product-deep); font-family: var(--font-sans); font-size: clamp(1rem, 1.5vw, 1.22rem); font-weight: 700; }
.project-hero__lead { max-width: 56ch; margin-top: 22px; color: var(--ink-2); font-size: 1.07rem; line-height: 1.9; }
.project-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.project-hero__actions .btn-primary { background: var(--product-deep); }
.project-hero__actions .btn-primary:hover { background: var(--product); }
.project-hero__visual { position: relative; z-index: 1; margin: 0; }
.project-hero__visual-frame { position: relative; padding: clamp(12px, 2vw, 22px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 28px 72px -42px rgba(10,37,89,.45); }
.project-hero__visual-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 10px; background: var(--product-wash); }
.project-hero__visual figcaption { padding: 12px 4px 0; color: var(--ink-2); font-size: .84rem; }
.project-overview { background: var(--bg-alt); }
.project-overview__grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(32px,7vw,88px); align-items: start; }
.project-overview__copy { color: var(--ink-2); font-size: 1.06rem; line-height: 1.9; }
.project-overview__copy strong { color: var(--ink); }
.project-features { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: var(--radius); overflow: hidden; }
.project-feature { min-height: 154px; padding: 22px; background: #fff; }
.project-feature__number { display: block; color: var(--product-deep); font: 700 1.05rem/1 var(--font-mono); }
.project-feature h3 { margin-top: 20px; font-size: 1rem; }
.project-feature p { margin-top: 7px; color: var(--ink-2); font-size: .88rem; line-height: 1.65; }
.gallery-section { position: relative; background: #fff; }
.gallery-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 40px; }
.project-cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.project-cta::after { content: ""; position: absolute; width: 380px; height: 380px; top: -190px; left: -100px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.project-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.project-cta .section-kicker { color: #ffb27f; }
.project-cta .section-kicker::before { background: var(--brand); }
.project-cta .section-title { max-width: 18ch; }
.project-cta p { max-width: 60ch; margin-top: 12px; color: rgba(255,255,255,.72); }
.project-cta .btn { flex: 0 0 auto; background: #fff; color: var(--navy); }
.project-cta .btn:hover { background: var(--brand-050); }

/* Visual-only local screenshot gallery. */
.gallery-card { display: block; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--product-wash); cursor: zoom-in; box-shadow: 0 14px 34px -28px rgba(10,37,89,.38); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.gallery-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--product) 45%, var(--line)); box-shadow: 0 22px 42px -26px rgba(10,37,89,.42); }
.gallery-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--product) 44%, #fff); outline-offset: 3px; }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; background: #f7f9fc; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.image-dialog { position: fixed; inset: 0; width: 100dvw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; color: #fff; border: 0; background: #061126; }
.image-dialog::backdrop { background: rgba(3, 11, 28, .9); }
.image-dialog__shell { position: relative; width: 100%; height: 100%; background: #061126; }
.image-dialog__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 84px 92px 72px; touch-action: none; }
.image-dialog__stage.is-zoomed { cursor: grab; }.image-dialog__stage.is-zoomed:active { cursor: grabbing; }
.image-dialog__image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; transform-origin: center center; transition: transform .16s ease-out; will-change: transform; }
.image-dialog__stage.is-zoomed .image-dialog__image { transition: none; }
.image-dialog__toolbar { position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); display: flex; gap: 8px; }
.image-dialog__tool, .image-dialog__nav { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(7,19,43,.84); box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.image-dialog__tool svg, .image-dialog__nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.image-dialog__tool:hover, .image-dialog__nav:hover { background: var(--brand); border-color: var(--brand); }
.image-dialog__tool:focus-visible, .image-dialog__nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.image-dialog__nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); }
.image-dialog__nav--previous { right: max(18px, env(safe-area-inset-right)); }.image-dialog__nav--next { left: max(18px, env(safe-area-inset-left)); }
.image-dialog__count { position: absolute; z-index: 3; right: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(50%); min-width: 58px; padding: 6px 11px; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(4,12,28,.68); font: 700 .78rem/1 var(--font-mono); text-align: center; }
@media (max-width: 1024px) { .project-features { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 860px) { .project-hero__grid, .project-overview__grid { grid-template-columns: 1fr; } .project-hero__visual { max-width: 640px; } .project-features { grid-template-columns: repeat(2, minmax(0,1fr)); } .project-cta__inner { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) { .project-hero { padding-block: 48px 56px; } .project-hero h1 { font-size: clamp(2.38rem, 11vw, 3.25rem); } .project-hero__actions .btn { width: 100%; } .project-features, .screenshot-gallery { grid-template-columns: 1fr; } .project-feature { min-height: 130px; } .image-dialog__stage { padding: 78px 14px 94px; } .image-dialog__toolbar { top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); gap: 6px; } .image-dialog__tool, .image-dialog__nav { width: 48px; height: 48px; }.image-dialog__nav { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; }.image-dialog__nav--previous { right: max(16px, env(safe-area-inset-right)); }.image-dialog__nav--next { right: max(76px, calc(env(safe-area-inset-right) + 60px)); left: auto; } .image-dialog__count { bottom: max(31px, calc(env(safe-area-inset-bottom) + 15px)); } }
.gallery-caption { display: grid; gap: 5px; padding: 16px 18px 18px; text-align: start; background: #fff; }
.gallery-caption__title { color: var(--ink); font-size: 1rem; font-weight: 700; }
.gallery-caption__description { color: var(--ink-2); font-size: .9rem; line-height: 1.7; }
.gallery-source-note { margin-top: 22px; padding-inline-start: 14px; border-inline-start: 2px solid var(--brand); color: var(--ink-2); line-height: 1.8; }
.image-dialog__shell { display: grid; grid-template-rows: minmax(0,1fr) auto; }
.image-dialog__stage { position: relative; grid-row: 1; min-height: 0; padding-bottom: 20px; }
.image-dialog__info { grid-row: 2; padding: 14px 100px 64px; text-align: center; background: #061126; color: #e0e6ef; }
.image-dialog__info strong { color: #fff; font-size: 1rem; }
.image-dialog__count { direction: ltr; }
.image-dialog__info p { margin-top: 4px; font-size: .86rem; line-height: 1.6; }
@media (max-width: 600px) {
  .image-dialog__info { padding: 10px 18px 82px; }
  .image-dialog__info p { font-size: .8rem; }
  .image-dialog__stage { padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card:hover { transform: none; }
}
