/* Wable — Persian (RTL) overrides. Loaded after styles.css on /fa/ pages.
   The mirrored block below is generated; hand-written fixes live at the end. */
html[lang="fa"] { --font-fa: "Outfit", "Vazirmatn", "Noto Kufi Arabic", system-ui, sans-serif; /* Vazirmatn is loaded for the Persian digits only */ }
html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] select,
html[lang="fa"] textarea { font-family: var(--font-fa); }
/* tight tracking and forced case break Persian letter joining */
html[lang="fa"] *, html[lang="fa"] *::before, html[lang="fa"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4 { line-height: 1.35; font-weight: 700; }
html[lang="fa"] body { line-height: 1.85; }
html[lang="fa"] p, html[lang="fa"] li { line-height: 1.9; }

/* ═══ auto-mirrored physical properties (generated) ═══ */
html[dir="rtl"] .nav-panel__links a:hover { transform: translateX(-0.5rem); }
html[dir="rtl"] .canvas-card:nth-child(1) { left: auto; right: 5%; }
html[dir="rtl"] .canvas-card:nth-child(2) { left: auto; right: 18%; }
html[dir="rtl"] .canvas-card:nth-child(3) { left: 8%; right: auto; }
html[dir="rtl"] .canvas-card:nth-child(4) { left: 22%; right: auto; }
html[dir="rtl"] .canvas-card:nth-child(5) { left: auto; right: 8%; }
html[dir="rtl"] .canvas-card:nth-child(6) { left: 12%; right: auto; }
html[dir="rtl"] .canvas-card:nth-child(7) { left: auto; right: 35%; }
html[dir="rtl"] .canvas-card:nth-child(8) { left: 35%; right: auto; }
html[dir="rtl"] .case-card__cta { left: clamp(2rem, 5vw, 3.5rem); right: auto; }
html[dir="rtl"] .case-card__arc { border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
html[dir="rtl"] .case-card__arc img { border-radius: 0.5rem 0.5rem 0 0; }
html[dir="rtl"] .skip-link { left: auto; right: 1rem; }
html[dir="rtl"] .case-card__arc img { border-radius: 0.5rem 0.5rem 0 0; }
html[dir="rtl"] .site-nav__inner.shell { padding: 0.45rem 1.25rem 0.45rem 0.5rem; }
html[dir="rtl"] .site-nav__logo-link { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .marquee__track > * { margin-left: 2rem; margin-right: 0; }
html[dir="rtl"] .acc summary:hover .acc__title { transform: translateX(-0.5rem); }
html[dir="rtl"] .acc__body { padding: 0 3.5rem 2rem 0; }
html[dir="rtl"] .page-hero::after { left: 0; right: 0; }
@media (max-width: 600px) {
html[dir="rtl"] .acc__body { padding-left: 0; padding-right: 0; }
}
html[dir="rtl"] .hero-arch__inner { border-radius: 999px 999px 1.5rem 1.5rem; }
html[dir="rtl"] .hero-rosette--l { left: auto; right: -9%; }
html[dir="rtl"] .hero-rosette--r { left: -9%; right: auto; }
html[dir="rtl"] .panel-star--tl { left: auto; right: 4px; }
html[dir="rtl"] .panel-star--tr { left: 4px; right: auto; }
html[dir="rtl"] .panel-star--bl { left: auto; right: 4px; }
html[dir="rtl"] .panel-star--br { left: 4px; right: auto; }
html[dir="rtl"] .stats > div::after { left: -18px; right: auto; }
html[dir="rtl"] .wwd-card { border-radius: 999px 999px 1.5rem 1.5rem; }
html[dir="rtl"] .wwd-card::after { border-radius: 999px 999px 1rem 1rem; }
html[dir="rtl"] .case-card__arc { left: auto; right: auto; border-radius: 999px 999px 1rem 1rem; }
html[dir="rtl"] .case-card__cta { left: 1.35rem; right: auto; }
html[dir="rtl"] .why-tile::before { left: -90px; right: auto; }
html[dir="rtl"] .cases-stack .case-card__cta { left: 1rem; right: auto; }
html[dir="rtl"] .why-tile::before { left: 0; right: auto; }
html[dir="rtl"] .float-star--1 { left: auto; right: 17%; }
html[dir="rtl"] .float-star--2 { left: 19%; right: auto; }
html[dir="rtl"] .float-star--3 { left: auto; right: 24%; }
html[dir="rtl"] .float-star--4 { left: 25%; right: auto; }
html[dir="rtl"] .deco--a { left: auto; right: -4%; }
html[dir="rtl"] .deco--b { left: -5%; right: auto; }
html[dir="rtl"] .deco--c { left: auto; right: -4%; }
html[dir="rtl"] .deco--d { left: -6%; right: auto; }
html[dir="rtl"] .stats > div::after { left: -18px; right: auto; }
html[dir="rtl"] .cases-stack .case-card .case-card__arc { border-radius: 50% 50% 1rem 1rem / 34% 34% 1rem 1rem; }
html[dir="rtl"] .cases-stack .case-card__cta { left: 1.25rem; right: auto; }
html[dir="rtl"] .why-tile__sham { left: -80px; right: auto; }
html[dir="rtl"] .hero-rosette--l { left: auto; right: -5%; }
html[dir="rtl"] .hero-rosette--r { left: -5%; right: auto; }
html[dir="rtl"] .tile-cluster--arch { border-radius: 999px 999px 22px 22px; }
html[dir="rtl"] .stats > div::after { left: 0; right: auto; }
html[dir="rtl"] .why-tile__cluster { left: 1.4rem; right: auto; }
html[dir="rtl"] .journal-card__media { border-radius: 50% 50% 1rem 1rem / 20% 20% 1rem 1rem; }
html[dir="rtl"] .hero-arch__frame { left: auto; right: calc(-70 / 400 * 100%); }
html[dir="rtl"] .journal-card__media .journal-card__cat { left: auto; right: 1.1rem; }
html[dir="rtl"] .journal-card__meta { left: 1.1rem; right: auto; }
html[dir="rtl"] .hero-arch__inner { border-radius: 999px 999px 1.5rem 1.5rem; }
html[dir="rtl"] .lead-points li { padding-left: 0; padding-right: 2.4rem; }
html[dir="rtl"] .lead-points li::before { left: auto; right: 0; }
html[dir="rtl"] .consult-steps li { padding: 0.4rem 0.45rem 0.4rem 1rem; }
html[dir="rtl"] .project-back:hover { transform: translateX(4px); }
html[dir="rtl"] .project-results li { padding-left: 0; padding-right: 2rem; }
html[dir="rtl"] .project-results li::before { left: auto; right: 0; }
html[dir="rtl"] .start-option { text-align: right; }
html[dir="rtl"] .start-option:hover { transform: translateX(-4px); }
html[dir="rtl"] .section-label::before,
html[dir="rtl"] .page-hero__label::before { margin-left: 0.55rem; margin-right: 0; }
html[dir="rtl"] .proj-cover__frame { border-radius: 50% 50% 1.5rem 1.5rem / 26% 26% 1.5rem 1.5rem; }
@media (max-width: 900px) {
html[dir="rtl"] .proj-cover__frame { border-radius: 50% 50% 1.25rem 1.25rem / 18% 18% 1.25rem 1.25rem; }
}
html[dir="rtl"] .proc li { padding-left: 1rem; padding-right: 0; }
html[dir="rtl"] .proc li::after { left: 0; right: 52px; }
html[dir="rtl"] .nav-panel__links a:hover,
html[dir="rtl"] .nav-panel__links a:focus-visible { padding-left: 0; padding-right: 0.9rem; }
html[dir="rtl"] .nav-panel__links a[aria-current="page"] b::after { margin-left: 0; margin-right: 0.45em; }
html[dir="rtl"] .person__photo { border-radius: 50% 50% 1.25rem 1.25rem / 28% 28% 1.25rem 1.25rem; }
html[dir="rtl"] .crumbs li + li::before { margin-left: 0.4rem; margin-right: 0; }
html[dir="rtl"] .post-toc ol { border-left: none; border-right: 2px solid var(--blue-100); }
html[dir="rtl"] .post-toc a { margin-left: 0; margin-right: -2px; border-left: none; border-right: 2px solid transparent; }
html[dir="rtl"] .post-toc a:hover,
html[dir="rtl"] .post-toc a.is-active { border-left-color: transparent; border-right-color: var(--blue); }
html[dir="rtl"] .post-summary li { padding-left: 0; padding-right: 1.5rem; }
html[dir="rtl"] .post-summary li::before { left: auto; right: 0; }
html[dir="rtl"] .post-section li { padding-left: 0; padding-right: 1.6rem; }
html[dir="rtl"] .post-section li::before { left: auto; right: 0; }
html[dir="rtl"] .team-strip { padding: 0.85rem 1rem 0.85rem 1.25rem; }
html[dir="rtl"] .team-strip__faces img { margin-left: 0; margin-right: -12px; }
html[dir="rtl"] .team-strip__faces img:first-child { margin-left: 0; margin-right: 0; }
html[dir="rtl"] .team-strip:hover .team-strip__go { transform: translateX(-4px); }
@media (max-width: 600px) {
html[dir="rtl"] .team-strip__go { margin-left: 0; margin-right: auto; }
}
html[dir="rtl"] .crew__photo { border-radius: 50% 50% 1rem 1rem / 28% 28% 1rem 1rem; }
html[dir="rtl"] .book-info__note { padding-left: 0; padding-right: 0.9rem; border-left: none; border-right: 3px solid var(--red); }
html[dir="rtl"] .book-price__amount b { margin-left: 0.15rem; margin-right: 0; }
html[dir="rtl"] .post-figure figcaption { padding-left: 0; padding-right: 0.9rem; border-left: none; border-right: 3px solid var(--red); }
html[dir="rtl"] .nav-panel__mark { border-radius: 999px 999px 22px 22px; }
html[dir="rtl"] .main-hero::after { left: 0; right: 0; }
@media (max-width: 640px) {
html[dir="rtl"] .team-grid .person { text-align: right; }
html[dir="rtl"] .team-grid .person__body { text-align: right; }
}
@media (max-width: 700px) {
html[dir="rtl"] .cases-stack .case-tags { padding-left: 3.2rem; padding-right: 0; }
html[dir="rtl"] .work-grid .case-card { padding: 0.8rem 0.8rem 0.8rem 1rem; }
html[dir="rtl"] .work-grid .cases-stack .case-card .case-card__arc { border-radius: 999px 999px 0.7rem 0.7rem; }
}

/* ═══ hand-written RTL fixes ═══ */
/* horizontal scrollers and marquee keep a left-to-right scroll model */
html[dir="rtl"] .work-row__list, html[dir="rtl"] .marquee, html[dir="rtl"] .marquee__track { direction: ltr; }
html[dir="rtl"] .work-row__list > *, html[dir="rtl"] .marquee__track > * { direction: rtl; }
html[dir="rtl"] .cal-grid, html[dir="rtl"] .mini-cal__grid { direction: rtl; }
/* Latin snippets inside Persian text */
html[dir="rtl"] input[type="email"], html[dir="rtl"] .nav-panel__mail, html[dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: plaintext; }
html[dir="rtl"] input[type="email"] { text-align: right; }
/* Persian numerals in generated counters */
html[lang="fa"] .case-card__title::before, html[lang="fa"] .cases-stack .case-card__title::before { content: "۰" counter(c, persian); }
html[lang="fa"] .consult-steps li::before { content: counter(s, persian); }

/* the preloader painting is split into tiles left-to-right: never mirror it */
html[dir="rtl"] .preloader, html[dir="rtl"] .pre-grid { direction: ltr; }

/* ═══ Persian type scale: Noto Kufi Arabic runs wide, so everything is set smaller than the Latin site ═══ */
html[lang="fa"] { font-size: 93.75%; }
html[lang="fa"] :is(h1, h2, h3, h4, .section-heading, .page-hero__title, .about-hero__title, .sf-arch__title, .post-title, .why-you__text, .mega-cta h2) { max-width: none !important; text-wrap: initial; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4 { font-weight: 700; line-height: 1.4; }
html[lang="fa"] .section-heading { font-size: clamp(1.4rem, 2.9vw, 2.05rem); }
html[lang="fa"] .intro-copy .section-heading, html[lang="fa"] .what-we-do .section-heading { font-size: clamp(1.45rem, 3vw, 2.15rem); }
html[lang="fa"] .page-hero__title, html[lang="fa"] .work-head .page-hero__title, html[lang="fa"] .proj-hero .page-hero__title { font-size: clamp(1.8rem, 4.4vw, 3.1rem); line-height: 1.35; }
html[lang="fa"] .about-hero__title { font-size: clamp(1.8rem, 4.3vw, 3rem); line-height: 1.4; }
html[lang="fa"] .sf-arch__title { font-size: clamp(1.45rem, 3.8vw, 2.7rem); line-height: 1.45; margin-bottom: 1.5rem; }
html[lang="fa"] .post-title { font-size: clamp(1.6rem, 4.2vw, 2.7rem); line-height: 1.45; }
html[lang="fa"] .wwd-card h3, html[lang="fa"] .svc-card h3, html[lang="fa"] .person__body h3, html[lang="fa"] .why-tile h3, html[lang="fa"] .case-card__title { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
html[lang="fa"] .main-hero__sub { font-size: clamp(0.85rem, 1.6vw, 1rem); line-height: 1.9; }
html[lang="fa"] .project-lead, html[lang="fa"] .about-hero__lead, html[lang="fa"] .work-head__lead { font-size: clamp(0.9rem, 1.6vw, 1.02rem); line-height: 1.95; }
html[lang="fa"] .nav-panel__links a { font-size: clamp(1.2rem, min(3.2vw, 4.8vh), 1.9rem); }
html[lang="fa"] .nav-panel__links a em { font-size: clamp(0.75rem, 1.5vh, 0.875rem); }
html[lang="fa"] .nav-cta { font-size: 0.8125rem; }
html[lang="fa"] .btn-primary, html[lang="fa"] .btn-outline, html[lang="fa"] .btn-ghost, html[lang="fa"] .form-submit { font-size: 0.875rem; }
html[lang="fa"] .hero-eyebrow, html[lang="fa"] .section-label, html[lang="fa"] .page-hero__label { font-size: 0.78rem; }
html[lang="fa"] .start-option b { font-size: 1rem; }
html[lang="fa"] .work-row__head h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
html[lang="fa"] .marquee__track span { font-size: clamp(1.2rem, 3vw, 2rem); }

/* lead paragraphs and sub-headings use the free line width instead of wrapping early */
html[lang="fa"] :is(.section-sub, .panel-frame__text, .project-lead, .about-hero__lead, .work-head__lead, .book-head__lead, .svc-hero__lead, .page-hero__lead, .post-lead, .journal-head__lead, .intro-copy p, .why-copy p, .lead-copy p, .work-row__head p) { max-width: min(100%, 62rem) !important; }
html[lang="fa"] .work-head__lead { flex: 1 1 22rem; }

/* phone numbers are typed left-to-right but sit on the right edge in Persian forms */
html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
html[dir="rtl"] input[type="tel"]::placeholder { text-align: right; }
html[lang="fa"] .book-next li::before { content: counter(bn, persian); }

/* ═══ Persian menu panel: roomy line-height so title and description never touch, and no needless scrolling ═══ */
html[lang="fa"] .nav-panel__links a { font-size: clamp(1.2rem, min(3.2vw, 4.4vh), 1.9rem) !important; padding-block: clamp(0.45rem, 1.3vh, 0.85rem) !important; }
html[lang="fa"] .nav-panel__links a b { font-size: 1em; line-height: 1.5 !important; font-weight: 700; }
html[lang="fa"] .nav-panel__links a em { font-size: clamp(0.78rem, 1.6vh, 0.9rem) !important; line-height: 1.7 !important; margin-top: 0.15rem !important; }
html[lang="fa"] .nav-panel { padding-top: clamp(5rem, 11vh, 6.5rem); }

/* ═══ Persian forms: readable labels (the Latin site uses tiny tracked caps) ═══ */
html[lang="fa"] .lead-field label, html[lang="fa"] .lead-field legend, html[lang="fa"] .form-field label { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.35rem; }
html[lang="fa"] .chip span { font-size: 0.8125rem; }
html[lang="fa"] .lead-field input, html[lang="fa"] .lead-field select, html[lang="fa"] .lead-field textarea, html[lang="fa"] .form-field input, html[lang="fa"] .form-field select, html[lang="fa"] .form-field textarea { font-size: 0.9rem !important; }
html[lang="fa"] .lead-submit, html[lang="fa"] .form-submit { font-size: 0.9375rem; }
html[lang="fa"] .lead-note { font-size: 0.8125rem; line-height: 1.8; }
html[lang="fa"] .start-option__tag { font-size: 0.75rem; }
html[lang="fa"] .start-option b { font-size: 1rem; }
html[lang="fa"] .start-option > span:last-child { font-size: 0.8125rem; line-height: 1.7; }

/* ==========================================================================
   v21 — project (case study) page: hero + fact strip, framed showcase, editorial story, gallery, next-project card
   Logical properties only, so the same rules serve English and Persian.
   ========================================================================== */
.proj-hero { position: relative; padding: clamp(6.25rem, 10vw, 7.75rem) 0 0; }
.proj-hero__main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 5.5rem); max-width: none; }
.proj-hero__head .project-back { margin-bottom: 0.9rem; }
.proj-hero .page-hero__title { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: 0.95; max-width: none; margin-top: 0.4rem; }
.proj-hero__side { padding-bottom: 0.5rem; padding-inline-start: clamp(1.25rem, 3vw, 2.25rem); border-inline-start: 1.5px solid var(--blue-200); }
.proj-hero .project-lead { max-width: 38ch; margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); }
.proj-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; margin-top: 1.5rem; }
.proj-hero__actions .project-tags { margin: 0; }
@media (max-width: 900px) {
  .proj-hero__main { grid-template-columns: 1fr; }
  .proj-hero__side { padding-inline-start: 0; border-inline-start: 0; padding-bottom: 0; }
}

.proj-spec { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: clamp(2rem, 4vw, 3rem) 0 0; border-block: 1.5px solid var(--blue-200); }
.proj-spec > div { padding: 1.15rem 1.25rem; }
.proj-spec > div:first-child { padding-inline-start: 0; }
.proj-spec > div + div { border-inline-start: 1.5px solid var(--blue-100); }
.proj-spec dt { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.proj-spec dt::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; background: var(--red); clip-path: var(--star8); }
.proj-spec dd { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
@media (max-width: 800px) {
  /* phones and small tablets: a tidy spec sheet, label on one side and value on the other */
  .proj-hero { padding-top: 6rem; }
  .proj-hero .page-hero__title { font-size: clamp(2.5rem, 13vw, 3.6rem); }
  .proj-hero .project-lead { font-size: 1.0625rem; }
  .proj-hero__actions { margin-top: 1.25rem; }
  .proj-spec { max-width: 44rem; }
  .proj-spec { grid-template-columns: 1fr; margin-top: 1.75rem; border-block: 0; border-top: 1.5px solid var(--blue-200); }
  .proj-spec > div, .proj-spec > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; padding: 0.9rem 0; border-inline-start: 0; border-bottom: 1.5px solid var(--blue-100); }
  .proj-spec > div + div { border-inline-start: 0; }
  .proj-spec > div:last-child { border-bottom: 1.5px solid var(--blue-200); }
  .proj-spec dt { flex: none; margin: 0; }
  .proj-spec dd { text-align: end; font-size: 1rem; }
}
@media (max-width: 560px) {
  .proj-hero__actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .proj-hero__actions .btn-primary { justify-content: center; width: 100%; }
  .proj-hero__actions .project-tags { justify-content: center; }
  .proj-spec { max-width: none; }
}

/* showcase band */
.proj-stage { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2.25rem, 6vw, 4.5rem); background: var(--blue); }
.proj-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 72px; opacity: 0.12; }
.proj-stage__frame { position: relative; margin: 0 auto; max-width: 62rem; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--blue-100); border-radius: 50% 50% 1.5rem 1.5rem / 30% 30% 1.5rem 1.5rem; outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 8px; box-shadow: 0 30px 70px rgba(11, 13, 61, 0.35); }
.proj-stage__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a real screenshot: browser window instead of the arch */
.proj-stage__frame--shot { aspect-ratio: auto; padding-top: 2.1rem; background: var(--white); border-radius: 0.9rem; outline: 0; }
.proj-stage__frame--shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2.1rem; background: radial-gradient(circle at 1.1rem 50%, var(--red) 0.28rem, transparent 0.3rem), radial-gradient(circle at 1.85rem 50%, var(--blue-200) 0.28rem, transparent 0.3rem), radial-gradient(circle at 2.6rem 50%, var(--blue-200) 0.28rem, transparent 0.3rem), var(--blue-50); border-bottom: 1.5px solid var(--blue-100); }
.proj-stage__frame--shot img { height: auto; object-fit: initial; }
@media (max-width: 800px) { .proj-stage__frame { aspect-ratio: 4 / 3.4; border-radius: 50% 50% 1.25rem 1.25rem / 22% 22% 1.25rem 1.25rem; outline-offset: 6px; } .proj-stage__frame--shot { aspect-ratio: auto; border-radius: 0.75rem; } }

