.home-page {
    --home-bg: #06101f;
    --home-surface: #0a1729;
    --home-cyan: #00d5ed;
    --home-magenta: #d430ef;
    --home-text: #f9fafb;
    --home-muted: #aab3c2;
    --home-line: rgba(249, 250, 251, 0.2);
    background: var(--home-bg);
    color: var(--home-text);
    font-family: var(--font-texto);
    overflow-x: hidden;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-page a {
    color: inherit;
}

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

.home-container {
    width: min(100% - 80px, 1240px);
    margin-inline: auto;
}

.home-skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    background: var(--home-text);
    color: var(--home-bg) !important;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.home-skip-link:focus {
    transform: translateY(0);
}

.home-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 108px;
    background: var(--home-bg);
    border-bottom: 1px solid rgba(249, 250, 251, 0.08);
}

.home-page .home-nav {
    width: min(100% - 80px, 1240px);
    height: 100%;
    margin-inline: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.home-brand {
    min-height: 36px;
    display: grid;
    justify-items: center;
    gap: 3px;
    text-decoration: none;
    flex: 0 0 auto;
}

.home-brand__lettering {
    display: block;
    width: 118px;
    height: auto;
}

.home-brand__studio {
    width: 118px;
    display: grid;
    grid-template-columns: minmax(12px, 1fr) auto minmax(12px, 1fr);
    align-items: center;
    gap: 6px;
    color: var(--home-text);
    font-family: var(--font-logo);
    font-size: 5px;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.home-page .home-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-page .home-nav__links a {
    position: relative;
    padding: 12px 0;
    color: var(--home-muted);
    font-family: var(--font-acoes);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color 160ms ease;
}

.home-page .home-nav__links a:not(.home-nav__cta)::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--home-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.home-page .home-nav__links a:hover,
.home-page .home-nav__links a[aria-current="page"] {
    color: var(--home-text);
}

.home-page .home-nav__links a:hover::after,
.home-page .home-nav__links a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.home-page .home-nav__links .home-nav__cta {
    padding: 12px 18px;
    border: 1px solid var(--home-cyan);
    color: var(--home-text);
}

.home-page .home-nav__links .home-nav__cta:hover {
    background: var(--home-cyan);
    color: var(--home-bg);
}

.home-page .home-nav__toggle {
    display: none;
}

.home-hero {
    position: relative;
    isolation: isolate;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 64px;
    width: 100%;
    margin-inline: auto;
    padding: 70px 0 88px;
    background:
        linear-gradient(rgba(6, 16, 31, 0.68), rgba(6, 16, 31, 0.68)),
        url("../../img/mirai-studio-hero.webp") center / cover no-repeat;
    text-align: center;
}

.home-hero__identity {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 0;
}

.home-hero__symbol {
    width: min(48%, 190px);
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 213, 237, 0.62)) drop-shadow(0 0 20px rgba(212, 48, 239, 0.34));
}

.home-hero__lettering {
    width: min(100%, 430px);
    height: auto;
    filter: drop-shadow(0 0 8px rgba(0, 213, 237, 0.5)) drop-shadow(0 0 16px rgba(212, 48, 239, 0.38));
}

.home-hero__studio {
    width: min(100%, 430px);
    display: grid;
    grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: 11px;
    color: var(--home-text);
    font-family: var(--font-logo);
    font-size: 17px;
    line-height: 1;
    letter-spacing: 11px;
    text-transform: uppercase;
}

.home-hero__studio::before,
.home-hero__studio::after,
.home-brand__studio::before,
.home-brand__studio::after {
    height: 3px;
    content: "";
}

.home-hero__studio::before,
.home-brand__studio::before {
    background: var(--home-cyan);
    clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
    filter: drop-shadow(0 0 5px rgba(0, 213, 237, 0.72));
}

.home-hero__studio::after,
.home-brand__studio::after {
    background: var(--home-magenta);
    clip-path: polygon(0 0, 100% 42%, 100% 58%, 0 100%);
    filter: drop-shadow(0 0 5px rgba(212, 48, 239, 0.72));
}

