.home-cabinet {
    --hc-ink: #202020;
    --hc-muted: #545654;
    --hc-line: #cecfca;
    --hc-link: #005cbe;
    --hc-surface: #f8f6f0;
    --hc-cell-padding: clamp(14px, 2vw, 29px);
    color: var(--hc-ink);
    background: var(--hc-surface);
    font-family: inherit;
    scroll-margin-top: 152px;
}

.home-cabinet *, .home-cabinet *::before, .home-cabinet *::after { box-sizing: border-box; }
.home-cabinet ::selection { color: #17202c; background: #d6e7ff; }

.home-cabinet__shell {
    width: 100%;
    max-width: 1440px;
    padding: clamp(48px, 6vw, 88px) 36px;
    margin-inline: auto;
}

.home-cabinet__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3.5vw, 42px);
}

.home-cabinet .home-cabinet__intro h2 {
    max-width: 15ch;
    margin: 0;
    font: inherit;
    font-size: clamp(36px, 4.4vw, 64px);
    font-weight: 550;
    letter-spacing: -.04em;
    line-height: 1.04;
    text-wrap: balance;
}

.home-cabinet__intro p,
.home-cabinet__anywhere-copy p {
    max-width: 34ch;
    margin: 0;
    color: var(--hc-muted);
    font-size: 17px;
    line-height: 1.55;
}

.home-cabinet__roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--hc-line);
}

.home-cabinet__role {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-cabinet__role + .home-cabinet__role { border-left: 1px solid var(--hc-line); }

.home-cabinet__figure {
    margin: 0;
    background: #edebe4;
}

.home-cabinet__preview {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #fff;
}

.home-cabinet__preview img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-cabinet__figure figcaption {
    padding: 11px var(--hc-cell-padding);
    color: #4a4d49;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
}

.home-cabinet__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: start;
    padding: 24px var(--hc-cell-padding) 12px;
}

.home-cabinet .home-cabinet__role h3 {
    margin: 0;
    font: inherit;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 550;
    letter-spacing: -.025em;
    line-height: 1.16;
    text-wrap: pretty;
}

.home-cabinet__role p {
    max-width: 38ch;
    margin: 12px 0 8px;
    color: var(--hc-muted);
    font-size: 15px;
    line-height: 1.55;
}

.home-cabinet__links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    margin-top: auto;
}

.home-cabinet .home-cabinet__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--hc-link);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    text-underline-offset: .25em;
}

.home-cabinet__links svg { flex: none; }
.home-cabinet__role--single a::after { position: absolute; inset: 0; content: ""; }
.home-cabinet .home-cabinet__links a:hover,
.home-cabinet .home-cabinet__links a:focus-visible { color: var(--hc-link); text-decoration: underline; }
.home-cabinet .home-cabinet__links a:focus-visible { outline: 2px solid var(--hc-link); outline-offset: 3px; }

.home-cabinet__anywhere {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    margin-top: clamp(36px, 6vw, 80px);
    padding: clamp(25px, 4vw, 56px);
    background: #eeece5;
}

.home-cabinet .home-cabinet__anywhere-copy h3 {
    max-width: 14ch;
    margin: 0;
    font: inherit;
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 550;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.home-cabinet__anywhere-copy p { margin-top: 16px; }

.home-cabinet__devices {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24%;
    align-items: end;
    width: 100%;
    max-width: 700px;
    justify-self: end;
    padding-block-end: 6px;
}

.home-cabinet__imac {
    position: relative;
    grid-area: 1 / 1 / 2 / 3;
    width: 86%;
    padding-bottom: 1.5%;
}

.home-cabinet__imac-frame {
    position: relative;
    overflow: hidden;
    padding: 2.2% 1.65% 0;
    border: 1px solid #55565a;
    border-radius: 2.4% / 4.5%;
    background: #17181a;
}

.home-cabinet__imac-frame img {
    display: block;
    width: 100%;
    height: auto;
    background: #101215;
}

.home-cabinet__imac-frame::before {
    position: absolute;
    top: 1.4%;
    left: 50%;
    width: .5%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #555e6a;
    content: "";
}

.home-cabinet__imac-frame::after {
    display: block;
    aspect-ratio: 20;
    margin-inline: -1.7%;
    background: linear-gradient(#d3d3d0, #b6b6b2);
    content: "";
}

.home-cabinet__imac-stand {
    width: 20%;
    aspect-ratio: 2.5;
    margin-inline: auto;
    clip-path: polygon(19% 0, 81% 0, 100% 100%, 0 100%);
    background: linear-gradient(#9d9e99, #cfceca 70%, #b7b8b2);
}

.home-cabinet__imac::after {
    position: absolute;
    bottom: 1%;
    left: 37.5%;
    width: 25%;
    height: 1.5%;
    border-radius: 2px;
    background: #a6a7a1;
    content: "";
}

.home-cabinet__iphone {
    position: relative;
    z-index: 1;
    grid-area: 1 / 2;
    justify-self: end;
    width: 100%;
    max-width: 156px;
    /* iPhone 17: 71.5 × 149.6 mm enclosure, 1206 × 2622 pixels at 460 ppi. */
    aspect-ratio: 715 / 1496;
    border-radius: 16.2% / 7.74%;
    background: #111214;
    box-shadow: inset 0 0 0 1px #6d6e71, 0 9px 20px #20202026;
}

.home-cabinet__iphone-screen {
    position: absolute;
    inset: 1.6% 3.43%;
    overflow: hidden;
    border-radius: 14.7% / 6.76%;
    background: #f2f2f2;
}

.home-cabinet__iphone img {
    position: absolute;
    inset: 8.5% 0 auto;
    display: block;
    width: 100%;
    height: 88%;
    object-fit: cover;
    object-position: center top;
}

.home-cabinet__iphone-screen::before,
.home-cabinet__iphone-screen::after {
    position: absolute;
    z-index: 1;
    left: 50%;
    border-radius: 99px;
    transform: translateX(-50%);
    content: "";
}

.home-cabinet__iphone-screen::before { top: 1.8%; width: 30.9%; height: 4.2%; background: #09090a; }
.home-cabinet__iphone-screen::after { bottom: .9%; width: 34%; height: .55%; background: #171819; }

.home-cabinet__iphone::before,
.home-cabinet__iphone::after {
    position: absolute;
    width: 1.3%;
    border-radius: 2px;
    content: "";
}

.home-cabinet__iphone::before {
    top: 16%;
    right: 99.6%;
    height: 23%;
    background: linear-gradient(#424347 0 16%, transparent 16% 33%, #424347 33% 62%, transparent 62% 71%, #424347 71%);
}

.home-cabinet__iphone::after {
    top: 25%;
    left: 99.6%;
    height: 43%;
    background: linear-gradient(#424347 0 23%, transparent 23% 83%, #424347 83%);
}

@media (max-width: 850px) {
    .home-cabinet__intro { display: block; }
    .home-cabinet__intro p { margin-top: 17px; }
}

@media (max-width: 760px) {
    .home-cabinet { scroll-margin-top: 104px; }
    .home-cabinet__shell { padding-inline: 20px; }
    .home-cabinet__roles, .home-cabinet__anywhere { grid-template-columns: 1fr; }
    .home-cabinet__role + .home-cabinet__role { margin-top: 22px; border-left: 0; }
    .home-cabinet__body { padding-inline: 0; }
    .home-cabinet__devices { max-width: 500px; justify-self: center; }
}

@media (max-width: 400px) {
    .home-cabinet__anywhere { padding-inline: 18px; }
}