/* story */
.proj-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr); align-items: start; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem); }
.proj-story__head { position: sticky; top: 7rem; margin: 0; }
.proj-story__head .section-heading { max-width: 12ch; }
.proj-story__body { display: grid; }
.proj-block { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.4rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1.5px solid var(--blue-100); }
.proj-block:first-child { padding-top: 0; border-top: 0; }
.proj-block h3 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-block p { margin: 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.75; color: var(--muted); }
.proj-outcome { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(0.75rem, 2vw, 1.25rem); padding: clamp(1.5rem, 3.5vw, 2.5rem); background: var(--blue); color: var(--white); border-radius: var(--radius-lg); }
.proj-outcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 64px; opacity: 0.1; }
.proj-outcome::after { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.proj-outcome__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.proj-outcome__head h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-outcome__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.proj-outcome__list li { position: relative; padding: 1rem 1rem 1rem 2.7rem; padding-inline: 2.7rem 1rem; background: rgba(255, 255, 255, 0.1); border-radius: calc(var(--radius-lg) - 0.5rem); font-size: 1.0625rem; line-height: 1.5; }
.proj-outcome__list li::before { content: ""; position: absolute; inset-inline-start: 1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; background: var(--white); clip-path: var(--star8); }
@media (max-width: 900px) { .proj-story { grid-template-columns: 1fr; gap: 1.5rem; } .proj-story__head { position: static; } .proj-story__head .section-heading { max-width: none; } }
@media (max-width: 520px) { .proj-block { grid-template-columns: 1fr; } }

/* gallery (real screenshots, set in the project's Gallery field) */
.proj-gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.proj-gal figure { grid-column: span 3; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-100); border-radius: var(--radius-lg); }
.proj-gal figure:nth-child(3n + 1) { grid-column: span 6; aspect-ratio: 16 / 8; }
.proj-gal img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj-gal figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .proj-gal figure, .proj-gal figure:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* next project */
.proj-next-wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.proj-next { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--blue); color: var(--white); border-radius: var(--radius-lg); transition: transform 0.4s var(--ease), background 0.3s; }
.proj-next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-white) center / 64px; opacity: 0.12; }
.proj-next:hover { transform: translateY(-4px); background: var(--cherry); }
.proj-next__text { display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; padding: clamp(1.5rem, 4vw, 3rem); }
.proj-next__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.proj-next__title { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; text-transform: lowercase; }
.proj-next .case-tags { margin: 0; }
.proj-next .case-tags li { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.proj-next__arrow { align-self: flex-start; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 0.5rem; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 50%; font-size: 1.5rem; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
.proj-next:hover .proj-next__arrow { background: var(--white); color: var(--blue); transform: rotate(-45deg); }
.proj-next:hover:lang(fa) .proj-next__arrow { transform: rotate(45deg); }
.proj-next__media { align-self: end; margin: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) 0; aspect-ratio: 5 / 4; overflow: hidden; background: var(--blue-200); border-radius: 50% 50% 0 0 / 36% 36% 0 0; }
.proj-next__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj-next:hover .proj-next__media img { transform: scale(1.05); }
@media (max-width: 800px) { .proj-next { grid-template-columns: 1fr; } .proj-next__media { margin: 0 1.5rem; aspect-ratio: 16 / 10; } }

/* v22 — phone beside the main image, redesigned gallery */
.proj-stage__wrap { position: relative; max-width: 62rem; margin-inline: auto; }
.proj-stage__wrap .proj-stage__frame { margin: 0; max-width: none; }
.proj-stage--phone { padding-bottom: clamp(3.75rem, 9vw, 7rem); }
.proj-phone { position: absolute; z-index: 2; inset-inline-end: clamp(0.5rem, 5%, 4rem); bottom: calc(-1 * clamp(1.75rem, 5vw, 4rem)); width: clamp(92px, 19%, 210px); margin: 0; aspect-ratio: 9 / 19; padding: clamp(0.25rem, 0.55vw, 0.5rem); background: var(--blue-900, #0B0D3D); border-radius: clamp(1.1rem, 2.8vw, 2.3rem); box-shadow: 0 28px 60px rgba(11, 13, 61, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16); }
.proj-phone::before { content: ""; position: absolute; z-index: 1; top: clamp(0.4rem, 0.9vw, 0.7rem); inset-inline: 36%; height: clamp(0.18rem, 0.4vw, 0.32rem); border-radius: 99px; background: rgba(255, 255, 255, 0.22); }
.proj-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--white); border-radius: clamp(0.85rem, 2.1vw, 1.8rem); }
@media (max-width: 560px) { .proj-phone { width: 27%; inset-inline-end: 0.35rem; } .proj-stage--phone { padding-bottom: 3.25rem; } }

.proj-gal-wrap { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.proj-gal__head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.proj-gal__head .section-heading { max-width: 16ch; }
.proj-gal { display: block; columns: 2; column-gap: clamp(0.85rem, 2vw, 1.5rem); padding: 0; }
.proj-gal figure, .proj-gal figure:nth-child(3n + 1) { position: relative; display: block; break-inside: avoid; margin: 0 0 clamp(0.85rem, 2vw, 1.5rem); padding: clamp(0.6rem, 1.6vw, 1.1rem); aspect-ratio: auto; grid-column: auto; overflow: hidden; background: var(--blue-100); border-radius: var(--radius-lg); isolation: isolate; }
.proj-gal figure::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lat-blue, var(--lat-white)) center / 64px; opacity: 0.12; }
.proj-gal img { display: block; width: 100%; height: auto; object-fit: initial; border-radius: calc(var(--radius-lg) - 0.55rem); box-shadow: 0 14px 34px rgba(11, 13, 61, 0.18); transition: transform 0.6s var(--ease); }
.proj-gal figure:hover img { transform: translateY(-4px); }
@media (max-width: 700px) { .proj-gal { columns: 1; } }