.home-kicker {
    margin: 0 0 20px;
    color: var(--home-cyan);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-section-heading h2,
.home-invitation h2 {
    margin: 0;
    color: var(--home-text);
    font-family: var(--font-titulos);
    font-weight: 400;
    letter-spacing: 0;
    text-wrap: balance;
}

.home-hero__tagline {
    margin: 0;
    color: var(--home-text);
    font-family: var(--font-titulos);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero__tagline span {
    color: var(--home-cyan);
}

.home-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-services,
.home-process {
    padding: 88px 0;
    background: var(--home-surface);
}

.home-section-heading {
    max-width: 780px;
    margin-bottom: 58px;
}

.home-section-heading h2 {
    font-size: 36px;
    line-height: 1.35;
}

.home-service-list {
    border-top: 1px solid var(--home-line);
}

.home-service {
    min-height: 124px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--home-line);
    text-decoration: none;
    transition: background-color 180ms ease, padding 180ms ease;
}

.home-page .home-service.vertical-card {
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.home-service:hover {
    padding-left: 32px;
    background: rgba(0, 213, 237, 0.055);
}

.home-page .home-service.vertical-card:hover {
    background-color: rgba(0, 213, 237, 0.055);
    box-shadow: none;
}

.home-service__number {
    align-self: start;
    padding-top: 8px;
    color: var(--home-cyan);
    font-family: var(--font-titulos);
    font-size: 12px;
}

.home-service__content {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1fr);
    align-items: center;
    gap: 40px;
}

.home-service__content strong {
    font-family: var(--font-subtitulos);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
}

.home-service__content small {
    max-width: 520px;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.7;
}

.home-service > img {
    justify-self: end;
    transition: transform 180ms ease;
}

.home-service:hover > img {
    transform: translateX(7px);
}

.home-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 38px;
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.home-capabilities span:not(:last-child)::after {
    margin-left: 28px;
    color: var(--home-magenta);
    content: "/";
}

.home-portfolio {
    padding: 88px 0 96px;
    background: var(--home-bg);
}

.home-section-heading--row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    color: var(--home-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-text-link img {
    transition: transform 160ms ease;
}

.home-text-link:hover img {
    transform: translateX(6px);
}

.home-page .home-carousel {
    width: min(100% - 32px, 1320px);
    margin-inline: auto;
}

.home-page .home-carousel .scrolling-wrapper {
    gap: 22px;
    padding: 10px 6px 26px;
    scrollbar-color: var(--home-cyan) transparent;
}

.home-page .home-carousel .portfolio-card {
    min-width: min(390px, calc(100vw - 96px));
    border: 1px solid var(--home-line);
    border-radius: 0;
    background: var(--home-surface);
    box-shadow: none;
}

.home-page .home-carousel .portfolio-card:hover {
    border-color: rgba(0, 213, 237, 0.65);
    box-shadow: none;
}

.home-page .carousel-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--home-line);
    border-radius: 0;
    background: var(--home-bg);
    color: var(--home-text);
    box-shadow: none;
}

.home-page .carousel-btn:hover {
    border-color: var(--home-cyan);
    background: var(--home-cyan);
    color: var(--home-bg);
}

.home-process__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--home-line);
    border-left: 1px solid var(--home-line);
    list-style: none;
}

.home-process__list li {
    min-height: 158px;
    padding: 24px;
    border-right: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.home-process__list span {
    display: block;
    margin-bottom: 30px;
    color: var(--home-cyan);
    font-family: var(--font-titulos);
    font-size: 11px;
}

.home-process__list strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-subtitulos);
    font-size: 17px;
    font-weight: 400;
}

.home-process__list p {
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.65;
}

.home-invitation {
    padding: 84px 0;
    background: var(--home-cyan);
    color: var(--home-bg);
}

.home-invitation__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: end;
    gap: 90px;
}

.home-invitation .home-kicker {
    color: var(--home-bg);
    opacity: 0.72;
}

.home-invitation h2 {
    max-width: 780px;
    color: var(--home-bg);
    font-size: 42px;
    line-height: 1.3;
}

.home-invitation__content > p:not(.home-kicker) {
    max-width: 660px;
    margin: 24px 0 32px;
    font-size: 16px;
    line-height: 1.7;
}

.home-button--dark {
    background: var(--home-bg);
    color: var(--home-text) !important;
}

.home-button--dark:hover {
    background: #111827;
}

.home-newsletter {
    padding-left: 38px;
    border-left: 1px solid rgba(6, 16, 31, 0.35);
}

.home-newsletter label {
    display: block;
    margin-bottom: 14px;
    font-weight: 700;
}

.home-newsletter__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.home-newsletter input,
.home-newsletter button {
    min-height: 50px;
    border: 1px solid var(--home-bg);
    border-radius: 0;
    font: inherit;
}

.home-newsletter input {
    min-width: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--home-bg);
}

.home-newsletter input::placeholder {
    color: rgba(6, 16, 31, 0.62);
}

.home-newsletter button {
    padding: 0 18px;
    background: var(--home-bg);
    color: var(--home-text);
    cursor: pointer;
    font-weight: 700;
}

.home-newsletter button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.home-newsletter > p {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.75;
}

.home-footer {
    padding: 46px 0;
    background: #030914;
    color: var(--home-text);
}

.home-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.home-footer__brand,
.home-footer__brand img {
    display: block;
}

.home-footer__brand img {
    width: 194px;
    max-width: 100%;
    height: auto;
}

.home-footer p,
.home-footer small {
    margin: 0;
    color: var(--home-muted);
    font-size: 12px;
}

.home-footer nav {
    display: flex;
    gap: 24px;
}

.home-footer nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.home-footer nav a:hover {
    color: var(--home-cyan);
}

