:root {
    --hero-ink: #161616;
    --hero-muted: rgba(22, 22, 22, 0.56);
    --hero-line: rgba(22, 22, 22, 0.12);
}

.hero-swiper-section {
    position: relative;
    min-height: 100svh;
    margin-top: calc(-1 * var(--header-height, 60px));
    padding-top: var(--header-height, 60px);
    overflow: visible;
    background: #ffffff;
}

.hero-awwwards {
    position: relative;
    min-height: calc(100svh - var(--header-height, 60px));
    padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3vw, 3rem) clamp(4.75rem, 8vw, 6rem);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    transform: translateY(clamp(-1.25rem, -2vw, -0.5rem));
    overflow: visible;
}

.hero-awwwards-copy,
.hero-awwwards-visual,
.hero-swiper-section .scroll-indicator {
    position: relative;
    z-index: 1;
}

.hero-awwwards-copy {
    position: relative;
    max-width: 580px;
    align-self: center;
    justify-self: start;
    top: 150px;
    margin-top: 0;
    animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title-lockup {
    margin-bottom: 1.75rem;
}

.hero-eyebrow {
    margin-bottom: 1rem;
    color: rgba(22, 22, 22, 0.48);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-display-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.14em;
    margin: 0;
    width: max-content;
    max-width: 100%;
    color: var(--hero-ink);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(3.45rem, 7vw, 5.6rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-display-title span {
    display: block;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(28px);
    animation: heroTitleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-display-title span:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-display-title .title-shift {
    padding-left: clamp(0.4rem, 1vw, 1rem);
}

.hero-lead-copy {
    max-width: 23rem;
    margin-bottom: 2rem;
    color: rgba(22, 22, 22, 0.7);
    font-size: clamp(0.95rem, 1.15vw, 1.02rem);
    line-height: 1.95;
}

.hero-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    color: rgba(22, 22, 22, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-inline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-inline-meta span::after {
    display: none;
}

.hero-inline-meta span:last-child::after {
    display: none;
}

.hero-awwwards-visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 1.5rem;
    align-items: end;
    align-self: center;
    top: -180px;
    margin-top: 0;
    transform: none;
}

.hero-manifesto-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1; /* Ensure stacking context for ::before */
}

.hero-manifesto-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-footer-color, #1a1a1a);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1; /* Places it behind the text but inside the item */
}

.hero-manifesto-item:hover {
    padding-left: 2.25rem;
}

.hero-manifesto-item:hover::before {
    opacity: 1;
}

.hero-manifesto-index {
    flex: 0 0 2rem;
    padding-top: 0.35rem;
    color: rgba(22, 22, 22, 0.38);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-manifesto-item:hover .hero-manifesto-index {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(4px);
}

.hero-manifesto-text {
    display: block;
    color: #1b1b1b;
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.95rem);
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-manifesto-item:hover .hero-manifesto-text {
    color: #ffffff;
}

.hero-side-note {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.1rem;
}

.hero-corner-slider {
    position: absolute;
    right: -0.75rem;
    top: calc(100% + 11rem);
    width: clamp(220px, 22vw, 320px);
    z-index: 2;
    --hero-corner-image-focus-y: 50%;
    will-change: transform, width;
}

.hero-corner-slider-track {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    /* Hardware-accelerated clip-path must use exactly 4 radius values to prevent GSAP interpolation snap bugs */
    clip-path: inset(0% 0% 0% 0% round 2% 2% 2% 2%);
    background: transparent;
    box-shadow: none;
    transform-origin: right bottom;
    line-height: 0;
    will-change: clip-path, height;
    contain: layout paint;
}

.hero-corner-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.01); /* Kept slightly scaled up permanently to cover rounding gaps, removing 1.05 so no snapping occurs without transition */
    /* removed transform from transition to stop it from fighting GSAP scroll rendering */
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    contain: paint;
}

.hero-corner-slide.is-active {
    opacity: 1;
}

.hero-corner-slide img {
    position: absolute;
    top: -6px;
    left: -8px;
    width: calc(100% + 16px) !important;
    height: calc(100% + 12px) !important;
    object-fit: cover !important;
    object-position: 50% var(--hero-corner-image-focus-y);
    display: block !important;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transform-origin: center center;
}

.hero-corner-slider-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding-right: 8px;
    padding-top: 0.65rem;
    font-family: var(--font-en);
    font-weight: 400;
    color: rgba(22, 22, 22, 0.58);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    overflow: hidden;
}