/* v23 — project page: results first, plain text blocks, previous/next navigation */
.proj-body { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.proj-body .proj-outcome { margin: 0; }
.proj-outcome__title { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-outcome__list { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.proj-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.proj-pair > :only-child { grid-column: 1 / -1; }
.proj-text { padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); }
.proj-text h3 { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.85rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-text h3::before { content: ""; flex: none; width: 0.9rem; height: 0.9rem; background: var(--red); clip-path: var(--star8); }
.proj-text p { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.75; color: var(--muted); }
@media (max-width: 800px) { .proj-pair { grid-template-columns: 1fr; } }
.proj-gal__title { margin: 0 0 clamp(1rem, 2.5vw, 1.5rem); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.proj-nav__link { display: flex; align-items: center; gap: 1rem; padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1.1rem, 2.6vw, 1.75rem); background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg); transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, color 0.3s; }
.proj-nav__link--next { justify-content: space-between; text-align: end; }
.proj-nav__link:hover { transform: translateY(-3px); background: var(--blue); border-color: var(--blue); color: var(--white); }
.proj-nav__link small { display: block; margin-bottom: 0.25rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.proj-nav__link:hover small { color: rgba(255, 255, 255, 0.75); }
.proj-nav__link b { display: block; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.035em; text-transform: lowercase; }
.proj-nav__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 1.25rem; opacity: 0.6; }
@media (max-width: 560px) { .proj-nav { grid-template-columns: 1fr; } .proj-nav__link--next { text-align: start; } }

/* v24 — neutral image cards: project screenshots keep their own colours on a quiet grey stage, so any brand reads clearly */
:root { --shot-bg: #ECECF0; --shot-panel: #E3E3E8; --shot-line: #D5D5DB; --shot-bar: #F5F5F7; --shot-dot: #C9C9D1; --shot-ink: #16161B; --shot-shadow: rgba(20, 20, 28, 0.22); }

/* project page: stage + frames */
.proj-stage { background: var(--shot-bg); }
.proj-stage::before { opacity: 0; }
.proj-stage__frame { background: var(--white); outline-color: rgba(22, 22, 27, 0.14); box-shadow: 0 30px 70px var(--shot-shadow), 0 2px 6px rgba(20, 20, 28, 0.08); }
.proj-stage__frame--shot { background: var(--white); outline: 0; }
.proj-stage__frame--shot::before { background: radial-gradient(circle at 1.1rem 50%, var(--shot-dot) 0.28rem, transparent 0.3rem), radial-gradient(circle at 1.85rem 50%, var(--shot-dot) 0.28rem, transparent 0.3rem), radial-gradient(circle at 2.6rem 50%, var(--shot-dot) 0.28rem, transparent 0.3rem), var(--shot-bar); border-bottom-color: var(--shot-line); }
.proj-phone { background: var(--shot-ink); box-shadow: 0 28px 60px rgba(20, 20, 28, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
.proj-phone img { background: var(--white); }

/* gallery */
.proj-gal figure, .proj-gal figure:nth-child(3n + 1) { background: var(--shot-bg); }
.proj-gal figure::before { opacity: 0; }
.proj-gal img { box-shadow: 0 14px 34px rgba(20, 20, 28, 0.18), 0 1px 3px rgba(20, 20, 28, 0.08); }

/* lists (home rows, work page): neutral image panel, true colours, top of the page first */
.work-tile__img { background: var(--shot-bg); }
.work-tile__img img { object-position: center top; }
.case-card .case-card__arc { background: var(--shot-bg); }
.case-card .case-card__arc img { filter: none; mix-blend-mode: normal; object-position: center top; }

/* v25 — cards show the whole screenshot (no cropping) as a rounded picture on a neutral panel; compact project hero */
.work-tile__img { position: relative; display: block; padding: 0; background: var(--shot-bg); }
.work-tile__img img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); object-fit: contain; border-radius: 0.7rem; box-shadow: 0 10px 26px rgba(20, 20, 28, 0.2), 0 1px 3px rgba(20, 20, 28, 0.1); }
.work-tile:hover .work-tile__img img { transform: scale(1.03); }
.case-card .case-card__arc { display: block; padding: 0; background: var(--shot-bg); }
.case-card .case-card__arc img { position: absolute; inset: 1.7rem 1.1rem 1rem; margin: auto; width: auto; height: auto; max-width: calc(100% - 2.2rem); max-height: calc(100% - 2.7rem); object-fit: contain; border-radius: 0.7rem; box-shadow: 0 10px 26px rgba(20, 20, 28, 0.2), 0 1px 3px rgba(20, 20, 28, 0.1); }

.proj-hero { padding-top: clamp(5.75rem, 8vw, 6.75rem); }
.proj-hero__main { gap: 1rem clamp(1.5rem, 4vw, 3.5rem); }
.proj-hero__head .project-back { margin-bottom: 0.6rem; font-size: 0.8125rem; }
.proj-hero .page-hero__label { margin-bottom: 0; }
.proj-hero .page-hero__title { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: 0.25rem; }
.proj-hero__side { padding-bottom: 0.25rem; }
.proj-hero .project-lead { max-width: 40ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; }
.proj-hero__actions { margin-top: 1rem; }
.proj-spec { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.proj-spec > div { padding: 0.85rem 1.1rem; }
.proj-spec dt { margin-bottom: 0.2rem; font-size: 0.625rem; }
.proj-spec dd { font-size: 0.9375rem; line-height: 1.4; }
.proj-stage { margin-top: clamp(1.25rem, 3vw, 2rem); padding-block: clamp(1.75rem, 4.5vw, 3.25rem); }
.proj-stage--phone { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
@media (max-width: 800px) {
  .proj-hero { padding-top: 5.5rem; }
  .proj-hero .page-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .proj-hero .project-lead { font-size: 1rem; }
  .proj-spec > div, .proj-spec > div:first-child { padding: 0.7rem 0; }
}

/* v26 — project hero redesigned: text on one side, the project (browser + phone) on a neutral panel on the other, one composition */
.proj-hero { padding: clamp(5.75rem, 8vw, 7rem) 0 0; }
.proj-hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.75rem, 4.5vw, 4rem); }
.proj-hero__grid--solo { grid-template-columns: minmax(0, 46rem); }
.proj-hero__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.proj-hero__text .project-back { margin-bottom: 1.1rem; font-size: 0.8125rem; }
.proj-hero__text .page-hero__label { margin: 0 0 0.6rem; }
.proj-hero__text .page-hero__title { margin: 0; max-width: none; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -0.035em; }
.proj-hero__text .project-lead { margin: 1.1rem 0 0; max-width: 42ch; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.6; }
.proj-services { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.proj-services li { padding: 0.4rem 0.85rem; background: var(--white); border: 1.5px solid var(--blue-200); border-radius: var(--radius-pill, 99px); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--blue-900, var(--ink)); }
.proj-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.5rem; }
.proj-hero__more { font-size: 0.9375rem; font-weight: 600; color: var(--blue); }
.proj-hero__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 0.9rem 2.25rem; width: 100%; margin: 1.75rem 0 0; padding-top: 1.15rem; border-top: 1.5px solid var(--blue-100); }
.proj-meta dt { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.2rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.proj-meta dt::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--red); clip-path: var(--star8); }
.proj-meta dd { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }

