/* Styles for the home page only (index.html and es/index.html). Loaded after site.css. */

/* moved from site.css: the parts of the shared styles that only the home page uses (the three components moved here) */
.hero .lead {
    animation-delay: 0.08s;
}
.hero .row {
    animation-delay: 0.16s;
}
.ov {
    display: grid;
    grid-template-columns: auto 1px 1fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
}
.ov .bar {
    background: rgba(255, 255, 255, 0.4);
    align-self: stretch;
    margin: 40px 0;
}
.ov h3 {
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    line-height: 1.2;
}
.ov p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #8e8e9e;
    letter-spacing: 0.03em;
    max-width: 60ch;
}
.ov p b {
    color: #fff;
    font-weight: 600;
}
@media (max-width: 760px) {
    .ov {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .ov .bar {
        display: none;
    }
}
.p3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 290px));
    gap: 20px;
    justify-content: center;
}
@media (max-width: 860px) {
    .p3 {
        grid-template-columns: 1fr;
    }
}
.pc2 {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 1600/1988;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.35s ease;
    display: block;
}
.pc2:hover,
.pc2:focus-visible {
    transform: translateY(-6px);
}
.pc2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}
.pc2 img.hv {
    opacity: 0;
}
.pc2:hover img.hv,
.pc2:focus-visible img.hv {
    opacity: 1;
}
div.pc2 {
    cursor: default;
}
.p3 {
    grid-template-columns: repeat(3, minmax(0, 276px)) !important;
}
.pc2::after {
    content: "";
    position: absolute;
    inset: 34% 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.86) 55%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.pc2:hover::after,
.pc2:focus-visible::after {
    opacity: 1;
}
.pc2 .tx {
    top: 45% !important;
    z-index: 2;
}
.pc2 .tx b {
    font-size: 29px !important;
}
.pc2 .tx small {
    font-size: 13.5px !important;
    line-height: 1.42 !important;
}
@media (max-width: 860px) {
    .p3 {
        grid-template-columns: minmax(0, 300px) !important;
    }
}
.pc2 .tx small {
    font-size: 14.5px !important;
    line-height: 1.45 !important;
}
.pc2 .tx b {
    font-size: 31px !important;
}
.p3 {
    grid-template-columns: repeat(3, minmax(0, 256px));
    gap: 24px;
}
.pc2 {
    border-radius: 22px;
}
.pc2 .tx {
    position: absolute;
    left: 22px;
    right: 16px;
    top: 47%;
    display: grid;
    gap: 14px;
    color: #fff;
}
.pc2 .tx b {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.01em;
}
.pc2 .tx small {
    font-size: 13px;
    line-height: 1.5;
    color: #d5d5e0;
}
@media (max-width: 860px) {
    .p3 {
        grid-template-columns: minmax(0, 300px);
    }
}
@media (max-width: 860px) {
    .p3 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}
