.home-hero {
    position: relative;
    display: grid;
    min-height: 520px;
    aspect-ratio: 16 / 9;
    isolation: isolate;
    overflow: hidden;
    background: #151b19;
    color: #fff;
    text-align: right;
    font-family: iransans-medium, Tahoma, sans-serif;
}
.home-hero *, .home-hero h1, .home-hero p, .home-hero a, .home-hero button { font-family: inherit; }
.home-hero__video, .home-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero__video {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    transform: none;
    z-index: 0;
}
.home-hero__shade {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(16, 20, 19, .74), rgba(20, 23, 20, .38) 40%, rgba(25, 23, 17, .06) 85%),
        linear-gradient(0deg, rgba(14, 19, 17, .65), transparent 42%);
}
.home-hero__inner {
    position: relative;
    z-index: 2;
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(48px, 5vw, 88px);
    padding-bottom: clamp(28px, 3vw, 48px);
}
.home-hero__content { max-width: 480px; margin-top: auto; margin-bottom: 36px; padding-inline-start: 22px; border-inline-start: 1px solid #e6c39545; }
.home-hero .home-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #e9cfaa;
    font-size: 11px;
    line-height: 2;
}
.home-hero__eyebrow > span { width: 34px; height: 1px; background: #d1ad78; }
.home-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-family: iransans-bold, Tahoma, sans-serif;
    font-size: clamp(27px, 2.6vw, 40px);
    font-weight: 700;
    line-height: 1.85;
    letter-spacing: -.6px;
}
.home-hero h1 span { display: block; color: #e6c395; font-size: .64em; font-family: iransans-medium, Tahoma, sans-serif; font-weight: 400; letter-spacing: 0; margin-top: 5px; }
.home-hero .home-hero__description { max-width: 420px; margin: 0 0 24px; color: #d5dbd6; font-size: 13px; line-height: 2.3; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .home-hero__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
    transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.home-hero .home-hero__button--primary { background: linear-gradient(120deg, #f1d6ad, #d8b37d); border-color: #e6c395; color: #20241f; box-shadow: 0 8px 30px #0003; }
.home-hero .home-hero__button--primary:hover { background: #f3d9b7; border-color: #f3d9b7; }
.home-hero .home-hero__button--secondary { background: rgba(15, 22, 23, .24); backdrop-filter: blur(8px); }
.home-hero .home-hero__button--secondary:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.home-hero .home-hero__button:hover { transform: translateY(-3px); box-shadow: 0 12px 32px #0004; }
.home-hero__button--primary > span { font-size: 22px; }
.home-hero__frame { position: absolute; inset: 24px; z-index: 1; border: 1px solid rgba(239, 215, 176, .2); pointer-events: none; }
.home-hero__frame::before, .home-hero__frame::after { content: ''; position: absolute; width: 54px; height: 54px; border-color: #d8b37d; border-style: solid; }
.home-hero__frame::before { right: -1px; top: -1px; border-width: 1px 1px 0 0; }
.home-hero__frame::after { left: -1px; bottom: -1px; border-width: 0 0 1px 1px; }
.home-hero h1 { text-shadow: 0 4px 32px #0005; text-wrap: balance; }
.home-hero__eyebrow > span { box-shadow: 0 0 18px #e6c39670; }
.home-hero__visualizer { display: flex; align-items: center; justify-content: center; gap: 5px; height: 38px; padding: 0 8px; }
.home-hero__visualizer i { display: block; width: 2px; height: 26px; border-radius: 3px; background: #e6c395; transform: scaleY(.4); }
.home-hero__visualizer i:nth-child(3n) { height: 38px; }
.home-hero__visualizer i:nth-child(2n) { height: 18px; }
.home-hero__timeline { position: absolute; z-index: 2; bottom: 0; inset-inline: 0; height: 2px; background: #ffffff15; overflow: hidden; }
.home-hero__timeline span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #a98351, #f3dbb8); transform-origin: right; }
/* Text stays in the document and keeps its space throughout each cycle. */
.home-hero--motion .home-hero__eyebrow,
.home-hero--motion h1,
.home-hero--motion .home-hero__description { animation: hero-copy-cycle 10s cubic-bezier(.2, .7, .2, 1) infinite both; }
.home-hero--motion .home-hero__eyebrow { animation-delay: .1s; }
.home-hero--motion h1 { animation-delay: .55s; }
.home-hero--motion .home-hero__description { animation-delay: 1s; }
.home-hero--motion .home-hero__signature { animation: hero-signature-in 1.1s .1s cubic-bezier(.16, 1, .3, 1) both; }
.home-hero--motion .home-hero__timeline span { animation: hero-timeline 10s linear infinite; }
.home-hero--motion .home-hero__visualizer i { animation: hero-wave 1.8s ease-in-out infinite alternate; }
.home-hero--motion .home-hero__visualizer i:nth-child(2n) { animation-delay: -.7s; }
.home-hero--motion .home-hero__visualizer i:nth-child(3n) { animation-delay: -1.2s; }
.home-hero--motion .home-hero__visualizer i:nth-child(5n) { animation-delay: -.3s; }
@keyframes hero-copy-cycle {
    0% { opacity: 0; transform: translate3d(24px, 30px, 0); filter: blur(8px); clip-path: inset(0 0 100% 0); }
    12%, 78% { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); clip-path: inset(-15% -10% -15% -10%); }
    87%, 100% { opacity: 0; transform: translate3d(0, -20px, 0); filter: blur(5px); clip-path: inset(-15% -10% -15% -10%); }
}
@keyframes hero-signature-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-timeline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-wave { from { transform: scaleY(.25); opacity: .45; } to { transform: scaleY(1); opacity: 1; } }
.home-hero__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.home-hero .home-hero__signature { margin: 0; color: #eee4d5; font-size: 13px; line-height: 2; }
.home-hero__signature span { display: block; color: #c4cac7; font-size: 11px; }
.home-hero a:focus-visible { outline: 3px solid #f3d9b7; outline-offset: 5px; }
@media (max-width: 991px) {
    .home-hero { min-height: 540px; aspect-ratio: auto; }
    .home-hero__inner { min-height: 540px; padding: 38px 30px 26px; }
    .home-hero__content { max-width: 460px; margin-top: auto; margin-bottom: 28px; padding-inline-start: 16px; }
    .home-hero__frame { inset: 12px; }
    .home-hero h1 { font-size: clamp(23px, 5.5vw, 32px); line-height: 1.8; letter-spacing: -.4px; }
    .home-hero h1 span { font-size: .67em; }
    .home-hero .home-hero__eyebrow { font-size: 10px; margin-bottom: 14px; }
    .home-hero .home-hero__description { max-width: 420px; margin-bottom: 22px; font-size: 12px; line-height: 2.1; }
    .home-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .home-hero .home-hero__button { min-height: 44px; padding: 10px 14px; font-size: 11px; gap: 12px; }
    .home-hero__button--primary > span { font-size: 18px; }
    .home-hero__footer { padding-top: 18px; gap: 12px; }
    .home-hero .home-hero__signature, .home-hero__signature span { font-size: 10px; }
    .home-hero__visualizer { flex-shrink: 0; gap: 3px; height: 28px; padding: 0; }
    .home-hero__visualizer i { height: 18px; }
    .home-hero__visualizer i:nth-child(3n) { height: 26px; }
    .home-hero__visualizer i:nth-child(2n) { height: 12px; }
    .home-hero__shade {
        background: linear-gradient(270deg, rgba(13, 19, 16, .66), rgba(13, 19, 16, .18)),
            linear-gradient(0deg, rgba(13, 19, 16, .78), transparent 60%);
    }
    .home-hero--motion .home-hero__eyebrow,
    .home-hero--motion h1,
    .home-hero--motion .home-hero__description { animation-name: hero-mobile-copy; }
}
@keyframes hero-mobile-copy {
    0% { opacity: 0; transform: translate3d(12px, 18px, 0); clip-path: inset(0 0 100% 0); }
    12%, 83% { opacity: 1; transform: translate3d(0, 0, 0); clip-path: inset(-15% -10% -15% -10%); }
    91%, 100% { opacity: 0; transform: translate3d(0, -12px, 0); clip-path: inset(-15% -10% -15% -10%); }
}
@media (max-width: 359px) {
    .home-hero__inner { padding-inline: 22px; }
    .home-hero__content { padding-inline-start: 12px; }
    .home-hero .home-hero__button { gap: 8px; padding-inline: 12px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero .home-hero__button { transition: none; }
    .home-hero--motion .home-hero__eyebrow,
    .home-hero--motion h1,
    .home-hero--motion .home-hero__description {
        animation-name: hero-copy-fade;
        transform: none;
        filter: none;
        clip-path: none;
    }
    .home-hero--motion .home-hero__signature,
    .home-hero--motion .home-hero__visualizer i,
    .home-hero--motion .home-hero__timeline span { animation: none; }
}
@keyframes hero-copy-fade {
    0% { opacity: 0; }
    14%, 80% { opacity: 1; }
    94%, 100% { opacity: 0; }
}