.proj-hero__visual { position: relative; min-width: 0; padding: clamp(1.1rem, 2.6vw, 2rem); background: var(--shot-bg); border-radius: calc(var(--radius-lg) + 0.5rem); }
.proj-hero__visual--phone { padding-bottom: clamp(1.9rem, 4vw, 3rem); }
.proj-device__frame { position: relative; margin: 0; overflow: hidden; background: var(--white); border-radius: 0.9rem; box-shadow: 0 24px 50px var(--shot-shadow), 0 2px 6px rgba(20, 20, 28, 0.08); }
.proj-device__frame img { display: block; width: 100%; height: auto; }
.proj-device__frame--shot { padding-top: 1.9rem; }
.proj-device__frame--shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1.9rem; background: radial-gradient(circle at 0.95rem 50%, var(--shot-dot) 0.24rem, transparent 0.26rem), radial-gradient(circle at 1.6rem 50%, var(--shot-dot) 0.24rem, transparent 0.26rem), radial-gradient(circle at 2.25rem 50%, var(--shot-dot) 0.24rem, transparent 0.26rem), var(--shot-bar); border-bottom: 1.5px solid var(--shot-line); }
.proj-hero__visual .proj-phone { inset-inline-end: clamp(0.5rem, 2.4vw, 1.75rem); bottom: clamp(0.5rem, 2vw, 1.4rem); width: clamp(74px, 17%, 160px); }

