/* Local UI upgrade layer: motion, proof, accessibility, true light theme, controls */

:root {
  --ui-ink: #17140f;
  --ui-ink-soft: rgba(23, 20, 15, 0.68);
  --ui-cream: #f8f5f0;
  --ui-pistachio: #eef4df;
  --ui-pistachio-strong: #dce9c8;
  --ui-gold: #c8a45d;
  --ui-gold-bright: #e4c47a;
  --ui-focus: #f2ce74;
  --ui-panel-radius: 18px;
  --ui-control-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] {
  --bg-primary: #eef4df;
  --bg-surface: rgba(248, 245, 240, 0.9);
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --text-primary: #17140f;
  --text-secondary: rgba(23, 20, 15, 0.76);
  --text-muted: rgba(23, 20, 15, 0.58);
  --accent-gold: #a97924;
  --accent-gold-hover: #805a19;
  --accent-gold-text: #6f4d16;
  --accent-stone: rgba(23, 20, 15, 0.14);
  --border-default: rgba(23, 20, 15, 0.14);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 12%, rgba(200, 164, 93, 0.14), transparent 28rem),
    linear-gradient(180deg, #eef4df 0%, #f8f5f0 44%, #eef4df 100%);
  color: var(--text-primary);
}

[data-theme="light"] body:has(.home-page--motion) {
  background:
    radial-gradient(circle at 12% 10%, rgba(200, 164, 93, 0.13), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(220, 233, 200, 0.72), transparent 24rem),
    linear-gradient(180deg, #eef4df 0%, #f8f5f0 48%, #eef4df 100%) !important;
  color: var(--text-primary);
}

[data-theme="light"] .fargah-viewer__bg,
[data-theme="light"] .fargah-viewer__bg-veil,
[data-theme="light"] .motion-vignette {
  opacity: 0.12;
}

[data-theme="light"] .motion-grid {
  opacity: 0.18;
  --motion-grid-line: rgba(169, 121, 36, 0.12);
}

[data-theme="light"] .motion-particles {
  opacity: 0.32;
}

.fargah-header {
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.fargah-header__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.55vw, 24px);
}

.fargah-header nav {
  min-width: 0;
  width: 100%;
}

.fargah-nav {
  width: 100%;
  justify-content: center;
  gap: clamp(12px, 1.35vw, 22px) !important;
  min-width: 0;
}

.fargah-nav > li {
  flex: 0 0 auto;
  min-width: max-content;
}

.fargah-nav > li > a {
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
  text-align: center;
}

.fargah-viewer__screen .fargah-header,
.fargah-viewer__screen .fargah-header--overlay,
.home-page--motion .fargah-header--overlay {
  background: rgba(5, 5, 8, 0.72) !important;
  border-bottom: 1px solid rgba(212, 175, 90, 0.15) !important;
}

.fargah-viewer__screen .fargah-header.fargah-header--scrolled,
.fargah-viewer__screen .fargah-header--overlay.fargah-header--scrolled,
.home-page--motion .fargah-header--overlay.fargah-header--scrolled {
  background: rgba(5, 5, 8, 0.95) !important;
}

[data-theme="dark"] .fargah-viewer__screen .fargah-nav > li > a,
[data-theme="dark"] .home-page--motion .fargah-header--overlay .fargah-nav > li > a {
  color: rgba(240, 237, 230, 0.82);
}

[data-theme="dark"] .fargah-viewer__screen .fargah-nav > li > a:hover,
[data-theme="dark"] .fargah-viewer__screen .fargah-nav > li > a.active,
[data-theme="dark"] .home-page--motion .fargah-header--overlay .fargah-nav > li > a:hover,
[data-theme="dark"] .home-page--motion .fargah-header--overlay .fargah-nav > li > a.active {
  color: var(--ui-gold-bright);
}

[data-theme="light"] .fargah-viewer__screen .fargah-header,
[data-theme="light"] .fargah-viewer__screen .fargah-header--overlay,
[data-theme="light"] .home-page--motion .fargah-header--overlay {
  background: rgba(248, 245, 240, 0.74) !important;
  border-bottom-color: rgba(23, 20, 15, 0.12) !important;
}

[data-theme="light"] .fargah-viewer__screen .fargah-header.fargah-header--scrolled,
[data-theme="light"] .fargah-viewer__screen .fargah-header--overlay.fargah-header--scrolled,
[data-theme="light"] .home-page--motion .fargah-header--overlay.fargah-header--scrolled {
  background: rgba(248, 245, 240, 0.94) !important;
}

