/* FAZA 4 / Homepage: fixed viewport sections + independent photo carousels. */

.page-home {
    --home-accent: var(--color-accent);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
    font-family: var(--font-body);
}

.page-home #main-content {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #000000;
}

.page-home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    background: transparent;
    border-bottom-color: transparent;
}

.page-home .site-header::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.page-home .site-brand__name,
.page-home .site-brand__studio,
.page-home .site-nav__link,
.page-home .site-nav-toggle {
    font-family: var(--font-body);
}

.page-home .site-brand__name {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.home-page {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
}

/*
 * Homepage section transition mirrors the original Novo split-screen model:
 * every section stays in the same stacking context; only its two halves move.
 * Inactive: media at -100%, content at +100%. Active: both at 0.
 */
.home-section {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.home-section.is-active {
    pointer-events: auto;
}

.home-section__media,
.home-section__content {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    min-width: 0;
    height: 100%;
    transition: transform 600ms ease;
}

.home-section__media {
    left: 0;
    overflow: hidden;
    background: #0b0b0b;
    transform: translateX(-100%);
}

.home-section__content {
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: #000000;
    transform: translateX(100%);
}

.home-section.is-active .home-section__media,
.home-section.is-active .home-section__content {
    transform: translateX(0);
}

.home-section__content-inner {
    box-sizing: border-box;
    width: min(38.75rem, 100%);
    max-height: 100%;
    margin: 0;
    padding: 1.5625rem 3.75rem;
}

.home-section__content-inner--intro {
    width: min(38.75rem, 100%);
}

.home-section__heading,
.home-section__body {
    min-width: 0;
}

.home-section__heading {
    flex: 0 0 auto;
}

.home-section__body {
    margin-top: clamp(2rem, 4.2vh, 2.75rem);
}

.home-section__eyebrow {
    margin: 0 0 clamp(1rem, 2.2vh, 1.45rem);
    color: var(--home-accent);
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 0.72vw, 0.9rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.home-section__title {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: clamp(2.55rem, 3.3vw, 4.35rem);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.home-section__title>span {
    display: block;
}

.home-section__title--intro {
    font-size: clamp(2.75rem, 3.45vw, 4.65rem);
}

.home-section__title--compact {
    max-width: 9ch;
}

.home-section__accent {
    color: var(--home-accent);
}

.home-section__lead {
    max-width: 37rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1vw, 1.18rem);
    font-weight: 400;
    line-height: 1.48;
}

.home-section__body> :first-child {
    margin-top: 0;
}

.home-section__lead a {
    color: #ffffff;
    text-decoration-color: rgba(196, 143, 86, 0.95);
    text-underline-offset: 0.22em;
}

.home-section__lead a:hover {
    color: var(--color-accent);
}

.home-section__lead a:focus-visible,
.home-contact-row:focus-visible,
.home-section-nav__link:focus-visible,
.home-gallery__arrow:focus-visible,
.home-gallery__dot:focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 4px;
}

.home-stats {
    display: grid;
    max-width: 40rem;
    margin: clamp(2rem, 4.3vh, 3.4rem) 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-stat {
    position: relative;
    margin: 0;
    padding: 0 clamp(1.1rem, 2vw, 2.2rem);
}

.home-stat:first-child {
    padding-left: 0;
}

.home-stat:last-child {
    padding-right: 0;
}

.home-stat+.home-stat::before {
    position: absolute;
    top: 0.55rem;
    bottom: 1.9rem;
    left: 0;
    width: 1px;
    content: '';
    background: rgba(255, 255, 255, 0.16);
}

.home-stat dd {
    margin: 0;
    color: var(--home-accent);
    font-family: var(--font-body);
    font-size: clamp(2.55rem, 3vw, 4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.055em;
}

.home-stat dd span {
    font-size: 0.72em;
}

.home-stat dt {
    margin-top: 0.85rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: clamp(0.86rem, 0.86vw, 1.05rem);
    font-weight: 700;
    line-height: 1.22;
}

.home-gallery {
    position: absolute;
    inset: 0;
    background: #0b0b0b;
    touch-action: pan-y pinch-zoom;
}

.home-gallery__viewport,
.home-gallery__track,
.home-gallery__slide {
    height: 100%;
}

.home-gallery__viewport {
    position: relative;
    overflow: hidden;
    clip-path: inset(0);
    isolation: isolate;
}

.home-gallery__track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.home-gallery__slide {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 0 0 100%;
    margin: 0;
    overflow: hidden;
    background: #101010;
}

.home-gallery__slide::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 58%, rgba(0, 0, 0, 0.36)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 36%);
    pointer-events: none;
}

.home-gallery__brand-overlay {
    --home-brand-opacity: 0.22;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    width: min(88%, 56rem);
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(242 242 242 / var(--home-brand-opacity));
    font-family: var(--font-body);
    font-size: clamp(4.5rem, 8.4vw, 10rem);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-align: center;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
    pointer-events: none;
    user-select: none;
}
.home-gallery__brand-overlay span {
    display: block;
    white-space: nowrap;
}

.home-gallery__slide img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    
    height: 100%;
    
    margin: 0;
    object-fit: cover;
    object-position: 50% 50%;
}

.home-gallery__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-content: center;
    justify-items: center;
    background:
        radial-gradient(circle at 68% 35%, rgba(196, 143, 86, 0.15), transparent 29%),
        linear-gradient(135deg, #171717 0%, #0d0d0d 48%, #050505 100%);
    color: rgba(255, 255, 255, 0.28);
    text-align: center;
}

.home-gallery__placeholder span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-gallery__placeholder strong {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    font-weight: 500;
}

.home-gallery__arrows {
    position: absolute;
    bottom: clamp(1.25rem, 3vh, 2.25rem);
    left: clamp(1.35rem, 2.8vw, 2.8rem);
    z-index: 4;
    display: flex;
    gap: 0.7rem;
}

.home-gallery__arrow {
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--color-text-on-dark);
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease;
}