@media (max-width: 900px) {
  .proj-hero { padding-top: 5.5rem; }
  .proj-hero__grid, .proj-hero__grid--solo { grid-template-columns: 1fr; gap: 1.75rem; }
  .proj-hero__text .page-hero__title { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .proj-hero__text .project-lead { font-size: 1.0625rem; }
}
@media (max-width: 520px) {
  .proj-hero__actions .btn-primary { width: 100%; justify-content: center; }
  .proj-meta { gap: 0.9rem 1.5rem; }
  .proj-hero__visual .proj-phone { width: 24%; }
}

/* v27 — ready-made mockups are shown as they are: no extra frame, white image backgrounds melt into the neutral panel */
.proj-hero__visual--plain { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: clamp(0.4rem, 1.4vw, 1rem); padding: clamp(0.6rem, 1.6vw, 1.1rem); overflow: hidden; }
.proj-hero__visual--plain.proj-hero__visual--phone { grid-template-columns: minmax(0, 1fr) clamp(88px, 24%, 200px); }
.proj-art { margin: 0; mix-blend-mode: multiply; }
.proj-art img { display: block; width: 100%; height: auto; }
.proj-art--phone { position: static; width: auto; }

/* gallery of ready-made mockups: no box around the picture */
.proj-gal--plain img { border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.proj-gal--plain figure, .proj-gal--plain figure:nth-child(3n + 1) { padding: clamp(0.35rem, 1vw, 0.7rem); }

/* cards (home rows + work page): same idea */
.work-tile__img.is-plain img, .case-card .case-card__arc.is-plain img { border-radius: 0; box-shadow: none; mix-blend-mode: multiply; max-width: calc(100% - 0.4rem); max-height: calc(100% - 0.4rem); }
.case-card .case-card__arc.is-plain img { inset: 0.6rem 0.4rem 0.4rem; }
.work-tile:hover .work-tile__img.is-plain img { transform: scale(1.04); }

@media (max-width: 520px) { .proj-hero__visual--plain.proj-hero__visual--phone { grid-template-columns: minmax(0, 1fr) 27%; } }

/* v28 — project showcase: a laptop and a phone "browse" the project's full-page screenshots while the visitor scrolls */
.proj-showcase { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); background: var(--shot-bg); }
.proj-showcase__pin { position: relative; display: grid; place-items: center; padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); background: radial-gradient(ellipse 70% 60% at 50% 38%, #f7f7f9 0%, var(--shot-bg) 62%, #dedee4 100%); }
.proj-showcase__stage { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); width: 100%; padding-inline: clamp(1rem, 4vw, 3rem); }

/* devices */
.device { position: relative; margin: 0; min-width: 0; }
.device--laptop { width: min(62rem, 90vw, 128vh); }
.device--phone { height: min(78vh, 44rem); aspect-ratio: 9 / 19; }
.device__lid { position: relative; background: #16161b; box-shadow: 0 40px 80px rgba(20, 20, 28, 0.32), inset 0 0 0 1.5px #2c2c34; }
.device--laptop .device__lid { padding: 2.1% 2.1% 2.4%; border-radius: 1.1rem 1.1rem 0.5rem 0.5rem; }
.device--laptop .device__lid::before { content: ""; position: absolute; top: 0.7%; left: 50%; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #3a3a44; transform: translateX(-50%); }
.device__screen { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.device--laptop .device__screen { aspect-ratio: 16 / 10; border-radius: 0.35rem; }
.device__bar { flex: none; display: flex; align-items: center; gap: 0.7rem; height: 1.9rem; padding-inline: 0.8rem; background: #f4f4f6; border-bottom: 1px solid #deded3; }
.device__bar i { flex: none; width: 0.5rem; height: 0.5rem; margin-inline-end: 1.7rem; border-radius: 50%; background: #cfcfd6; box-shadow: 0.85rem 0 #cfcfd6, 1.7rem 0 #cfcfd6; }
.device__url { flex: 1; max-width: 26rem; margin-inline: auto; padding: 0.15rem 0.8rem; background: #fff; border-radius: 99px; font-size: 0.6875rem; line-height: 1.4; color: #6b6b75; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device__scroll { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.device__shot { display: block; width: 100%; height: auto; will-change: transform; }
.device__base { position: relative; height: clamp(0.7rem, 1.5vw, 1.1rem); margin-inline: -3.5%; background: linear-gradient(#dcdce2, #b8b8c1); border-radius: 0 0 1.2rem 1.2rem; box-shadow: 0 22px 34px rgba(20, 20, 28, 0.24); }
.device__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 0.32rem; background: #a2a2ac; border-radius: 0 0 0.5rem 0.5rem; transform: translateX(-50%); }

.device--phone .device__lid { height: 100%; padding: 2.4%; border-radius: clamp(1.6rem, 3.4vw, 2.6rem); box-shadow: 0 40px 70px rgba(20, 20, 28, 0.36), inset 0 0 0 1.5px #2c2c34, 0 0 0 1px rgba(255, 255, 255, 0.04); }
.device--phone .device__lid::after { content: ""; position: absolute; z-index: 3; top: 3.1%; left: 50%; width: 27%; height: 2.3%; border-radius: 99px; background: #000; transform: translateX(-50%); }
.device--phone .device__screen { height: 100%; border-radius: clamp(1.2rem, 2.8vw, 2.1rem); }

/* helper line, progress, call to action */
.proj-showcase__hint { position: absolute; z-index: 4; inset-inline: 0; bottom: clamp(1rem, 3vw, 1.75rem); display: none; flex-direction: column; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5b5b66; pointer-events: none; }
.proj-showcase__hint::after { content: "↓"; font-size: 1.1rem; animation: showcaseHint 1.6s ease-in-out infinite; }
@keyframes showcaseHint { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }
.proj-showcase__progress { position: absolute; z-index: 4; left: 50%; bottom: clamp(0.6rem, 1.6vw, 1rem); display: none; width: min(22rem, 56vw); height: 3px; background: rgba(22, 22, 27, 0.12); border-radius: 3px; transform: translateX(-50%); overflow: hidden; }
.proj-showcase__progress i { display: block; width: 100%; height: 100%; background: var(--blue); border-radius: 3px; transform: scaleX(0); transform-origin: left center; }
:lang(fa) .proj-showcase__progress i { transform-origin: right center; }
.proj-showcase__cta { position: relative; z-index: 4; flex-basis: 100%; display: flex; justify-content: center; margin-top: 0.5rem; }
.proj-showcase__cta .btn-primary { box-shadow: 0 12px 28px rgba(22, 22, 27, 0.2); }

/* live mode (JS + motion allowed): one pinned scene, the devices share the same spot */
.proj-showcase.is-live.proj-showcase--both { height: 340vh; }
.proj-showcase.is-live.proj-showcase--one { height: 270vh; }
.proj-showcase.is-live .proj-showcase__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: clamp(4.5rem, 7vw, 5.5rem) clamp(4.75rem, 7vw, 5.75rem); overflow: clip; }
.proj-showcase.is-live .proj-showcase__stage { display: grid; place-items: center; height: 100%; }
.proj-showcase.is-live .device { grid-area: 1 / 1; will-change: transform, opacity; }
.proj-showcase.is-live .device--laptop { width: min(62rem, 90vw, 118vh); }
.proj-showcase.is-live .device--phone { height: min(76vh, 42rem); }
.proj-showcase.is-live .proj-showcase__cta { position: absolute; inset-inline: 0; bottom: clamp(1.1rem, 2.6vw, 1.7rem); margin: 0; opacity: 0; pointer-events: none; }
.proj-showcase.is-live .proj-showcase__cta .btn-primary { pointer-events: auto; }
.proj-showcase.is-live .proj-showcase__hint, .proj-showcase.is-live .proj-showcase__progress { display: flex; }
.proj-showcase.is-live .proj-showcase__progress { display: block; }

@media (max-width: 800px) {
  .proj-showcase.is-live.proj-showcase--both { height: 340vh; }
  .proj-showcase.is-live.proj-showcase--one { height: 240vh; }
  .proj-showcase.is-live .device--laptop { width: min(94vw, 40rem); }
  .proj-showcase.is-live .device--phone { height: min(70svh, 34rem); }
  .proj-showcase.is-live .proj-showcase__pin { padding-bottom: 5.75rem; }
  .device__bar { height: 1.5rem; }
  .device__url { font-size: 0.5625rem; }
}
@media (max-width: 560px) {
  .proj-showcase__stage { padding-inline: 0.75rem; }
}

/* v29 — Persian: Noto Kufi runs wide and needs air, so titles are a little smaller and the small labels a little bigger */
html[lang="fa"] .proj-hero__text .page-hero__title { font-size: clamp(2rem, 3.7vw, 3.3rem); line-height: 1.3; }
html[lang="fa"] .proj-hero__text .project-lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.95; }
html[lang="fa"] .proj-services li { padding: 0.4rem 0.95rem; font-size: 0.875rem; line-height: 1.5; }
html[lang="fa"] .proj-hero__more { font-size: 1rem; }
html[lang="fa"] .proj-meta dt { font-size: 0.75rem; }
html[lang="fa"] .proj-meta dd { font-size: 1.0625rem; }
html[lang="fa"] .proj-showcase__hint { font-size: 0.8125rem; }
html[lang="fa"] .device__url { font-size: 0.75rem; }
html[lang="fa"] .proj-nav__link small { font-size: 0.8125rem; }
html[lang="fa"] .proj-nav__link b { line-height: 1.5; }
html[lang="fa"] .proj-text p, html[lang="fa"] .proj-outcome__list li { line-height: 1.9; }
html[lang="fa"] .proj-text h3, html[lang="fa"] .proj-outcome__title, html[lang="fa"] .proj-gal__title { line-height: 1.5; }
html[lang="fa"] .proj-hero__text .page-hero__label { font-size: 0.8125rem; }

/* v30 — hero for plain screenshots: the same laptop + phone as the scroll showcase, side by side (no frame inside a frame); calmer panel */
.proj-hero__visual--devices { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: clamp(0.6rem, 1.8vw, 1.3rem); padding: clamp(1.1rem, 2.6vw, 2rem); overflow: hidden; border-radius: var(--radius-lg); }
.proj-hero__visual--devices.proj-hero__visual--phone { grid-template-columns: minmax(0, 1fr) clamp(76px, 21%, 150px); }
.proj-hero__visual--devices .device { min-width: 0; }
.proj-hero__visual--devices .device--laptop { width: 100%; }
.proj-hero__visual--devices .device__lid { box-shadow: 0 22px 44px rgba(20, 20, 28, 0.26), inset 0 0 0 1.5px #2c2c34; }
.proj-hero__visual--devices .device--phone { width: 100%; height: auto; }
.proj-hero__visual--devices .device--phone .device__lid { position: relative; height: auto; aspect-ratio: 9 / 19; padding: 0; border-radius: clamp(1rem, 2.4vw, 1.7rem); }
.proj-hero__visual--devices .device--phone .device__screen { position: absolute; inset: 2.6% 5%; height: auto; border-radius: clamp(0.75rem, 1.9vw, 1.3rem); }
.proj-hero__visual--devices .device--phone .device__lid::after { top: 4%; height: 2%; }
.device--static .device__scroll { position: relative; }
.device--static .device__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