@media (max-width: 860px) {
    .pc2 {
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: 88px 1fr;
        gap: 16px;
        align-items: center;
        padding: 12px 16px 12px 12px;
        background: var(--panel);
    }
}
@media (max-width: 860px) {
    .pc2:hover,
    .pc2:focus-visible {
        transform: none;
    }
}
@media (max-width: 860px) {
    .pc2 img {
        position: relative;
        width: 88px;
        height: 88px;
        border-radius: 14px;
        object-position: 50% 22%;
    }
}
@media (max-width: 860px) {
    .pc2 img.hv,
    .pc2::after {
        display: none;
    }
}
@media (max-width: 860px) {
    .pc2 .tx {
        position: static;
        gap: 6px;
    }
}
@media (max-width: 860px) {
    .pc2 .tx b {
        font-size: 20px !important;
        font-weight: 400;
    }
}
@media (max-width: 860px) {
    .pc2 .tx b br {
        display: none;
    }
}
@media (max-width: 860px) {
    .pc2 .tx small {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
    }
}
.pc2 .th,
.p3d {
    display: none;
}
@media (max-width: 860px) {
    .p3.tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px;
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2 {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        padding: 12px 8px 14px;
        cursor: pointer;
        opacity: 0.6;
        transition:
            opacity 0.3s ease,
            border-color 0.3s ease;
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2.on {
        opacity: 1;
        border-color: var(--acc);
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2 img {
        display: none;
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2 img.th {
        display: block;
        width: 100%;
        max-width: 96px;
        height: auto;
        aspect-ratio: 1;
        border-radius: 14px;
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2 .tx {
        text-align: center;
        justify-items: center;
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2 .tx b {
        font-size: 15px !important;
        line-height: 1.15;
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2 .tx b br {
        display: inline;
    }
}
@media (max-width: 860px) {
    .p3.tabs .pc2 .tx small {
        display: none;
    }
}
@media (max-width: 860px) {
    .p3d {
        display: block;
        margin: 14px auto 0;
        max-width: none;
        min-height: 4.4em;
        text-align: center;
        font-size: 15px;
        line-height: 1.45;
        color: var(--mut);
    }
}
@media (max-width: 860px) {
    .p3d.in {
        animation: p3in 0.35s ease both;
    }
}
.btn.more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn.more .dn {
    flex: none;
    animation: dnb 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .btn.more .dn {
        animation: none;
    }
}
.ov-tx {
    display: grid;
    gap: 18px;
}
@media (min-width: 861px) {
    .pc2 {
        aspect-ratio: 1600 / 2200 !important;
    }
}
@media (min-width: 861px) {
    .pc2 .tx {
        top: 46% !important;
        right: 22px !important;
        gap: 10px !important;
    }
}

.keys5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.kcard {
    position: relative;
    border: 5px solid #fff;
    border-radius: 34px;
    overflow: hidden;
    background: var(--kc);
    display: grid;
    grid-template-rows: 150px 1fr;
    min-height: 470px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.kcard:hover {
    transform: translateY(-8px);
}
.kcard .ph {
    position: relative;
    background: radial-gradient(90% 100% at 70% 0%, var(--kg), var(--kd));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.kcard .ph img {
    max-height: 120%;
    max-width: 86%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.kcard:hover .ph img {
    transform: scale(1.07);
}
.kcard .bd {
    position: relative;
    margin-top: -26px;
    border-radius: 0 34px 0 0;
    background: var(--kc);
    padding: 22px 18px 20px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.kcard .bd img {
    height: 24px;
    width: auto;
}
.kcard .nm {
    font-size: 1.3rem;
    color: #c9c9d6;
    margin-top: -8px;
}
.kcard .bd p {
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.6);
}
.kcard .ex {
    justify-self: center;
    align-self: end;
    margin-top: auto;
    padding: 12px 30px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}
@media (max-width: 1100px) {
    .keys5 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 720px) {
    .keys5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 460px) {
    .keys5 {
        grid-template-columns: 1fr;
    }
}
.cta2 {
    text-align: center;
    display: grid;
    gap: 8px;
    justify-items: center;
}
.cta2 h3 {
    font-size: 1.5rem;
}
.cta2 p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 200;
    letter-spacing: 0.06em;
    color: #d5d5e2;
}
.cta2 .row {
    margin-top: 22px;
    justify-content: center;
}
.kcard {
    grid-template-rows: 170px 1fr;
}
.kcard .ph img.bgp {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    filter: none;
}
.kcard .ph img.ob {
    position: relative;
    max-height: 92%;
    max-width: 70%;
}
.heroF .lock {
    grid-template-columns: 1fr;
}
.heroF .lock .rest {
    grid-column: 1;
}
.heroF .lock > .lgtm {
    position: relative;
    display: block;
    justify-self: start;
    /* 5px to 7px, growing with the headline (see the logo below) */
    margin-bottom: clamp(5px, 0.36vw + 2.45px, 7px);
}
.heroF .lgtm img {
    /* grows with the headline: the h1 goes from 36.8px to 65.6px between 708px and 1262px wide, and the logo from 35px to 50px */
    height: clamp(35px, 2.71vw + 15.8px, 50px);
    width: auto;
    display: block;
}
.kcard {
    height: 468px !important;
}
.kcard .ex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.kcard .ex .exa {
    font-style: normal;
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.3s ease;
}
.kcard:hover .ex .exa,
.kcard:focus-visible .ex .exa {
    transform: translate(2px, -2px);
}
.kcard .ph img.ob.ob2 {
    width: 86%;
    top: 14px;
}
#worlds {
    background: #fff !important;
}
section.cta2w {
    background: #fff !important;
}
body[data-world="home"] footer {
    background: #fff;
}
body[data-world="home"] footer .fcard {
    background: #f6f6f7;
    border-color: rgba(16, 16, 26, 0.06);
}
.cta2w .cta2 h3 {
    color: #10101a;
}
.cta2w .cta2 p {
    color: #4a4a58 !important;
    font-weight: 300;
}
#worlds .head h2 {
    color: #10101a !important;
}
#worlds .head .lead {
    color: #4a4a58 !important;
}
#worlds .kcard {
    border-color: #fff;
    box-shadow:
        0 18px 40px rgba(16, 16, 26, 0.22),
        0 0 0 1px rgba(16, 16, 26, 0.06) !important;
}
.kcard:hover .bd,
.kcard:focus-visible .bd {
    top: 132px !important;
}
section.heroF {
    padding: 0 !important;
}
.kcard .nm {
    color: #fff !important;
    opacity: 0.92;
}
.kcard .bd p {
    color: rgba(255, 255, 255, 0.78) !important;
}
.heroF {
    position: relative;
    min-height: min(100svh, 900px);
    padding: 0 !important;
    display: grid !important;
    align-items: end;
    overflow: hidden;
}
.heroF video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04) translate3d(calc((var(--mxn, 0) * -10px)), calc((var(--myn, 0) * -8px)), 0);
    transition: transform 0.5s ease-out;
}
.heroF::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 16, 26, 0.6) 0%, rgba(16, 16, 26, 0.08) 28%, rgba(16, 16, 26, 0.42) 62%, #10101a 100%);
    pointer-events: none;
}
.heroF .wrap {
    position: relative;
    z-index: 2;
    padding: 150px 0 clamp(40px, 7vw, 96px);
}
.heroF .lock {
    margin: 0;
}
.keys5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1100px) {
    .keys5 {
        grid-template-columns: repeat(3, minmax(0, 280px));
        justify-content: center;
    }
}
@media (max-width: 720px) {
    .keys5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 460px) {
    .keys5 {
        grid-template-columns: minmax(0, 300px);
    }
}
/* when the cards wrap, the short last row is centered: a flexbox can do that, a grid cannot.
   Each card keeps the width its grid column had: 3 per row up to 280px, then 2 per row, then 1 up to 300px. */