.home-footer small {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgba(249, 250, 251, 0.12);
}

@media (max-width: 1100px) {
    .home-page .home-nav__links {
        gap: 18px;
    }

    .home-page .home-nav__links a {
        font-size: 12px;
    }

    .home-service__content {
        grid-template-columns: minmax(210px, 0.7fr) 1fr;
    }

    .home-invitation__layout {
        gap: 54px;
    }
}

@media (max-width: 900px) {
    .home-container,
    .home-page .home-nav,
    .home-hero {
        width: min(100% - 48px, 760px);
    }

    .home-header {
        height: 76px;
    }

    .home-page .home-nav__toggle {
        width: 44px;
        height: 44px;
        display: grid;
        place-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid var(--home-line);
        border-radius: 0;
        background: transparent;
    }

    .home-page .home-nav__toggle span {
        width: 19px;
        height: 1px;
        display: block;
        background: var(--home-text);
    }

    .home-page .home-nav__links {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 16px 24px 24px;
        border-top: 1px solid var(--home-line);
        background: var(--home-bg);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
    }

    .home-page .home-nav__links.is-open {
        display: grid;
    }

    .home-page .home-nav__links a {
        padding: 14px 0;
        font-size: 14px;
    }

    .home-page .home-nav__links .home-nav__cta {
        margin-top: 10px;
        padding: 14px;
        text-align: center;
    }

    .home-hero {
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        min-height: 0;
        align-content: center;
        gap: 48px;
        padding: 72px 0 80px;
    }

    .home-hero__symbol {
        width: min(38vw, 170px);
    }

    .home-hero__lettering {
        width: min(75vw, 480px);
    }

    .home-hero__studio {
        width: min(75vw, 430px);
    }

    .home-hero__tagline {
        font-size: 16px;
    }

    .home-service__content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-process__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-invitation__layout {
        grid-template-columns: 1fr;
    }

    .home-newsletter {
        padding: 32px 0 0;
        border-top: 1px solid rgba(6, 16, 31, 0.35);
        border-left: 0;
    }

    .home-footer__inner {
        grid-template-columns: 1fr auto;
    }

    .home-footer p {
        display: none;
    }
}

@media (max-width: 600px) {
    .home-container,
    .home-page .home-nav,
    .home-hero {
        width: calc(100% - 40px);
    }

    .home-brand__lettering {
        width: 106px;
    }

    .home-brand__studio {
        width: 106px;
        gap: 5px;
        font-size: 4.5px;
        letter-spacing: 2.7px;
    }

    .home-hero {
        gap: 42px;
        padding: 26px 0 32px;
    }

    .home-hero__symbol {
        width: 86px;
        margin-bottom: 10px;
    }

    .home-hero__lettering {
        width: min(100%, 240px);
    }

    .home-hero__studio {
        width: 240px;
        max-width: 100%;
        gap: 12px;
        margin-top: 5px;
        font-size: 8px;
        letter-spacing: 5px;
    }

    .home-hero__tagline {
        font-size: 11px;
    }

    .home-services,
    .home-process,
    .home-portfolio {
        padding: 60px 0;
    }

    .home-section-heading {
        margin-bottom: 40px;
    }

    .home-section-heading h2 {
        font-size: 28px;
        line-height: 1.4;
    }

    .home-section-heading--row {
        display: grid;
        align-items: start;
    }

    .home-service {
        min-height: 132px;
        grid-template-columns: 36px minmax(0, 1fr) 34px;
        gap: 12px;
        padding: 20px 12px;
    }

    .home-service:hover {
        padding-left: 16px;
    }

    .home-service__content strong {
        font-size: 22px;
    }

    .home-service__content small {
        font-size: 13px;
        line-height: 1.55;
    }

    .home-service > img {
        width: 32px;
    }

    .home-capabilities {
        gap: 8px 12px;
        line-height: 1.8;
    }

    .home-capabilities span:not(:last-child)::after {
        margin-left: 12px;
    }

    .home-page .home-carousel {
        width: calc(100% - 20px);
    }

    .home-page .home-carousel .portfolio-card {
        min-width: calc(100vw - 70px);
    }

    .home-page .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .home-process__list {
        grid-template-columns: 1fr;
    }

    .home-process__list li {
        min-height: 118px;
        padding: 22px;
    }

    .home-invitation {
        padding: 64px 0;
    }

    .home-invitation h2 {
        font-size: 30px;
        line-height: 1.4;
    }

    .home-newsletter__fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-footer__inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .home-footer nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 374px) {
    .home-container,
    .home-page .home-nav,
    .home-hero {
        width: calc(100% - 32px);
    }

    .home-brand__lettering {
        width: 92px;
    }

    .home-brand__studio {
        width: 92px;
        gap: 4px;
        font-size: 4px;
        letter-spacing: 2px;
    }

    .home-service__content strong {
        font-size: 19px;
    }
}

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