.hero-corner-slider-count {
    margin-left: auto;
    text-align: right;
    font-family: inherit;
    font-weight: inherit;
}

.hero-corner-slider-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.hero-corner-slider-label::before {
    display: none;
}

.hero-side-copy {
    margin: 0;
    padding-left: 1rem;
    /* border-left removed */
    color: var(--hero-muted);
    font-size: 0.78rem;
    line-height: 1.95;
}

.hero-cta-inline {
    min-height: 52px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    transition: padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-primary {
    background: transparent;
    color: var(--hero-ink);
    /* border removed */
    box-shadow: none;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #3a3a39;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.hero-cta-inline:hover {
    padding-left: 2rem;
    color: #ffffff;
}

.hero-cta-primary:hover::before {
    opacity: 1;
}

.hero-swiper-section .scroll-indicator {
    right: clamp(1rem, 2vw, 2rem);
    bottom: clamp(1.1rem, 2vw, 1.8rem);
    gap: 0.7rem;
}

.hero-swiper-section .scroll-text {
    color: rgba(22, 22, 22, 0.68);
    font-size: 0.58rem;
    letter-spacing: 0.24em;
}

.hero-swiper-section .scroll-line {
    display: none;
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .hero-awwwards {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        transform: translateY(-0.5rem);
    }

    .hero-awwwards-copy {
        max-width: 100%;
        top: 92px;
    }

    .hero-awwwards-visual {
        grid-template-columns: 1fr;
        gap: 1rem;
        top: -110px;
        transform: none;
    }

    .hero-corner-slider {
        position: relative;
        right: auto;
        top: auto;
        width: min(100%, 320px);
        margin-top: 1.25rem;
    }

    .hero-manifesto-text {
        font-size: clamp(1.1rem, 3vw, 1.55rem);
    }

    .hero-side-note {
        padding-left: 0;
    }

    .hero-side-copy {
        max-width: 24rem;
    }
}

@media (max-width: 767px) {
    .hero-swiper-section {
        min-height: 100svh;
    }

    .hero-awwwards {
        min-height: calc(100svh - var(--header-height, 60px));
        padding: 1rem 1rem 5.5rem;
        gap: 1.5rem;
        transform: none;
    }

    .hero-eyebrow,
    .hero-inline-meta,
    .hero-cta-inline {
        letter-spacing: 0.16em;
    }

    .hero-display-title {
        font-size: clamp(2.9rem, 14vw, 4.6rem);
        line-height: 0.94;
    }

    .hero-awwwards-copy {
        top: 60px;
    }

    .hero-awwwards-visual {
        top: -72px;
        transform: none;
    }

    .hero-display-title .title-shift {
        padding-left: 0.25rem;
    }

    .hero-lead-copy {
        max-width: 19rem;
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .hero-inline-meta {
        gap: 0.5rem 0.8rem;
    }

    .hero-inline-meta span::after {
        display: none;
    }

    .hero-manifesto-item {
        gap: 0.75rem;
        padding: 0.95rem 0;
    }

    .hero-manifesto-text {
        font-size: 1rem;
        line-height: 1.35;
    }

    .hero-corner-slider {
        width: min(100%, 260px);
        margin-top: 1rem;
    }

    .hero-corner-slider-meta {
        font-size: 0.56rem;
        letter-spacing: 0.12em;
    }

    .hero-side-copy {
        max-width: none;
        padding-left: 0.85rem;
    }

    .hero-cta-inline {
        width: 100%;
    }

    .hero-swiper-section .scroll-indicator {
        right: 0.75rem;
        bottom: 1rem;
    }
}

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

    .hero-display-title span,
    .hero-awwwards-copy,
    .hero-manifesto-item,
    .hero-corner-slide,
    .hero-corner-slider-track,
    .hero-corner-slider-meta,
    .hero-swiper-section .scroll-line {
        animation: none !important;
        transition: none !important;
    }
}