@media (max-width: 1100px) {
    .keys5 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .keys5 > .kcard {
        flex: 0 0 min(280px, (100% - 32px) / 3);
    }
}
@media (max-width: 720px) {
    .keys5 > .kcard {
        flex-basis: calc((100% - 16px) / 2);
    }
}
@media (max-width: 460px) {
    .keys5 > .kcard {
        flex-basis: min(300px, 100%);
    }
}
.kcard {
    display: block;
    height: 450px;
    min-height: 0;
    border-radius: 30px;
}
.kcard:hover {
    transform: none;
}
.kcard .ph {
    position: absolute;
    inset: 0 0 auto 0;
    height: 207px;
    background: var(--kd);
}
.kcard .ph img.bgp {
    transition: transform 0.6s ease;
}
.kcard:hover .ph img.bgp {
    transform: scale(1.06);
}
.kcard .ph img.ob {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 72%;
    max-width: none;
    max-height: none;
    opacity: 0;
    transform: translate(-50%, 26px) rotate(-7deg) scale(0.88);
    transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.kcard:hover .ph img.ob,
.kcard:focus-visible .ph img.ob {
    opacity: 1;
    transform: translate(-50%, 0) rotate(-7deg) scale(1);
}
.kcard .bd {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 106px;
    margin: 0;
    border-radius: 0 44px 0 0;
    transition: top 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    overflow: hidden;
    padding: 20px 18px 84px;
}
.kcard:hover .bd,
.kcard:focus-visible .bd {
    top: 132px;
}
.kcard .bd img {
    height: 27px;
}
.kcard .ex {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    margin: 0;
}
.tok {
    position: relative;
    width: clamp(170px, 19vw, 240px);
    aspect-ratio: 440/600;
    perspective: 1100px;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    margin: 0 auto 34px;
    --t: clamp(6px, 0.7vw, 8px); /* as thin as a One key */
    outline: none;
}
.tok:active {
    cursor: grabbing;
}
.tok:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 14px;
    border-radius: 24px;
}
.tok .tw {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: tbob 6s ease-in-out infinite alternate;
}
.tok .tk {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}
.tok .tf,
.tok .tb,
.tok .te {
    position: absolute;
    inset: 0;
    border-radius: 10.5%/7.7%;
}
.tok .tf,
.tok .tb {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.tok .tf {
    transform: translateZ(calc(var(--t) / 2 + 0.5px));
}
.tok .tb {
    transform: rotateY(180deg) translateZ(calc(var(--t) / 2 + 0.5px));
}
.tok img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-user-drag: none;
}
/* the small "a" with the star at the bottom right of the face, as on the One keys */
.tok .tf .mk {
    inset: auto 9% 4.6% auto;
    width: 13%;
    height: auto;
    filter: brightness(0) opacity(0.5);
}
.tok .tb .wm {
    inset: auto;
    left: 28%;
    width: 44%;
    height: auto;
    top: 43%;
    transform: translateY(-50%);
}
.tok .te {
    background: linear-gradient(180deg, #d6d6db, #a4a4ad);
    transform: translateZ(calc((var(--i) / 11 - 0.5) * var(--t)));
}
.tok::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: -13%;
    height: 7%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
    filter: blur(5px);
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .tok .tw {
        animation: none;
    }
}
@keyframes tbob {
    to {
        transform: translateY(-10px);
    }
}