.fargah-header--scrolled,
.home-page--motion .fargah-header--overlay.fargah-header--scrolled {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.fargah-nav > li > a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.fargah-nav > li > a:hover,
.fargah-nav > li > a.active,
.fargah-nav > li > a:focus-visible {
  color: var(--accent-gold-hover);
}

.header-icon-btn,
.theme-toggle,
.locale-dropdown__trigger {
  min-width: 42px;
  min-height: 42px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  position: relative;
  display: inline-grid;
  place-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(228, 196, 122, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(228, 196, 122, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(6, 6, 4, 0.42));
  color: rgba(248, 245, 240, 0.9);
  box-shadow:
    0 0 0 1px rgba(248, 245, 240, 0.045) inset,
    0 10px 28px rgba(0, 0, 0, 0.22);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mobile-menu-toggle::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(228, 196, 122, 0.12);
  pointer-events: none;
}

.mobile-menu-toggle span {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(228, 196, 122, 0.22);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-menu-toggle span + span {
  margin-top: 4px;
}

.mobile-menu-toggle:hover,
.fargah-header.is-mobile-menu-open .mobile-menu-toggle {
  transform: translateY(-1px);
  border-color: rgba(228, 196, 122, 0.78);
  color: var(--ui-gold-bright);
  box-shadow:
    0 0 0 1px rgba(200, 164, 93, 0.2) inset,
    0 0 24px rgba(228, 196, 122, 0.16),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.fargah-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.fargah-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.fargah-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.fargah-mobile-nav-panel[hidden] {
  display: none !important;
}

.fargah-mobile-nav-panel {
  position: absolute;
  z-index: 40;
  inset-inline: clamp(12px, 4vw, 24px);
  top: calc(100% + 10px);
  border: 1px solid rgba(228, 196, 122, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(228, 196, 122, 0.12), transparent 34%),
    rgba(8, 8, 7, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.fargah-mobile-nav-panel .fargah-container {
  padding-block: 10px;
}

.fargah-mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fargah-mobile-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(221, 232, 198, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 245, 240, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}

.fargah-mobile-nav a.active,
.fargah-mobile-nav a:hover,
.fargah-mobile-nav a:focus-visible {
  border-color: rgba(228, 196, 122, 0.5);
  background: rgba(200, 164, 93, 0.14);
  color: var(--ui-gold-bright);
}

.header-icon-btn[data-search-toggle] {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50% !important;
  border-color: rgba(221, 232, 198, 0.22);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

.header-icon-btn:hover,
.mobile-menu-toggle:hover,
.theme-toggle:hover,
.locale-dropdown__trigger:hover,
.locale-dropdown.is-open .locale-dropdown__trigger {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(200, 164, 93, 0.18), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.testimonials-slider__avatar {
  overflow: hidden;
  border: 1px solid rgba(228, 196, 122, 0.4);
  background: rgba(6, 6, 4, 0.64);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(200, 164, 93, 0.1);
}

.testimonials-slider__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 4px;
}

.btn-fargah:focus-visible,
.header-icon-btn:focus-visible,
.theme-toggle:focus-visible,
.locale-dropdown__trigger:focus-visible,
.fargah-hero-slider__arrow:focus-visible,
.fargah-hero-slider__dot:focus-visible,
.testimonials-slider__arrow:focus-visible,
.testimonials-slider__dot:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(200, 164, 93, 0.16);
}

.fargah-loader__device {
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(228, 196, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fargah-loader__screen {
  background: #040404;
}

.fargah-loader__logo {
  filter:
    drop-shadow(0 22px 52px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 18px rgba(228, 196, 122, 0.16));
}

.fargah-loader__progress {
  bottom: 9.5%;
}

.fargah-loader__tick {
  height: 16px;
  background: rgba(248, 245, 240, 0.26);
}

.fargah-loader__tick.is-active {
  background: rgba(248, 245, 240, 0.94);
  box-shadow: none;
}

.fargah-footer__credit a {
  color: var(--ui-gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 196, 122, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fargah-footer__credit a:hover,
.fargah-footer__credit a:focus-visible {
  color: #f8f5f0;
  border-bottom-color: currentColor;
}

.project-proof,
.executed-card__proof,
.executed-portfolio__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.project-proof span,
.executed-card__proof span,
.executed-portfolio__proof span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(200, 164, 93, 0.34);
  border-radius: 999px;
  background: rgba(6, 6, 4, 0.42);
  color: rgba(248, 245, 240, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.project-proof--ready,
.project-proof--card {
  justify-content: flex-start;
}

.editorial-card__body .project-proof--card {
  justify-content: center;
  margin: 2px 0 16px;
}

.editorial-card__body .project-proof--card span {
  background: rgba(200, 164, 93, 0.12);
  color: var(--accent-gold-text);
}

.ready-featured__body .project-proof {
  margin-bottom: 18px;
}

.ready-mini-card__proof {
  display: block;
  margin-top: 8px;
  color: var(--accent-gold-text);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
}

.executed-card__overlay {
  background:
    linear-gradient(to top, rgba(6, 6, 4, 0.92) 0%, rgba(6, 6, 4, 0.62) 36%, transparent 72%);
}

.executed-card__proof {
  margin-bottom: 10px;
}

.executed-card__title,
.executed-portfolio__title {
  text-wrap: balance;
}

.executed-portfolio__overlay {
  background:
    linear-gradient(180deg, transparent 12%, rgba(6, 6, 4, 0.74) 58%, rgba(6, 6, 4, 0.94) 100%);
}

.executed-portfolio__proof {
  margin-bottom: 8px;
}

.executed-portfolio__proof span {
  background: rgba(6, 6, 4, 0.52);
}

[data-theme="light"] .editorial-card,
[data-theme="light"] .ready-featured,
[data-theme="light"] .ready-mini-card,
[data-theme="light"] .article-feed-card,
[data-theme="light"] .card-premium,
[data-theme="light"] .tech-proof-card,
[data-theme="light"] .testimonials-slider__slide,
[data-theme="light"] .catalog-live-section__inner,
[data-theme="light"] .sanjab-form-section__grid {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(23, 20, 15, 0.12) !important;
  color: var(--text-primary);
  box-shadow: 0 18px 48px rgba(23, 20, 15, 0.11);
}

[data-theme="light"] .home-page--motion .card-premium,
[data-theme="light"] .home-page--motion .editorial-card,
[data-theme="light"] .home-page--motion .catalog-product-card,
[data-theme="light"] .home-page--motion .article-feed-card,
[data-theme="light"] .home-page--motion .ready-mini-card,
[data-theme="light"] .home-page--motion .testimonials-slider,
[data-theme="light"] .home-page--motion .tech-proof-card {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(23, 20, 15, 0.12) !important;
  box-shadow: 0 18px 48px rgba(23, 20, 15, 0.1) !important;
}

[data-theme="light"] .project-proof span {
  background: rgba(169, 121, 36, 0.1);
  border-color: rgba(169, 121, 36, 0.26);
  color: #6f4d16;
}

[data-theme="light"] .page-hero {
  background:
    radial-gradient(circle at 18% 0%, rgba(200, 164, 93, 0.16), transparent 24rem),
    linear-gradient(180deg, #eef4df 0%, #f8f5f0 100%);
  border-bottom-color: rgba(23, 20, 15, 0.12);
}

[data-theme="light"] .page-hero__title,
[data-theme="light"] .section-title,
[data-theme="light"] .article-feed-card__title,
[data-theme="light"] .ready-mini-card h4,
[data-theme="light"] .ready-featured h3 {
  color: #17140f !important;
}

[data-theme="light"] .section-subtitle,
[data-theme="light"] .article-feed-card__excerpt,
[data-theme="light"] .text-muted-custom,
[data-theme="light"] .ready-mini-card__meta {
  color: rgba(23, 20, 15, 0.68) !important;
}

[data-theme="light"] .btn-fargah--dark {
  background: #17140f;
  color: #f8f5f0;
}

[data-theme="light"] .btn-fargah--outline,
[data-theme="light"] .btn-fargah--outline-light {
  border-color: rgba(169, 121, 36, 0.42);
  color: #6f4d16;
  background: rgba(255, 255, 255, 0.44);
}

[data-theme="light"] .btn-fargah--outline:hover,
[data-theme="light"] .btn-fargah--outline-light:hover {
  border-color: var(--accent-gold);
  background: rgba(169, 121, 36, 0.1);
}

[data-theme="light"] .home-page--motion .fargah-header--overlay {
  background: rgba(248, 245, 240, 0.74) !important;
  border-bottom-color: rgba(23, 20, 15, 0.12) !important;
}

[data-theme="light"] .home-page--motion .fargah-header--overlay .fargah-nav > li > a {
  color: rgba(23, 20, 15, 0.72);
}

[data-theme="light"] .home-page--motion .fargah-header--overlay .fargah-nav > li > a:hover,
[data-theme="light"] .home-page--motion .fargah-header--overlay .fargah-nav > li > a.active {
  color: #6f4d16;
}

@media (max-width: 768px) {
  .fargah-viewer-stage,
  .fargah-viewer__device,
  .fargah-viewer__screen,
  .home-page,
  .home-page--motion,
  .home-page__canvas {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    overflow-x: clip;
  }

  .fargah-viewer__device,
  .fargah-viewer__screen {
    justify-self: stretch;
  }

  .fargah-viewer__screen > main {
    min-width: 0;
  }

  .fargah-header {
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .fargah-header__inner {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .fargah-logo__brand {
    max-width: min(190px, 42vw);
    height: 52px;
  }

  .fargah-header__end {
    gap: 6px;
  }

  .locale-dropdown.d-none,
  .locale-dropdown.d-md-flex {
    display: inline-flex !important;
  }

  .locale-dropdown {
    flex: 0 0 auto;
  }

  .locale-dropdown__trigger {
    min-width: 40px;
    min-height: 40px;
    padding-inline: 8px;
    gap: 5px;
    border-radius: 999px;
  }

  .locale-dropdown__label {
    max-width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .locale-dropdown__chevron {
    width: 12px;
    height: 12px;
  }

  .locale-dropdown__panel {
    inset-inline: auto 0;
    width: min(236px, calc(100vw - 36px));
  }

  [dir="rtl"] .locale-dropdown__panel {
    inset-inline: 0 auto;
  }

  .fargah-loader__progress {
    bottom: 8.5%;
  }

  .project-proof,
  .executed-card__proof,
  .executed-portfolio__proof {
    gap: 5px;
  }
}

/* July polish: normal cursor, cleaner mobile frame, and quieter project captions. */
.motion-cursor-glow,
.fargah-cursor,
.fargah-cursor-trail {
  display: none !important;
}

html,
html body {
  cursor: auto !important;
}

a,
button,
[role="button"],
label[for],
summary {
  cursor: pointer !important;
}

input,
textarea,
select {
  cursor: text !important;
}

.studio-hero-combined,
.studio-hero-combined.is-dragging,
.home-page__hero,
.studio-hero-combined__media,
.fargah-hero-slider__viewport,
.fargah-hero-slider__track {
  cursor: auto !important;
}

@media (max-width: 991.98px) {
  .fargah-viewer-stage {
    padding: clamp(8px, 2vw, 14px);
    background:
      radial-gradient(circle at 50% 0%, rgba(228, 196, 122, 0.14), transparent 34rem),
      linear-gradient(180deg, #050505, #090806 55%, #050505);
  }

  .fargah-viewer__device {
    width: 100%;
    min-height: calc(100svh - clamp(16px, 4vw, 28px));
    padding: 1px;
    border-radius: clamp(20px, 5.4vw, 30px);
    background:
      linear-gradient(145deg, rgba(248, 245, 240, 0.18), rgba(200, 164, 93, 0.42) 38%, rgba(221, 232, 198, 0.08));
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.46),
      0 0 0 1px rgba(248, 245, 240, 0.04);
  }

  .fargah-viewer__screen {
    min-height: calc(100svh - clamp(18px, 4.2vw, 30px));
    border-radius: calc(clamp(20px, 5.4vw, 30px) - 1px);
    overflow: clip;
  }

  .fargah-viewer__screen .fargah-header,
  .fargah-viewer__screen .fargah-header--overlay {
    width: calc(100% - clamp(14px, 4vw, 28px));
    margin: clamp(7px, 2vw, 12px) auto 0;
    border: 1px solid rgba(228, 196, 122, 0.22) !important;
    border-radius: clamp(18px, 5vw, 26px) !important;
    overflow: visible;
    background:
      radial-gradient(circle at 84% 0%, rgba(228, 196, 122, 0.12), transparent 42%),
      rgba(8, 8, 8, 0.78) !important;
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .fargah-header__inner {
    min-height: clamp(66px, 9vw, 78px);
    padding-inline: clamp(10px, 3vw, 16px);
  }

  .fargah-mobile-nav-panel {
    inset-inline: 0;
    top: calc(100% + 8px);
    border-radius: 18px;
  }

  [data-theme="light"] .fargah-viewer__screen .fargah-header,
  [data-theme="light"] .fargah-viewer__screen .fargah-header--overlay {
    background:
      radial-gradient(circle at 84% 0%, rgba(169, 121, 36, 0.13), transparent 42%),
      rgba(248, 245, 240, 0.86) !important;
    border-color: rgba(169, 121, 36, 0.22) !important;
  }
}

.home-page--motion .executed-card {
  border-radius: 12px;
  border-color: rgba(228, 196, 122, 0.18);
  background: #060604;
}

.home-page--motion .executed-card__overlay {
  inset: auto 0 0;
  min-height: 44%;
  padding: 46px 18px 16px;
  justify-content: flex-end;
  gap: 8px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 6, 4, 0.72) 34%, rgba(6, 6, 4, 0.95) 100%);
  text-align: right;
}

[dir="ltr"] .home-page--motion .executed-card__overlay {
  text-align: left;
}

.home-page--motion .executed-card__proof {
  order: 2;
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  gap: 6px;
  margin: 0;
  overflow: hidden;
}

.home-page--motion .executed-card__proof span {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 9.5rem;
  min-height: 24px;
  padding: 4px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(6, 6, 4, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.68rem;
}

.home-page--motion .executed-card__title {
  order: 1;
  margin: 0;
  color: #f8f5f0;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  line-height: 1.65;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page--motion .executed-card__cta {
  order: 3;
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px 10px;
  border: 1px solid rgba(228, 196, 122, 0.34);
  border-radius: 999px;
  color: rgba(248, 245, 240, 0.86);
  background: rgba(6, 6, 4, 0.34);
  font-size: 0.72rem;
  line-height: 1.4;
}

[dir="rtl"] .home-page--motion .executed-card__cta {
  align-self: flex-end;
}

@media (max-width: 640px) {
  .motion-rail__item {
    flex-basis: min(78vw, 320px);
  }

  .home-page--motion .executed-card {
    aspect-ratio: 3 / 4;
  }

  .home-page--motion .executed-card__overlay {
    min-height: 40%;
    padding: 42px 14px 14px;
  }

  .home-page--motion .executed-card__proof span:nth-child(n + 3) {
    display: none;
  }
}

.ai-support {
  gap: 8px;
}

.ai-support__toggle {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(228, 196, 122, 0.34);
  background: rgba(6, 6, 4, 0.36);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(248, 245, 240, 0.045) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ai-support__icon {
  width: 48px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.ai-support__icon img,
.ai-support__agent-avatar,
.ai-support__msg-avatar img {
  object-fit: contain;
  background: transparent;
}

.ai-support__icon img {
  filter:
    drop-shadow(0 7px 14px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 12px rgba(228, 196, 122, 0.28));
}

.ai-support__pulse {
  inset: -10px;
  background: radial-gradient(circle at 50% 50%, rgba(228, 196, 122, 0.24), transparent 56%);
}

.ai-support__badge {
  top: -4px;
  inset-inline-end: -3px;
}

[data-theme="light"] .ai-support__toggle {
  background: rgba(248, 245, 240, 0.74);
  border-color: rgba(169, 121, 36, 0.32);
}

@media (max-width: 991.98px) {
  .fargah-header nav {
    display: none;
  }

  .fargah-header .fargah-mobile-nav-panel nav,
  .fargah-header .fargah-mobile-nav-panel .fargah-mobile-nav {
    display: grid !important;
  }

  .fargah-header.is-mobile-menu-open {
    z-index: 1300;
  }

  .fargah-mobile-nav-panel {
    z-index: 1301;
  }

  .fargah-header__inner {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .fargah-header__end {
    justify-self: end;
    min-width: 0;
  }

  [dir="rtl"] .fargah-header__end {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .fargah-header__inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
    direction: ltr;
  }

  .fargah-logo {
    grid-column: 2;
    justify-self: end;
  }

  .fargah-header__end {
    grid-column: 1;
    justify-self: start !important;
  }

  [dir="ltr"] .fargah-header__inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  [dir="ltr"] .fargah-logo {
    grid-column: 1;
    justify-self: start;
  }

  [dir="ltr"] .fargah-header__end {
    grid-column: 2;
    justify-self: end !important;
  }

  .fargah-logo {
    min-width: 0;
    max-width: min(38vw, 148px);
  }

  .fargah-logo--image-only {
    width: min(38vw, 148px) !important;
    flex: 0 1 min(38vw, 148px);
  }

  .fargah-logo--image-only .fargah-logo__brand,
  .fargah-logo__brand {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    object-position: center;
    transform: scale(0.78);
    transform-origin: right center;
  }

  [dir="ltr"] .fargah-logo--image-only .fargah-logo__brand,
  [dir="ltr"] .fargah-logo__brand {
    transform-origin: left center;
  }

  .fargah-header__end {
    max-width: 58vw;
  }

  .home-page--motion .studio-hero-combined,
  .studio-hero-combined {
    position: relative;
    display: block;
    min-height: clamp(560px, 88svh, 720px);
    overflow: hidden;
  }

  .home-page--motion .studio-hero-combined__media,
  .studio-hero-combined__media {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .home-page--motion .studio-hero-combined__stage,
  .studio-hero-combined__stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
  }

  .home-page--motion .fargah-hero-slider__slide,
  .studio-hero-combined .fargah-hero-slider__slide {
    min-height: 100%;
    height: 100%;
    background-position: center center;
  }

  .home-page--motion .studio-hero-combined__frame,
  .studio-hero-combined__frame {
    position: relative;
    z-index: 4;
    min-height: clamp(560px, 88svh, 720px);
    display: grid;
    align-items: end;
    justify-items: end;
    padding: calc(var(--header-height, 88px) + 18px) 18px 118px;
    order: initial;
  }

  .home-page--motion .studio-hero-combined__intro,
  .studio-hero-combined__intro {
    width: min(330px, 78vw);
    max-width: none;
    justify-self: end;
    align-self: end;
    text-align: right;
    padding: 0;
    margin-inline: 0;
  }

  [dir="rtl"] .home-page--motion .studio-hero-combined__frame,
  [dir="rtl"] .studio-hero-combined__frame {
    justify-items: start;
  }

  [dir="rtl"] .home-page--motion .studio-hero-combined__intro,
  [dir="rtl"] .studio-hero-combined__intro {
    justify-self: start;
    text-align: right;
  }

  .home-page--motion .studio-hero__title,
  .studio-hero__title {
    font-size: clamp(1.28rem, 5.4vw, 1.85rem);
    line-height: 1.55;
  }

  .home-page--motion .studio-hero__subtitle,
  .studio-hero__subtitle {
    font-size: 0.78rem;
    line-height: 1.85;
    margin: 12px 0 18px;
  }

  .home-page--motion .studio-hero__actions,
  .studio-hero__actions {
    width: auto;
    max-width: min(330px, 100%);
    margin-inline-start: auto;
    margin-inline-end: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
  }

  .home-page--motion .studio-hero__actions .btn-fargah,
  .studio-hero__actions .btn-fargah {
    width: auto;
    min-height: 34px;
    justify-content: center;
    padding: 7px 12px;
    background-color: rgba(8, 8, 7, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .home-page--motion .studio-hero__ghost-link,
  .studio-hero__ghost-link {
    justify-content: flex-end;
    margin-top: 12px;
    margin-bottom: 0;
  }

  .home-page--motion .studio-hero-combined__shade,
  .studio-hero-combined__shade,
  [data-theme="dark"] .studio-hero-combined__shade {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.06) 0%, rgba(5, 5, 5, 0.28) 34%, rgba(5, 5, 5, 0.88) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.08) 30%, rgba(5, 5, 5, 0.72) 100%) !important;
  }

  [dir="ltr"] .home-page--motion .studio-hero-combined__frame,
  [dir="ltr"] .studio-hero-combined__frame {
    justify-items: start;
  }

  [dir="ltr"] .home-page--motion .studio-hero-combined__intro,
  [dir="ltr"] .studio-hero-combined__intro {
    justify-self: start;
    text-align: left;
  }

  [dir="ltr"] .home-page--motion .studio-hero__actions,
  [dir="ltr"] .studio-hero__actions {
    margin-inline-start: 0;
    margin-inline-end: auto;
    justify-content: flex-start;
  }

  [dir="ltr"] .home-page--motion .studio-hero__ghost-link,
  [dir="ltr"] .studio-hero__ghost-link {
    justify-content: flex-start;
  }

  [dir="ltr"] .home-page--motion .studio-hero-combined__shade,
  [dir="ltr"] .studio-hero-combined__shade,
  [dir="ltr"][data-theme="dark"] .studio-hero-combined__shade {
    background:
      linear-gradient(270deg, rgba(5, 5, 5, 0.06) 0%, rgba(5, 5, 5, 0.28) 34%, rgba(5, 5, 5, 0.88) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.08) 30%, rgba(5, 5, 5, 0.72) 100%) !important;
  }
}

@media (max-width: 430px) {
  .home-page--motion .studio-hero-combined__intro,
  .studio-hero-combined__intro {
    width: min(304px, 80vw);
  }

  .home-page--motion .studio-hero__title,
  .studio-hero__title {
    font-size: clamp(1.18rem, 5.5vw, 1.55rem);
  }
}

@media (max-width: 430px) {
  .fargah-header__end {
    gap: 4px;
  }

  .mobile-menu-toggle,
  .header-icon-btn,
  .theme-toggle,
  .locale-dropdown__trigger {
    min-width: 36px;
    min-height: 36px;
  }

  .header-icon-btn[data-search-toggle],
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-toggle span {
    width: 15px;
  }

  .locale-dropdown__label,
  .locale-dropdown__chevron {
    display: none;
  }

  .locale-dropdown__trigger {
    padding-inline: 7px;
  }

  .fargah-mobile-nav {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 993px) and (max-width: 1320px) {
  .fargah-header__inner {
    gap: 12px;
  }

  .fargah-nav {
    gap: 11px !important;
  }

  .fargah-nav > li > a {
    font-size: 0.75rem !important;
  }

  .fargah-logo__brand {
    max-width: min(244px, 24vw);
  }

  .header-icon-btn,
  .theme-toggle,
  .locale-dropdown__trigger {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .fargah-cursor,
  .motion-cursor-glow,
  .motion-particles,
  .motion-grid,
  .motion-vignette {
    display: none !important;
  }
}

/* Clean navigation pass inspired by Assistently's quiet hierarchy. */
.fargah-header__inner {
  align-items: center;
}

.fargah-nav {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  padding: 5px;
  gap: 3px !important;
  border: 1px solid rgba(248, 245, 240, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

[data-theme="light"] .fargah-nav {
  border-color: rgba(23, 20, 15, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.fargah-nav > li > a {
  min-height: 36px;
  padding: 8px 14px 9px;
  border-radius: 999px;
  color: rgba(248, 245, 240, 0.72);
  font-size: clamp(0.76rem, 0.74vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.fargah-nav > li > a::before,
.fargah-nav > li > a::after {
  display: none !important;
}

.fargah-nav > li > a:hover,
.fargah-nav > li > a:focus-visible {
  transform: translateY(-1px);
  background: rgba(248, 245, 240, 0.07);
  color: #f8f5f0;
}

.fargah-nav > li > a.active {
  background:
    linear-gradient(180deg, rgba(228, 196, 122, 0.22), rgba(200, 164, 93, 0.1));
  color: var(--ui-gold-bright) !important;
  box-shadow:
    0 0 0 1px rgba(228, 196, 122, 0.24) inset,
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.fargah-nav__item--cta > a {
  margin-inline-start: 4px;
  background: rgba(228, 196, 122, 0.14);
  color: var(--ui-gold-bright) !important;
  box-shadow: 0 0 0 1px rgba(228, 196, 122, 0.22) inset;
}

.fargah-nav__item--quick > a {
  position: relative;
  overflow: visible;
  margin-inline: 3px;
  color: var(--ui-gold-bright) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(228, 196, 122, 0.24), rgba(228, 196, 122, 0.075));
  box-shadow:
    0 0 0 1px rgba(228, 196, 122, 0.34) inset,
    0 0 0 4px rgba(228, 196, 122, 0.045),
    0 0 22px rgba(228, 196, 122, 0.14);
}

.fargah-nav__item--quick > a::after {
  content: "";
  position: absolute;
  top: 7px;
  inset-inline-end: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f7d77d;
  box-shadow: 0 0 0 6px rgba(228, 196, 122, 0.11);
  animation: fargahQuickPulse 2.4s ease-in-out infinite;
}

.fargah-nav__item--quick > a:hover,
.fargah-nav__item--quick > a:focus-visible,
.fargah-nav__item--quick > a.active {
  background: linear-gradient(135deg, rgba(239, 212, 134, 0.95), rgba(200, 164, 93, 0.95)) !important;
  color: #17140f !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 14px 34px rgba(200, 164, 93, 0.34) !important;
}

@keyframes fargahQuickPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

.fargah-nav__item--cta > a:hover,
.fargah-nav__item--cta > a:focus-visible,
.fargah-nav__item--cta > a.active {
  background: linear-gradient(135deg, #efd486, #c8a45d) !important;
  color: #17140f !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 14px 30px rgba(200, 164, 93, 0.2) !important;
}

[data-theme="light"] .fargah-nav > li > a {
  color: rgba(23, 20, 15, 0.72);
}

[data-theme="light"] .fargah-nav > li > a:hover,
[data-theme="light"] .fargah-nav > li > a:focus-visible {
  background: rgba(169, 121, 36, 0.08);
  color: #17140f;
}

[data-theme="light"] .fargah-nav > li > a.active {
  background: rgba(169, 121, 36, 0.12);
  color: #6f4d16 !important;
  box-shadow: 0 0 0 1px rgba(169, 121, 36, 0.22) inset;
}

.motion-scroll-progress {
  top: 50% !important;
  right: clamp(14px, 2.6vw, 34px) !important;
  left: auto !important;
  width: 18px !important;
  height: min(340px, 42vh) !important;
  transform: translateY(-50%);
  z-index: 1090;
}

.motion-scroll-progress::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(228, 196, 122, 0.34), transparent);
}

.motion-scroll-progress__bar {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px !important;
  height: 10px;
  border: 1px solid rgba(248, 245, 240, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(248, 245, 240, 0.95) 0 18%, rgba(228, 196, 122, 0.78) 19% 34%, rgba(8, 8, 7, 0.85) 35%);
  box-shadow:
    0 0 0 5px rgba(248, 245, 240, 0.05),
    0 0 20px rgba(228, 196, 122, 0.18);
  transform: translate(-50%, 0);
  transition: transform 0.08s linear;
}

[data-theme="light"] .motion-scroll-progress::before {
  background: linear-gradient(180deg, transparent, rgba(23, 20, 15, 0.28), transparent);
}

[data-theme="light"] .motion-scroll-progress__bar {
  border-color: rgba(169, 121, 36, 0.56);
  background:
    radial-gradient(circle, #17140f 0 18%, #a97924 19% 34%, rgba(248, 245, 240, 0.92) 35%);
  box-shadow:
    0 0 0 5px rgba(169, 121, 36, 0.08),
    0 0 18px rgba(169, 121, 36, 0.14);
}

@media (max-width: 991.98px) {
  .fargah-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .fargah-header__end {
    padding: 4px;
    border: 1px solid rgba(248, 245, 240, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
  }

  [data-theme="light"] .fargah-header__end {
    border-color: rgba(23, 20, 15, 0.1);
    background: rgba(255, 255, 255, 0.46);
  }

  .fargah-mobile-nav-panel {
    inset-inline: clamp(8px, 2.8vw, 16px);
    top: calc(100% + 8px);
    max-height: min(72svh, 560px);
    overflow-y: auto;
    border-radius: 24px;
    border-color: rgba(228, 196, 122, 0.28);
    background:
      linear-gradient(180deg, rgba(24, 23, 20, 0.96), rgba(6, 6, 4, 0.97)),
      radial-gradient(circle at 85% 0%, rgba(228, 196, 122, 0.16), transparent 36%);
  }

  .fargah-mobile-nav-panel .fargah-container {
    width: 100%;
    padding: 12px;
  }

  .fargah-mobile-nav {
    grid-template-columns: 1fr !important;
    gap: 7px;
  }

  .fargah-mobile-nav a {
    position: relative;
    min-height: 46px;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 16px;
    border-color: rgba(248, 245, 240, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(248, 245, 240, 0.82);
    font-size: 0.86rem;
    text-align: start;
  }

  .fargah-mobile-nav a::after {
    content: "";
    width: 7px;
    height: 7px;
    border: 1px solid rgba(228, 196, 122, 0.7);
    border-radius: 50%;
    opacity: 0.42;
    flex: 0 0 auto;
  }

  .fargah-mobile-nav a.active,
  .fargah-mobile-nav a:hover,
  .fargah-mobile-nav a:focus-visible {
    background: rgba(228, 196, 122, 0.1);
    border-color: rgba(228, 196, 122, 0.36);
    color: var(--ui-gold-bright);
  }

  .fargah-mobile-nav__cta {
    margin-top: 4px;
    justify-content: center !important;
    background: linear-gradient(135deg, #efd486, #c8a45d) !important;
    color: #17140f !important;
    box-shadow: 0 16px 36px rgba(200, 164, 93, 0.17);
  }

  .fargah-mobile-nav__quick {
    color: var(--ui-gold-bright) !important;
    background: rgba(228, 196, 122, 0.11) !important;
    border-color: rgba(228, 196, 122, 0.34) !important;
  }

  .fargah-mobile-nav__cta::after {
    display: none;
  }

  .motion-scroll-progress {
    display: none !important;
  }
}

@media (min-width: 993px) and (max-width: 1320px) {
  .fargah-nav {
    gap: 2px !important;
    padding: 4px;
  }

  .fargah-nav > li > a {
    padding-inline: 10px;
    font-size: 0.72rem !important;
  }
}

@media (min-width: 1321px) {
  .fargah-nav > li > a {
    padding-inline: 15px;
  }
}

/* Restore the classic Fargah nav treatment after the experimental pill pass. */
.fargah-nav {
  width: auto !important;
  padding: 0 !important;
  gap: clamp(16px, 2.1vw, 28px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fargah-nav > li > a,
.fargah-nav__dropdown-trigger,
.fargah-nav__item--quick > a,
.fargah-nav__item--cta > a {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 2px 10px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  transform: none !important;
}

.fargah-header--overlay .fargah-nav > li > a,
.fargah-header--overlay .fargah-nav__dropdown-trigger,
[data-theme="dark"] .fargah-viewer__screen .fargah-nav > li > a {
  color: rgba(248, 245, 240, 0.78) !important;
}

.fargah-nav > li > a::before,
.fargah-nav__dropdown-trigger::before {
  display: block !important;
  content: "" !important;
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-gold);
  transition: width 0.28s ease;
}

.fargah-nav > li > a::after {
  display: none !important;
}

.fargah-nav > li > a:hover,
.fargah-nav > li > a:focus-visible,
.fargah-nav > li > a.active,
.fargah-nav__dropdown-trigger:hover,
.fargah-nav__dropdown-trigger:focus-visible,
.fargah-nav__dropdown-trigger.active,
[data-theme="light"] .fargah-nav > li > a:hover,
[data-theme="light"] .fargah-nav > li > a:focus-visible,
[data-theme="light"] .fargah-nav > li > a.active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--accent-gold-text) !important;
}

.fargah-nav > li > a:hover::before,
.fargah-nav > li > a:focus-visible::before,
.fargah-nav > li > a.active::before,
.fargah-nav__dropdown-trigger:hover::before,
.fargah-nav__dropdown-trigger:focus-visible::before,
.fargah-nav__dropdown-trigger.active::before {
  width: 100%;
}

.fargah-nav__item--projects {
  position: relative;
}

.fargah-nav__dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  font-family: inherit;
  font-size: clamp(0.76rem, 0.74vw, 0.88rem);
  font-weight: 900;
  line-height: 1.35;
  cursor: pointer;
}

.fargah-nav__dropdown-trigger svg {
  transition: transform 180ms ease;
}

.fargah-nav__item--projects:hover .fargah-nav__dropdown-trigger svg,
.fargah-nav__item--projects:focus-within .fargah-nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.fargah-nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  min-width: 240px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(228, 196, 122, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(228, 196, 122, 0.16), transparent 34%),
    rgba(10, 10, 8, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1200;
}

[dir="rtl"] .fargah-nav__dropdown {
  transform: translate(50%, 8px);
}

.fargah-nav__item--projects:hover .fargah-nav__dropdown,
.fargah-nav__item--projects:focus-within .fargah-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

[dir="rtl"] .fargah-nav__item--projects:hover .fargah-nav__dropdown,
[dir="rtl"] .fargah-nav__item--projects:focus-within .fargah-nav__dropdown {
  transform: translate(50%, 0);
}

.fargah-nav__dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 13px;
  color: rgba(248, 245, 240, 0.78);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.fargah-nav__dropdown a::after {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid rgba(228, 196, 122, 0.65);
  border-radius: 50%;
  opacity: 0.6;
}

.fargah-nav__dropdown a:hover,
.fargah-nav__dropdown a:focus-visible,
.fargah-nav__dropdown a.active {
  color: var(--ui-gold-bright);
  background: rgba(228, 196, 122, 0.1);
  box-shadow: inset 0 0 0 1px rgba(228, 196, 122, 0.28);
}

[data-theme="light"] .fargah-nav__dropdown {
  background:
    radial-gradient(circle at 80% 0%, rgba(169, 121, 36, 0.16), transparent 34%),
    rgba(248, 245, 240, 0.96);
  border-color: rgba(169, 121, 36, 0.22);
  box-shadow: 0 22px 60px rgba(61, 48, 24, 0.16);
}

[data-theme="light"] .fargah-nav__dropdown a {
  color: rgba(23, 20, 15, 0.72);
  background: rgba(23, 20, 15, 0.035);
}

[data-theme="light"] .fargah-nav__dropdown a:hover,
[data-theme="light"] .fargah-nav__dropdown a:focus-visible,
[data-theme="light"] .fargah-nav__dropdown a.active {
  color: #6f4d16;
  background: rgba(169, 121, 36, 0.1);
}

.fargah-mobile-nav__group {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(228, 196, 122, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.fargah-mobile-nav__group > span {
  color: var(--ui-gold-bright);
  font-size: 0.76rem;
  font-weight: 950;
  padding-inline: 5px;
}

.fargah-mobile-nav__group a {
  margin: 0;
}

@media (max-width: 768px) {
  .home-page--motion .studio-hero-combined,
  .studio-hero-combined {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
    overflow: visible;
    background: #050504;
  }

  .home-page--motion .studio-hero-combined__media,
  .studio-hero-combined__media {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 0;
    order: 1;
    overflow: hidden;
  }

  .home-page--motion .studio-hero-combined__stage,
  .studio-hero-combined__stage {
    position: absolute;
    inset: 0;
    height: auto;
    pointer-events: none;
  }

  .home-page--motion .studio-hero-combined__stage .fargah-hero-slider__arrow,
  .studio-hero-combined__stage .fargah-hero-slider__arrow,
  .home-page--motion .studio-hero-combined__stage .fargah-hero-slider__footer,
  .studio-hero-combined__stage .fargah-hero-slider__footer {
    pointer-events: auto;
  }

  .home-page--motion .fargah-hero-slider__viewport,
  .studio-hero-combined .fargah-hero-slider__viewport,
  .home-page--motion .fargah-hero-slider__track,
  .studio-hero-combined .fargah-hero-slider__track {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .home-page--motion .fargah-hero-slider__track,
  .studio-hero-combined .fargah-hero-slider__track {
    display: flex;
  }

  .home-page--motion .fargah-hero-slider__slide,
  .studio-hero-combined .fargah-hero-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 0;
    height: 100%;
    background-position: center center;
  }

  .home-page--motion .studio-hero-combined__frame,
  .studio-hero-combined__frame {
    position: relative;
    z-index: 4;
    order: 2;
    min-height: 0;
    display: grid;
    align-items: start;
    justify-items: stretch;
    padding: 18px 20px 86px;
  }

  .home-page--motion .studio-hero-combined__intro,
  .studio-hero-combined__intro,
  [dir="rtl"] .home-page--motion .studio-hero-combined__intro,
  [dir="rtl"] .studio-hero-combined__intro {
    width: min(340px, 100%);
    justify-self: end;
    text-align: right;
  }

  [dir="ltr"] .home-page--motion .studio-hero-combined__intro,
  [dir="ltr"] .studio-hero-combined__intro {
    justify-self: start;
    text-align: left;
  }

  .home-page--motion .studio-hero__actions,
  .studio-hero__actions {
    justify-content: flex-end;
    gap: 8px;
  }

  [dir="ltr"] .home-page--motion .studio-hero__actions,
  [dir="ltr"] .studio-hero__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .home-page--motion .studio-hero-combined__intro,
  .studio-hero-combined__intro {
    width: min(320px, calc(100vw - 40px)) !important;
  }

  .home-page--motion .studio-hero__title,
  .studio-hero__title {
    max-width: 100%;
    font-size: clamp(1.12rem, 5vw, 1.42rem) !important;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  .home-page--motion .studio-hero__subtitle,
  .studio-hero__subtitle {
    font-size: 0.74rem;
  }

  .home-page--motion .studio-hero__actions .btn-fargah,
  .studio-hero__actions .btn-fargah {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.68rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .home-page--motion .studio-hero-combined,
  .studio-hero-combined {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    grid-template-rows: auto;
    min-height: calc(100svh - var(--header-height, 76px));
  }

  .home-page--motion .studio-hero-combined__media,
  .studio-hero-combined__media {
    height: calc(100svh - var(--header-height, 76px));
    aspect-ratio: auto;
  }

  .home-page--motion .studio-hero-combined__frame,
  .studio-hero-combined__frame {
    order: initial;
    align-items: center;
    padding: 18px clamp(18px, 3vw, 28px) 72px;
  }
}