.home-gallery__arrow svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-gallery__arrow--next svg {
    transform: rotate(180deg);
}

.home-gallery__arrow:hover {
    color: var(--home-accent);
}

.home-gallery__arrow:active {
    transform: translateY(1px);
}

.home-gallery__dots {
    position: absolute;
    right: clamp(1.35rem, 2.8vw, 2.8rem);
    bottom: clamp(1.48rem, 3.2vh, 2.48rem);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.48rem;
}

.home-gallery__dot {
    width: 0.64rem;
    height: 0.64rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.home-gallery__dot.is-active {
    background: var(--home-accent);
    transform: scale(1.08);
}

.home-skills {
    max-width: 38rem;
    margin-top: clamp(2rem, 4vh, 3.5rem);
    padding-top: clamp(1.2rem, 2.6vh, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-skill+.home-skill {
    margin-top: clamp(1.45rem, 2.8vh, 2.3rem);
}

.home-skill__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.home-skill__heading h3 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 0.9vw, 1.1rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-skill__heading span {
    position: relative;
    padding: 0.3rem 0.48rem;
    background: #ffffff;
    color: #111111;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.home-skill__heading span::after {
    position: absolute;
    right: 0.55rem;
    bottom: -0.34rem;
    width: 0;
    height: 0;
    content: '';
    border-top: 0.39rem solid #ffffff;
    border-right: 0.37rem solid transparent;
    border-left: 0.37rem solid transparent;
}

.home-skill__track {
    height: 0.32rem;
    margin-top: 0.82rem;
    background: rgba(255, 255, 255, 0.18);
}

.home-skill__track span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--home-accent);
}

.home-values {
    display: grid;
    max-width: 39rem;
    margin-top: clamp(2rem, 4vh, 3.35rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.65rem, 3.2vh, 2.7rem) clamp(1.8rem, 2.6vw, 3rem);
}

.home-value__icon {
    display: block;
    width: 2.55rem;
    height: 2.55rem;
    margin-bottom: 0.65rem;
    color: var(--home-accent);
}

.home-value__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.home-value h3 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.22vw, 1.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.home-value p {
    margin-top: 0.62rem;
    color: var(--color-text-on-dark-muted);
    font-family: var(--font-body);
    font-size: clamp(0.84rem, 0.84vw, 0.98rem);
    line-height: 1.48;
}

.home-section__content-inner--contact {
    width: min(38.75rem, 100%);
}

.home-section__body--contact {
    margin-top: clamp(1.35rem, 2.7vh, 2rem);
}

.home-contact-rule {
    display: block;
    width: 1.45rem;
    height: 1px;
    margin-bottom: clamp(1.3rem, 2.7vh, 2rem);
    background: rgba(255, 255, 255, 0.2);
}

.home-contact-list {
    display: grid;
    max-width: 38rem;
    gap: clamp(0.7rem, 1.45vh, 1rem);
}

.home-contact-row {
    display: grid;
    grid-template-columns: 1.45rem 5.6rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    min-height: 1.7rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.home-contact-row__icon {
    display: inline-grid;
    width: 1.18rem;
    height: 1.18rem;
    place-items: center;
    color: var(--home-accent);
}

.home-contact-row__icon--whatsapp {
    width: 1.22rem;
    height: 1.22rem;
}

.home-contact-row__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.home-contact-row__icon .icon-fill {
    fill: currentColor;
    stroke: none;
}

.home-contact-row__icon .icon-stroke {
    fill: none;
    stroke: currentColor;
}

.home-contact-row__icon--email svg>path:first-child {
    fill: currentColor;
    stroke: none;
}

.home-contact-row__icon--email svg>.icon-stroke {
    stroke: #000000;
    stroke-width: 1.55;
}

.home-contact-row__label,
.home-contact-row__value {
    font: inherit;
}

.home-contact-row__value {
    min-width: 0;
    color: rgba(255, 255, 255, 0.94);
    overflow-wrap: anywhere;
}

.home-contact-row:hover .home-contact-row__value {
    color: var(--home-accent);
}


.contact-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-contact-form-preview {
    display: grid;
    max-width: 38rem;
    margin-top: clamp(1.5rem, 3vh, 2.2rem);
    gap: 1rem;
    font-family: var(--font-body);
}

.home-contact-form-preview__top-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-contact-form-preview__field {
    width: 100%;
    min-height: 2.55rem;
    box-sizing: border-box;
    padding: 0.625rem 1.55rem;
    border: 1px solid #1c1c1c;
    border-radius: 0;
    outline: none;
    background: #0d0d10;
    color: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.7;
    transition: border-color 160ms ease;
}

.home-contact-form-preview__field::placeholder {
    color: rgba(255, 255, 255, 0.72);
    opacity: 1;
}

.home-contact-form-preview__field:focus {
    border-color: var(--home-accent);
}

.home-contact-form-preview__field--message {
    min-height: 6.4rem;
    padding-top: 0.95rem;
    resize: vertical;
}

.home-contact-form-preview__submit {
    width: max-content;
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--home-accent);
    font-family: inherit;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.home-contact-form-preview__submit:disabled {
    cursor: wait;
    opacity: 0.58;
}

.home-contact-form-preview__notice {
    margin: 0;
}

.home-section-nav {
    position: fixed;
    top: 50%;
    right: clamp(1rem, 1.75vw, 1.75rem);
    z-index: 70;
    display: grid;
    width: 2.15rem;
    justify-items: center;
    gap: 2.55rem;
    transform: translateY(-50%);
}

.home-section-nav__link {
    position: relative;
    color: rgba(255, 255, 255, 0.96);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.home-section-nav__link.is-active {
    color: var(--home-accent);
}

.home-section-nav__link.is-active:not(:last-child)::after {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    width: 1px;
    height: 1.6rem;
    content: '';
    background: rgba(255, 255, 255, 0.58);
    transform: translateX(-50%);
}

@media (max-width: 75rem) {

    .home-section__content-inner,
    .home-section__content-inner--intro {
        width: min(38.75rem, 100%);
        padding-right: 3.25rem;
        padding-left: 3.25rem;
    }

    .home-section-nav {
        right: 0.65rem;
    }
}

@media (max-width: 61.999rem) {
    .page-home .site-header {
        background: transparent;
        border-bottom-color: transparent;
    }

    .page-home .site-header::before {
        display: none;
    }

    .home-section__media {
        top: 0;
        bottom: auto;
        width: 100%;
        height: 43%;
    }

    .home-section__content {
        top: 43%;
        bottom: 0;
        width: 100%;
        height: 57%;
        align-items: center;
        justify-content: center;
    }

    .home-section__content-inner,
    .home-section__content-inner--intro {
        width: min(100% - 3rem, 43rem);
        max-height: 100%;
        padding: 1.45rem 0 4.6rem;
    }

    .home-section__body {
        margin-top: 1rem;
    }

    .home-section__eyebrow {
        margin-bottom: 0.75rem;
    }

    .home-section__title,
    .home-section__title--intro {
        font-size: clamp(2rem, 6.7vw, 3.15rem);
    }

    .home-section__lead {
        margin-top: 1.25rem;
        font-size: clamp(0.9rem, 2vw, 1rem);
        line-height: 1.42;
    }

    .home-stats {
        margin-top: 1.35rem;
    }

    .home-stat dd {
        font-size: clamp(2rem, 6.5vw, 3rem);
    }

    .home-stat dt {
        margin-top: 0.55rem;
        font-size: 0.78rem;
    }

    .home-skills {
        margin-top: 1.35rem;
        padding-top: 1rem;
    }

    .home-skill+.home-skill {
        margin-top: 1.05rem;
    }

    .home-skill__track {
        margin-top: 0.55rem;
    }

    .home-values {
        margin-top: 1.35rem;
        gap: 1.2rem 1.6rem;
    }

    .home-value__icon {
        width: 2.1rem;
        height: 2.1rem;
        margin-bottom: 0.45rem;
    }

    .home-value h3 {
        font-size: 1.08rem;
    }

    .home-value p {
        margin-top: 0.4rem;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .home-section__content-inner--contact {
        width: min(100% - 3rem, 43rem);
        padding-top: 0.85rem;
        padding-bottom: 3.6rem;
    }

    .home-section__body--contact {
        margin-top: 0.7rem;
    }

    .home-contact-rule {
        margin-bottom: 0.85rem;
    }

    .home-contact-list {
        gap: 0.5rem;
    }

    .home-contact-form-preview {
        margin-top: 0.75rem;
        gap: 0.55rem;
    }

    .home-contact-form-preview__field {
        min-height: 2.05rem;
        padding: 0.42rem 0.9rem;
        font-size: 0.66rem;
    }

    .home-contact-form-preview__field--message {
        min-height: 3.9rem;
        padding-top: 0.6rem;
    }

    .home-section-nav {
        top: auto;
        right: auto;
        bottom: 0.6rem;
        left: 50%;
        width: auto;
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 0.2rem;
        padding: 0.45rem 0.6rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(10px);
        transform: translateX(-50%);
    }

    .home-section-nav__link {
        display: grid;
        min-width: 2rem;
        height: 2rem;
        place-items: center;
    }

    .home-section-nav__link.is-active::after {
        display: none;
    }
}

@media (max-width: 47.999rem) {
    .page-home {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .page-home #main-content {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .home-page {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .home-section {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .home-section.is-active {
        position: relative;
    }

    .home-section__media,
    .home-section__content {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
    }

    .home-section__media {
        height: min(48dvh, 100vw);
    }

    .home-section__content {
        min-height: 52dvh;
        height: auto;
        align-items: center;
    }

    .home-section__content-inner,
    .home-section__content-inner--intro {
        width: min(100% - 2rem, 38rem);
        max-height: none;
        padding: 1.35rem 0 4.6rem;
    }

    .home-section__body {
        margin-top: 0.75rem;
    }

    .home-section__eyebrow {
        margin-bottom: 0.58rem;
        font-size: 0.65rem;
    }

    .home-section__title,
    .home-section__title--intro {
        font-size: clamp(1.85rem, 8.6vw, 2.75rem);
    }

    .home-section__lead {
        margin-top: 0.95rem;
        font-size: 0.86rem;
        line-height: 1.38;
    }

    .home-stats {
        margin-top: 1rem;
    }

    .home-stat {
        padding: 0 0.65rem;
    }

    .home-stat dd {
        font-size: clamp(1.7rem, 7.5vw, 2.5rem);
    }

    .home-stat dt {
        font-size: 0.68rem;
    }

    .home-stat+.home-stat::before {
        bottom: 1.45rem;
    }

    .home-skills {
        margin-top: 1rem;
    }

    .home-skill+.home-skill {
        margin-top: 0.75rem;
    }

    .home-skill__heading h3 {
        font-size: 0.72rem;
    }

    .home-skill__heading span {
        font-size: 0.66rem;
    }

    .home-values {
        margin-top: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 1rem;
    }

    .home-value__icon {
        width: 1.75rem;
        height: 1.75rem;
        margin-bottom: 0.3rem;
    }

    .home-value h3 {
        font-size: 0.94rem;
    }

    .home-value p {
        margin-top: 0.25rem;
        font-size: 0.72rem;
        line-height: 1.32;
    }

    .home-section__content-inner--contact {
        width: min(100% - 2rem, 38rem);
    }

    .home-contact-row {
        grid-template-columns: 1.25rem 4.7rem minmax(0, 1fr);
        gap: 0.5rem;
        font-size: 0.82rem;
    }

    .home-contact-form-preview__top-row {
        gap: 0.65rem;
    }

    .home-gallery__brand-overlay {
        width: min(90%, 34rem);
        font-size: clamp(3rem, 15vw, 5.8rem);
        line-height: 0.9;
    }

    .home-gallery__arrows {
        bottom: 0.8rem;
        left: 0.65rem;
    }

    .home-gallery__dots {
        right: 0.7rem;
        bottom: 1rem;
    }
}

@media (max-width: 30rem) {

    .home-section__content-inner,
    .home-section__content-inner--intro {
        width: calc(100% - 1.5rem);
        max-height: 100%;
        padding-top: 0.85rem;
        padding-bottom: 4.35rem;
    }

    .home-section__body {
        margin-top: 0.55rem;
    }

    .home-section__title,
    .home-section__title--intro {
        font-size: clamp(1.65rem, 8.4vw, 2.25rem);
    }

    .home-section__lead {
        font-size: 0.8rem;
    }

    .home-stat dd {
        font-size: clamp(1.5rem, 7vw, 2.1rem);
    }

    .home-stat dt {
        font-size: 0.62rem;
    }

    .home-section__content-inner--contact {
        width: calc(100% - 1.5rem);
    }

    .home-contact-row {
        grid-template-columns: 1.1rem 4.25rem minmax(0, 1fr);
        font-size: 0.74rem;
    }

    .home-contact-form-preview {
        margin-top: 0.65rem;
        gap: 0.45rem;
    }

    .home-contact-form-preview__top-row {
        gap: 0.45rem;
    }

    .home-contact-form-preview__field {
        min-height: 1.9rem;
        padding: 0.32rem 0.65rem;
        font-size: 0.6rem;
    }

    .home-contact-form-preview__field--message {
        min-height: 3.4rem;
        padding-top: 0.48rem;
    }

    .home-contact-form-preview__submit {
        margin-top: 0.1rem;
        font-size: 0.56rem;
    }
}

@media (max-height: 43rem) and (min-width: 48rem) and (max-width: 61.999rem) {
    .home-section__media {
        height: 34%;
    }

    .home-section__content {
        top: 34%;
        height: 66%;
    }

    .home-section__content-inner,
    .home-section__content-inner--intro {
        padding-top: 0.75rem;
        padding-bottom: 3.8rem;
    }

    .home-section__body {
        margin-top: 0.4rem;
    }

    .home-section__eyebrow {
        margin-bottom: 0.38rem;
        font-size: 0.6rem;
    }

    .home-section__title,
    .home-section__title--intro {
        font-size: clamp(1.45rem, 6.8vw, 2rem);
    }

    .home-section__lead {
        margin-top: 0.55rem;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .home-stats {
        margin-top: 0.65rem;
    }

    .home-stat dd {
        font-size: 1.45rem;
    }

    .home-stat dt {
        margin-top: 0.25rem;
        font-size: 0.56rem;
    }

    .home-skills,
    .home-values {
        margin-top: 0.65rem;
    }

    .home-section__body--contact {
        margin-top: 0.35rem;
    }

    .home-contact-rule {
        margin-bottom: 0.45rem;
    }

    .home-skill+.home-skill {
        margin-top: 0.5rem;
    }

    .home-skill__track {
        margin-top: 0.35rem;
    }

    .home-values {
        gap: 0.55rem 0.8rem;
    }

    .home-value__icon {
        width: 1.4rem;
        height: 1.4rem;
        margin-bottom: 0.18rem;
    }

    .home-value h3 {
        font-size: 0.8rem;
    }

    .home-value p {
        margin-top: 0.16rem;
        font-size: 0.62rem;
        line-height: 1.22;
    }

    .home-contact-list {
        gap: 0.28rem;
    }

    .home-contact-form-preview {
        margin-top: 0.45rem;
        gap: 0.35rem;
    }

    .home-contact-form-preview__field {
        min-height: 1.75rem;
        padding: 0.28rem 0.55rem;
        font-size: 0.56rem;
    }

    .home-contact-form-preview__field--message {
        min-height: 2.9rem;
        padding-top: 0.4rem;
    }

    .home-section-nav {
        bottom: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-section__media,
    .home-section__content,
    .home-gallery__track,
    .home-gallery__arrow,
    .home-gallery__dot {
        transition: none;
    }
}

/* Mobile performance: avoid expensive navigation backdrop blur. */
@media (max-width: 47.999rem) {
    .home-section-nav {
        backdrop-filter: none;
    }
}
