.beta-home {
    --figma-paper: #f8f5f0;
    --figma-paper-deep: #f1ebe3;
    --figma-texture: #ede6dd;
    --figma-sand: #ded3c4;
    --figma-ink: #2b2420;
    --figma-red: #812918;
    --figma-red-strong: #89291b;
    --figma-focus: #176a9a;
    color: var(--figma-red);
    background: var(--figma-paper);
}

.beta-home .page-shell {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
    overflow: clip;
}

@supports (padding: max(0px)) {
    .beta-home .site-header,
    .beta-home .site-footer {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

.beta-home .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.beta-home :focus-visible {
    outline: 3px solid var(--figma-focus);
    outline-offset: 4px;
}

.beta-home a,
.beta-home button,
.beta-home summary {
    touch-action: manipulation;
}

.beta-home main[id],
.beta-home main [id] { scroll-margin-top: 6rem; }

.beta-home .site-header {
    position: relative;
    isolation: isolate;
    border: 0;
    background: #fffdf9;
    backdrop-filter: none;
}

.beta-home .site-header::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 -2.35rem;
    background-color: #fffdf9;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 97% 78%, 94% 73%, 91% 82%, 87% 76%, 83% 84%, 79% 74%, 74% 80%, 70% 75%, 65% 84%, 61% 76%, 56% 82%, 51% 74%, 47% 85%, 42% 76%, 37% 81%, 32% 73%, 27% 82%, 22% 75%, 17% 84%, 12% 74%, 7% 81%, 3% 75%, 0 80%);
    pointer-events: none;
}

.beta-home .nav-shell {
    z-index: 1;
    width: min(1740px, calc(100% - 3rem));
    min-height: 116px;
    padding-block: .45rem 1.25rem;
    gap: clamp(1rem, 2.2vw, 2.6rem);
}

.beta-home .brand {
    width: clamp(158px, 12.25vw, 232px);
    height: 50px;
}

.beta-home .brand img,
.beta-home .footer-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.beta-home .desktop-primary-nav,
.beta-home .desktop-account-nav {
    color: var(--figma-red);
    font-size: clamp(.92rem, 1.26vw, 1.5rem);
}

.beta-home .desktop-primary-nav { gap: clamp(1rem, 2vw, 2.2rem); }

.beta-home .nav-cta {
    min-width: 162px;
    min-height: 50px;
    justify-content: center;
    color: white;
    background: var(--figma-red);
    border-radius: 12px;
}

.beta-home .language-link {
    color: var(--figma-red);
    border: 0;
    background: url("../images/figma-home/language-ring.svg") center / contain no-repeat;
}

.beta-home .button,
.beta-home button.button {
    min-height: 50px;
    padding: .72rem 1.65rem;
    border-radius: 999px;
    font-size: .98rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.beta-home .button.primary {
    color: white;
    border-color: var(--figma-red);
    background: var(--figma-red);
    box-shadow: 0 8px 24px rgb(129 41 24 / 16%);
}

.beta-home .button.primary:hover {
    background: var(--figma-red-strong);
    box-shadow: 0 12px 30px rgb(129 41 24 / 24%);
    transform: translateY(-2px);
}

.beta-home .button.primary:active {
    box-shadow: 0 4px 14px rgb(129 41 24 / 18%);
    transform: translateY(1px);
}

.figma-hero {
    width: min(1840px, calc(100% - 3rem));
    min-height: clamp(690px, 48vw, 920px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(31rem, .85fr);
    grid-template-areas: "visual copy";
    align-items: center;
    gap: clamp(1rem, 2.4vw, 3.5rem);
    margin-inline: auto;
    padding: clamp(3.2rem, 6vw, 7rem) clamp(.5rem, 2vw, 2.5rem) 1rem;
    direction: ltr;
}

.figma-hero-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--figma-red);
    text-align: center;
    direction: rtl;
    transform: translate(.7rem, -2.45rem);
}

html[dir="ltr"] .figma-hero-copy {
    direction: ltr;
    transform: translateY(-1.5rem);
}

html[dir="ltr"] .figma-hero-logo {
    width: min(100%, 751px);
    max-width: 100%;
}

html[dir="ltr"] .figma-hero-kicker {
    max-width: 18ch;
    font-size: clamp(1.55rem, 3vw, 3.5rem);
    line-height: 1.2;
    white-space: normal;
    transform: none;
}

.figma-hero-logo {
    width: min(100%, 751px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1907 / 810;
    display: block;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.figma-hero-kicker {
    max-width: none;
    margin: clamp(-2.85rem, -2.4vw, -1rem) 0 1.15rem;
    color: var(--figma-red);
    font-size: clamp(1.55rem, 3.38vw, 4rem);
    font-weight: 800;
    line-height: 1.55;
    text-wrap: balance;
    white-space: nowrap;
    transform: scaleX(.72);
    transform-origin: center;
}

.figma-hero-kicker-art { display: none; }

.figma-hero-title {
    max-width: 24ch;
    margin: .35rem 0 .65rem;
    color: var(--figma-ink);
    font-size: clamp(1.55rem, 2.2vw, 2.45rem);
    line-height: 1.25;
}

.figma-hero-description {
    max-width: 44ch;
    margin: 0 0 1.3rem;
    color: rgb(43 36 32 / 78%);
    font-size: clamp(.9rem, 1vw, 1.05rem);
    line-height: 1.9;
}

html[lang^="fa"] .figma-hero-kicker {
    position: relative;
    width: min(100%, 513px);
    max-width: 100%;
    aspect-ratio: 513 / 99;
    overflow: visible;
    transform: none;
}

html[lang^="fa"] .figma-hero-kicker-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html[lang^="fa"] .figma-hero-kicker-art {
    position: absolute;
    inset: 1px 0 auto;
    width: 100%;
    height: auto;
    display: block;
}

.figma-hero-copy .button {
    width: 244px;
    min-width: 244px;
    height: 70px;
    min-height: 70px;
    justify-content: center;
    padding: .4rem .75rem;
    font-size: clamp(1rem, 1.7vw, 2rem);
    line-height: 1.2;
    white-space: nowrap;
    transform: translateX(2rem);
}

.figma-hero-copy .button:hover { transform: translate(2rem, -2px); }
.figma-hero-copy .button:active { transform: translate(2rem, 1px); }

html[dir="ltr"] .figma-hero-copy .button {
    width: auto;
    min-width: 200px;
    height: 60px;
    min-height: 60px;
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    transform: none;
}

html[dir="ltr"] .figma-hero-copy .button:hover { transform: translateY(-2px); }
html[dir="ltr"] .figma-hero-copy .button:active { transform: translateY(1px); }

.figma-collage {
    grid-area: visual;
    position: relative;
    width: 100%;
    min-height: clamp(600px, 50vw, 940px);
    isolation: isolate;
}

.polaroid {
    --rotation: 0deg;
    position: absolute;
    z-index: 2;
    width: clamp(150px, 16vw, 294px);
    margin: 0;
    padding: clamp(.55rem, .8vw, .9rem) clamp(.55rem, .8vw, .9rem) clamp(2.5rem, 3.4vw, 4.2rem);
    background: white;
    box-shadow: 0 6px 18px rgb(43 36 32 / 18%);
    transform: rotate(var(--rotation));
    transform-origin: 50% 55%;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.polaroid::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset-block-start: -7%;
    inset-inline-start: 18%;
    width: 64%;
    height: 17%;
    opacity: .86;
    background-image: url("../images/figma-home/tape.webp");
    background-size: 220% 600%;
    background-position: 15% 68%;
    background-repeat: no-repeat;
    transform: rotate(-2deg);
}

.polaroid img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.polaroid-one { --rotation: -6.5deg; inset: 8% auto auto 7%; }
.polaroid-two { --rotation: 0deg; inset: 5% auto auto 39%; padding-block-end: clamp(2rem, 2.8vw, 3.2rem); }
.polaroid-two img { aspect-ratio: 1.55; }
.polaroid-three { --rotation: 12.6deg; inset: 18% 2% auto auto; }
.polaroid-four { --rotation: 5.2deg; inset: 53% auto auto 9%; }
.polaroid-five { --rotation: -4.2deg; inset: 42% auto auto 39%; }
.polaroid-six { --rotation: 8.5deg; inset: auto 5% 2% auto; padding-block-end: clamp(2rem, 2.6vw, 3.1rem); }
.polaroid-six img { aspect-ratio: 1.55; }

.polaroid-three::before { background-position: 86% 8%; transform: rotate(8deg); }
.polaroid-four::before { background-position: 22% 96%; transform: rotate(8deg); }
.polaroid-five::before { background-position: 88% 48%; transform: rotate(-7deg); }
.polaroid-six::before { background-position: 84% 63%; transform: rotate(5deg); }

.figma-doodle {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    background-image: url("../images/figma-home/doodles.webp");
    background-repeat: no-repeat;
    pointer-events: none;
}

.figma-doodle-heart {
    left: 68.49%; top: 1.16%; width: 6.90%; height: 20.86%;
    background-size: 1896.296% auto;
    background-position: 19.485% 33.110%;
}

.figma-doodle-chevrons {
    left: 24.12%; top: 37.37%; width: 13.72%; height: 10.69%;
    background-size: 1508.958% auto;
    background-position: 57.321% 68.303%;
}

.figma-doodle-star {
    left: 3.68%; top: 37.37%; width: 6.90%; height: 20.86%;
    background-size: 2438.095% auto;
    background-position: 4.582% 41.135%;
}

.figma-doodle-butterfly {
    left: 66.37%; top: 59.92%; width: 10.53%; height: 9.31%;
    background-size: 926.705% auto;
    background-position: 83.333% 24.068%;
}

.figma-doodle-flower {
    left: 48.85%; top: 70.79%; width: 9.46%; height: 21.79%;
    background-size: 1575.385% auto;
    background-position: 50.469% 54.867%;
}

.figma-doodle-swoop {
    left: 13.44%; top: 91.26%; width: 33.78%; height: 44.72%;
    background-size: 436.457% auto;
    background-position: .721% 14.987%;
}

.figma-manifesto {
    position: relative;
    width: min(1550px, calc(100% - 3rem));
    display: grid;
    place-items: center;
    margin: clamp(3.5rem, 3.53vw, 4.2rem) auto clamp(3rem, 4vw, 4.75rem);
    padding-block: 1.5rem;
    text-align: center;
}

.figma-manifesto h1,
.figma-manifesto h2 {
    max-width: none;
    margin: 0;
    color: var(--figma-red);
    font-size: clamp(2.35rem, 3.38vw, 4rem);
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.figma-video-label {
    position: absolute;
    inset-inline: 1.25rem;
    inset-block-end: 1.25rem;
    padding: .65rem .9rem;
    color: white;
    background: rgb(43 36 32 / 88%);
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
}

.figma-steps {
    width: min(1627px, calc(100% - 3rem));
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-inline: auto;
}

.figma-steps > .story-card {
    min-width: 0;
    min-height: 0;
    display: block;
    padding: 0;
    color: inherit;
    background: transparent;
}

.figma-steps > .story-card:nth-of-type(1) { flex: 0 0 36.88%; z-index: 3; }
.figma-steps > .story-card:nth-of-type(2) { flex: 0 0 41.67%; margin-inline-start: -9.22%; z-index: 2; }
.figma-steps > .story-card:nth-of-type(3) { flex: 0 0 39.89%; margin-inline-start: -9.22%; z-index: 1; }
.figma-steps > .story-card:nth-of-type(2) .figma-step-card,
.figma-steps > .story-card:nth-of-type(3) .figma-step-card {
    padding-inline-start: calc(clamp(2rem, 3vw, 3.5rem) + min(150px, 9.22vw));
}

.figma-step-card {
    position: relative;
    min-height: clamp(250px, 18.94vw, 359px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(2rem, 3vw, 3.5rem);
    border-radius: clamp(24px, 2.3vw, 40px);
    text-align: start;
}

.figma-step-card h3 {
    margin-block: 1rem .5rem;
    color: inherit;
    font-size: clamp(1.45rem, 2.15vw, 2.5rem);
}

.figma-step-card p {
    max-width: 40ch;
    margin: 0;
    color: inherit;
    opacity: .72;
    font-size: clamp(.88rem, 1.22vw, 1.05rem);
}

.figma-step-icon {
    position: absolute;
    inset-block-start: clamp(1.4rem, 2.2vw, 2.5rem);
    inset-inline-end: clamp(1.7rem, 2.8vw, 3.2rem);
    width: clamp(36px, 3vw, 55px);
    height: clamp(34px, 2.8vw, 52px);
    object-fit: contain;
}

.figma-step-card-red { color: var(--figma-paper-deep); background: var(--figma-red-strong); }
.figma-step-card-dark { color: var(--figma-paper-deep); background: var(--figma-ink); }
.figma-step-card-sand { color: #000; background: var(--figma-sand); }

.figma-guide-link {
    flex: 0 0 auto;
    margin: 5.8rem auto 0;
    color: rgb(129 41 24 / 78%);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    text-decoration: underline;
    text-underline-offset: .35em;
    transition: color 180ms ease;
}

.figma-guide-link:hover { color: var(--figma-red); }

.home-trailer {
    position: relative;
    width: min(1740px, calc(100% - 3rem));
    min-height: clamp(430px, 25.4vw, 480px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(28rem, .8fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 8rem);
    margin: clamp(7rem, 9.28vw, 11rem) auto clamp(5rem, 5.33vw, 6.35rem);
    padding: 0;
    direction: ltr;
}

.home-trailer > .story-card {
    min-width: 0;
    min-height: 0;
    grid-column: auto;
    display: block;
    padding: 0;
    color: inherit;
    background: transparent;
}

.figma-video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    border-radius: clamp(30px, 3.6vw, 60px);
    overflow: hidden;
    background: #241d19;
    box-shadow: 0 16px 55px rgb(43 36 32 / 5%);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.figma-video-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.figma-video-card:hover {
    box-shadow: 0 24px 70px rgb(43 36 32 / 12%);
    transform: translateY(-5px);
}

.figma-play {
    width: clamp(120px, 15vw, 260px);
    height: clamp(120px, 15vw, 260px);
    display: block;
}

.figma-trailer-copy {
    position: relative;
    color: var(--figma-red);
    direction: rtl;
}

html[dir="ltr"] .figma-trailer-copy { direction: ltr; }

.figma-trailer-copy::before {
    content: "";
    position: absolute;
    width: clamp(150px, 10.25vw, 194px);
    aspect-ratio: 201.348 / 247.578;
    left: clamp(-116px, -5.6vw, -82px);
    top: -96px;
    background: url("../images/figma-home/camera-line.svg") center / contain no-repeat;
    transform: rotate(61.36deg);
    transform-origin: center;
    pointer-events: none;
}

.figma-trailer-copy h2 {
    max-width: 10ch;
    margin: 0 0 2.2rem;
    color: var(--figma-red);
    font-size: clamp(3rem, 5.8vw, 6rem);
    font-weight: 800;
    line-height: 1.28;
}

.figma-trailer-lead {
    margin: 0;
    color: var(--figma-red);
    font-size: clamp(1.2rem, 2vw, 2.15rem);
}

.home-cta {
    width: min(1740px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 0;
    color: var(--figma-red);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-cta > .story-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    display: block;
    padding: 0;
    color: inherit;
    background: transparent;
}

.figma-invitation {
    position: relative;
    min-height: clamp(480px, 31.8vw, 603px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(3rem, 5vw, 5.6rem);
    color: var(--figma-red);
    border-radius: clamp(34px, 5.3vw, 100px);
    background-color: var(--figma-texture);
    background-image: url("../images/figma-home/invitation-paper.png");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-align: center;
}

.home-cta .figma-invitation > p {
    max-width: 1032px;
    margin: 0 0 1.5rem;
    color: var(--figma-red);
    font-size: clamp(1.08rem, 2.1vw, 2.5rem);
    line-height: 1.35;
}

.figma-invitation h2 {
    max-width: 24ch;
    margin: 0;
    color: var(--figma-red);
    font-size: clamp(2rem, 3.7vw, 4rem);
    font-weight: 800;
    line-height: 1.45;
}

.figma-invitation .button-row {
    justify-content: center;
    margin-block-start: 2.2rem;
}

.figma-performance-asset { display: none; }

.home-certificates {
    position: relative;
    width: min(1880px, calc(100% - 1.5rem));
    min-height: clamp(240px, 23vw, 435px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 280px);
    align-items: center;
    gap: 3rem;
    margin: clamp(2rem, 2.53vw, 3rem) auto clamp(2rem, 1.95vw, 2.3125rem);
    padding: clamp(2rem, 5vw, 5.5rem) clamp(2rem, 6vw, 7rem);
    overflow: hidden;
    color: var(--figma-red);
    border-radius: 0 0 clamp(40px, 6vw, 114px) 0;
    background-color: var(--figma-paper-deep);
    background-image: linear-gradient(125deg, rgb(255 255 255 / 24%), transparent 46%);
}

.figma-trust-copy {
    justify-self: end;
    max-width: 58rem;
    text-align: start;
}

html[dir="rtl"] .figma-trust-copy { justify-self: start; }

.home-certificates > .figma-trust-copy { max-width: 58rem; }

.figma-trust-copy h2 {
    color: var(--figma-ink);
    font-size: clamp(1.8rem, 3.5vw, 3.7rem);
}

.figma-trust-copy p {
    margin: 0;
    color: rgb(129 41 24 / 80%);
}

.figma-trust-copy .eyebrow {
    margin-block-end: .55rem;
    color: var(--figma-red);
    font-size: clamp(.78rem, 1vw, 1rem);
}

.certificate-item {
    justify-self: end;
    display: grid;
    justify-items: center;
    gap: .7rem;
    padding: 1rem;
    color: var(--figma-red);
    background: rgb(255 255 255 / 78%);
    border-radius: 14px;
}

.certificate-item a {
    min-width: 112px;
    min-height: 112px;
    display: grid;
    place-items: center;
    background: white url("../images/figma-home/enamad-fallback.webp") center / 92px auto no-repeat;
    border-radius: 10px;
}

.certificate-item img {
    width: 104px;
    max-height: 118px;
    object-fit: contain;
}

.certificate-item strong { font-size: .82rem; }

.beta-home .site-footer {
    position: relative;
    width: 100%;
    min-height: clamp(340px, 28.53vw, 541px);
    direction: ltr;
    grid-template-columns: minmax(170px, .7fr) minmax(0, 1fr) minmax(18rem, 1.5fr);
    gap: clamp(2rem, 5vw, 6rem);
    margin: 0;
    padding: clamp(7rem, 10vw, 11.875rem) max(3rem, calc((100vw - 1690px) / 2)) 4rem;
    color: var(--figma-red);
    border: 0;
    background-color: var(--figma-paper-deep);
    background-image: url("../images/figma-home/footer-paper.webp");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.beta-home .site-footer::before {
    display: none;
    content: "";
    position: absolute;
    inset: -2rem 0 auto;
    height: 2.25rem;
    background: var(--figma-paper-deep);
    clip-path: polygon(0 48%, 4% 37%, 8% 57%, 13% 39%, 18% 54%, 23% 35%, 28% 51%, 34% 32%, 39% 55%, 44% 36%, 50% 56%, 55% 34%, 60% 52%, 66% 31%, 71% 55%, 77% 37%, 82% 53%, 88% 33%, 93% 54%, 97% 38%, 100% 49%, 100% 100%, 0 100%);
    pointer-events: none;
}

.beta-home .site-footer p { color: rgb(129 41 24 / 80%); }
.beta-home .footer-brand {
    width: clamp(170px, 15vw, 274px);
    height: auto;
    aspect-ratio: 2347 / 506;
    overflow: hidden;
}
.beta-home .site-footer > p,
.beta-home .footer-links { direction: rtl; }
.beta-home .footer-links { line-height: 2.2; }
.beta-home .social-links a { border-color: rgb(129 41 24 / 25%); }
.beta-home .social-links img { width: 22px; height: 22px; object-fit: contain; }

.beta-home .figma-footer .social-links { gap: .75rem; }

.beta-home .figma-footer .social-links a {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: opacity 180ms ease;
}

.beta-home .figma-footer .social-links a:hover {
    border-color: transparent;
    background: transparent;
    opacity: .68;
}

.beta-home .figma-footer .social-links img {
    width: 100%;
    height: 100%;
}

.beta-home .figma-footer {
    grid-template-columns: minmax(170px, .8fr) minmax(180px, .8fr) minmax(190px, .72fr) minmax(190px, .72fr);
    align-items: start;
}

.figma-footer-social,
.figma-footer-links {
    direction: rtl;
    color: var(--figma-red);
}

html[dir="ltr"] .figma-footer-social,
html[dir="ltr"] .figma-footer-links { direction: ltr; }

.figma-footer-social {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.figma-footer-social strong {
    font-size: clamp(1rem, 1.27vw, 1.5rem);
    line-height: 1.55;
}

.figma-footer-links {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: clamp(.75rem, 1.95vw, 2.3125rem);
    font-size: clamp(.95rem, 1.27vw, 1.5rem);
    line-height: 1.55;
}

html[dir="ltr"] .figma-footer-links { justify-items: end; }
.figma-footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-underline-offset: .25rem;
}

.figma-footer-links a:hover { text-decoration: underline; }
.figma-footer-links a:active { color: var(--figma-red-strong); }
.figma-footer-links span { max-width: 19ch; color: rgb(129 41 24 / 80%); }

.motion-ready [data-reveal] {
    opacity: 0;
    translate: 0 14px;
    transition: opacity 380ms ease, translate 380ms cubic-bezier(.22, 1, .36, 1);
}

.motion-ready [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
}

@media (hover: hover) and (pointer: fine) {
    .polaroid:hover {
        z-index: 9;
        box-shadow: 0 18px 44px rgb(43 36 32 / 24%);
        transform: rotate(0deg) translateY(-8px) scale(1.025);
    }
}

@media (min-width: 981px) {
    .beta-home .site-header { background: transparent; }

    .beta-home .site-header::after {
        inset: 0 0 auto;
        height: 238px;
        background: url("../images/figma-home/header-paper.webp") center top / 100% 238px no-repeat;
        clip-path: none;
    }
}

@media (min-width: 1200px) {
    .figma-invitation > p,
    .figma-invitation h2,
    .figma-invitation .button-row {
        position: relative;
        inset-block-start: clamp(.5rem, 1vw, 1.25rem);
    }

    .figma-invitation .button-row {
        margin-block-start: clamp(2.2rem, 4.1vw, 4.9rem);
    }

    .figma-invitation .button {
        width: clamp(220px, 18.9vw, 359px);
        min-width: 0;
        height: clamp(64px, 5.43vw, 103px);
        min-height: 64px;
        font-size: clamp(1.25rem, 2.1vw, 2.5rem);
    }
}

@media (min-width: 1800px) {
    .figma-invitation h2 {
        max-width: 100%;
        white-space: nowrap;
    }
}

@media (min-width: 1700px) {
    .figma-hero-logo {
        width: 751px;
        max-width: none;
    }

    .beta-home .figma-footer {
        grid-template-columns: 400px minmax(0, 1fr) 270px 343px;
        column-gap: 3rem;
        padding-inline: 2.75rem;
    }

    .figma-footer-social { transform: translateX(5rem); }
    .figma-footer-social .social-links { transform: translateX(.375rem); }
    .figma-footer-links-primary { padding-inline-start: 2.875rem; }
}

@media (max-width: 1180px) {
    .figma-hero {
        grid-template-columns: minmax(0, 1.12fr) minmax(27rem, .88fr);
    }

    .figma-hero-logo { width: min(100%, 751px); max-width: 100%; }

    .figma-collage { min-height: 650px; }

    .figma-trailer-copy::before { opacity: .72; }
}

@media (max-width: 980px) {
    .beta-home .site-header { position: sticky; }
    .beta-home .nav-shell { width: min(100% - 1.5rem, 900px); min-height: 78px; padding-block-end: .8rem; }
    .beta-home .mobile-menu-panel { color: var(--figma-ink); background: var(--figma-paper); }
    .beta-home .language-link,
    .beta-home .mobile-menu summary { width: 44px; min-width: 44px; height: 44px; }
    .beta-home .mobile-menu-panel { max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }
    .beta-home .mobile-social-links a,
    .beta-home .social-links a { width: 44px; height: 44px; }

    .figma-hero {
        width: min(100% - 1.5rem, 820px);
        grid-template-columns: 1fr;
        grid-template-areas: "copy" "visual";
        gap: 0;
        padding-block-start: 3.5rem;
    }

    .figma-hero-copy { max-width: 680px; margin-inline: auto; transform: none; }
    .figma-hero-logo { width: min(100%, 590px); max-width: 100%; height: auto; }
    .figma-hero-kicker { max-width: 17ch; margin-block-start: -2rem; font-size: clamp(1.55rem, 5vw, 2.8rem); white-space: normal; transform: none; }
    .figma-hero-copy .button { width: auto; min-width: 0; height: auto; min-height: 50px; padding: .72rem 1.65rem; font-size: .98rem; line-height: inherit; transform: none; }
    .figma-hero-copy .button:hover { transform: translateY(-2px); }
    .figma-hero-copy .button:active { transform: translateY(1px); }
    html[dir="ltr"] .figma-hero-copy { transform: none; }
    html[dir="ltr"] .figma-hero-logo { width: min(100%, 590px); }
    html[dir="ltr"] .figma-hero-kicker { max-width: 17ch; margin-block-start: -2rem; font-size: clamp(1.55rem, 5vw, 2.8rem); line-height: 1.55; }
    html[dir="ltr"] .figma-hero-copy .button { width: auto; min-width: 0; height: auto; min-height: 50px; padding: .72rem 1.65rem; font-size: .98rem; line-height: inherit; }
    .figma-collage { min-height: 730px; overflow: visible; }

    .polaroid { width: clamp(140px, 27vw, 230px); }
    .polaroid-one,
    .polaroid-four { inset-inline-start: 4%; }
    .polaroid-three,
    .polaroid-six { inset-inline-end: 4%; }

    .figma-manifesto h1,
    .figma-manifesto h2 {
        max-width: 15ch;
        font-size: clamp(2.2rem, 6vw, 3.5rem);
        white-space: normal;
    }

    .figma-steps {
        width: min(100% - 2rem, 760px);
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: "one" "two" "three" "guide";
        gap: 1rem;
    }

    .figma-steps > .story-card:nth-of-type(1) { grid-area: one; }
    .figma-steps > .story-card:nth-of-type(2) { grid-area: two; }
    .figma-steps > .story-card:nth-of-type(3) { grid-area: three; }
    .figma-steps > .story-card:nth-of-type(1),
    .figma-steps > .story-card:nth-of-type(2),
    .figma-steps > .story-card:nth-of-type(3) { margin-inline: 0; }
    .figma-steps > .story-card:nth-of-type(2) .figma-step-card,
    .figma-steps > .story-card:nth-of-type(3) .figma-step-card { padding-inline-start: clamp(2rem, 3vw, 3.5rem); }
    .figma-step-card { min-height: 235px; }
    .figma-guide-link { grid-area: guide; margin: 3rem auto 0; }
    .figma-guide-link { min-height: 44px; display: inline-flex; align-items: center; }

    .home-trailer {
        width: min(100% - 2rem, 800px);
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: rtl;
    }

    html[dir="ltr"] .home-trailer { direction: ltr; }
    .figma-video-card { min-height: 0; }
    .figma-trailer-copy h2 { max-width: 13ch; }
    .figma-trailer-copy::before { width: 118px; left: auto; right: 0; top: -108px; }

    .home-cta { width: min(100% - 2rem, 840px); }
    .figma-invitation { background-size: cover; }

    .home-certificates {
        width: min(100% - 1rem, 900px);
        grid-template-columns: 1fr auto;
    }

    .beta-home .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-inline: 2rem;
        text-align: center;
    }

    .beta-home .figma-footer { grid-template-columns: 1fr; }
    .figma-footer-links,
    html[dir="ltr"] .figma-footer-links {
        justify-items: center;
        text-align: center;
    }
    .figma-footer-links a { min-width: 44px; min-height: 44px; justify-content: center; }
    .figma-footer-links span { max-width: 34ch; }
}

@media (max-width: 620px) {
    .beta-home .site-header::after { inset-block-end: -1rem; }

    .figma-hero {
        width: 100%;
        min-height: 0;
        padding-inline: .9rem;
        padding-block-start: 2rem;
    }

    .beta-home .brand { width: 126px; height: 44px; }
    .figma-hero-logo { height: auto; }
    .figma-hero-kicker { margin-block-start: -1.65rem; font-size: 1.45rem; }
    .figma-collage { min-height: 520px; margin-block-start: 1rem; overflow: visible; }

    .polaroid {
        width: clamp(112px, 36vw, 160px);
        padding: .45rem .45rem 2.1rem;
    }

    .polaroid-one { inset-inline-start: 5%; }
    .polaroid-two { inset-inline-start: 34%; }
    .polaroid-three { inset-inline-end: 5%; }
    .polaroid-four { inset-inline-start: 5%; }
    .polaroid-five { inset-inline-start: 34%; }
    .polaroid-six { inset-inline-end: 5%; }

    .figma-manifesto {
        width: calc(100% - 2rem);
        margin-block: 1rem 4rem;
    }

    .figma-manifesto h1,
    .figma-manifesto h2 {
        max-width: 15ch;
        font-size: clamp(2rem, 9vw, 3rem);
        white-space: normal;
    }

    .figma-steps { width: calc(100% - 1.5rem); }
    .figma-step-card { min-height: 210px; padding: 1.6rem; border-radius: 25px; }
    .figma-guide-link { margin: 1.8rem auto 0; text-align: center; }

    .home-trailer { width: calc(100% - 1.5rem); margin-block: 5.5rem; }
    .figma-video-card { min-height: 0; border-radius: 30px; }
    .figma-play { width: 130px; height: 130px; }
    .figma-trailer-copy h2 { margin-block-end: 1.4rem; font-size: clamp(2.8rem, 14vw, 4.1rem); }
    .figma-trailer-copy::before { width: 100px; top: -84px; opacity: .48; }

    .home-cta { width: calc(100% - 1.5rem); }
    .figma-invitation { min-height: 480px; padding: 2.4rem 1.3rem; border-radius: 34px; }
    .figma-invitation h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }

    .home-certificates {
        width: calc(100% - 1rem);
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 2.5rem 1.25rem;
        border-radius: 0 0 40px 0;
        text-align: center;
    }

    .figma-trust-copy,
    html[dir="rtl"] .figma-trust-copy {
        justify-self: center;
        text-align: center;
    }
    .certificate-item { justify-self: center; }

    .beta-home .site-footer {
        padding-block-start: 7rem;
        padding-inline-start: max(1.25rem, env(safe-area-inset-left));
        padding-inline-end: max(1.25rem, env(safe-area-inset-right));
        background-size: cover;
    }
    .beta-home .footer-links > span:first-child a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

    .figma-doodle-butterfly { display: none; }
    .figma-doodle-heart { left: 68%; top: 2%; width: 8%; height: 18%; }
    .figma-doodle-chevrons { left: 22%; top: 36%; width: 15%; height: 10%; }
    .figma-doodle-star { left: 1%; top: 37%; width: 8%; height: 16%; }
    .figma-doodle-flower { left: 47%; top: 69%; width: 11%; height: 19%; }
    .figma-doodle-swoop { left: 11%; top: 82%; width: 34%; height: 30%; }
}

@media (prefers-reduced-motion: reduce) {
    .beta-home *,
    .beta-home *::before,
    .beta-home *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .polaroid:hover { transform: rotate(var(--rotation)); }
}
