/* Unified Ultra-Large Typography */

/* Hero Typography - Mai & 舞 */
.hero__title {
    font-size: clamp(2.7rem, 7.2vw, 5.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-right: 0.3em;
    display: inline;
}

.hero__title-line {
    display: inline;
    overflow: hidden;
}

.hero__title-line.is-visible {
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Unified Text - Same Size as Hero */
.unified-text {
    font-size: clamp(2.7rem, 7.2vw, 5.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    display: inline;
}

.text-segment {
    display: inline;
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-dot {
    display: inline;
    opacity: 0;
    margin: 0 0.08em;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger Animation Delays */
.text-segment:nth-child(1) { animation-delay: 0.1s; }
.text-segment:nth-child(3) { animation-delay: 0.2s; }
.text-segment:nth-child(5) { animation-delay: 0.3s; }
.text-segment:nth-child(7) { animation-delay: 0.4s; }
.text-segment:nth-child(9) { animation-delay: 0.5s; }
.text-segment:nth-child(11) { animation-delay: 0.6s; }
.text-segment:nth-child(13) { animation-delay: 0.7s; }
.text-segment:nth-child(15) { animation-delay: 0.8s; }
.text-segment:nth-child(17) { animation-delay: 0.9s; }
.text-segment:nth-child(19) { animation-delay: 1.0s; }
.text-segment:nth-child(21) { animation-delay: 1.1s; }

.text-dot:nth-child(2) { animation-delay: 0.15s; }
.text-dot:nth-child(4) { animation-delay: 0.25s; }
.text-dot:nth-child(6) { animation-delay: 0.35s; }
.text-dot:nth-child(8) { animation-delay: 0.45s; }
.text-dot:nth-child(10) { animation-delay: 0.55s; }
.text-dot:nth-child(12) { animation-delay: 0.65s; }
.text-dot:nth-child(14) { animation-delay: 0.75s; }
.text-dot:nth-child(16) { animation-delay: 0.85s; }
.text-dot:nth-child(18) { animation-delay: 0.95s; }
.text-dot:nth-child(20) { animation-delay: 1.05s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Link Styling */
.contact__link {
    color: inherit;
    text-decoration: none;
    border-bottom: 0.05em solid currentColor;
    transition: opacity 0.3s ease;
}

.contact__link:hover {
    opacity: 0.6;
}

/* Responsive Typography Adjustments */
@media (max-width: 1200px) {
    .hero__title,
    .unified-text {
        font-size: clamp(2.25rem, 6.3vw, 4.5rem);
    }
}

@media (max-width: 768px) {
    .hero__title,
    .unified-text {
        font-size: clamp(1.8rem, 5.4vw, 3.6rem);
    }

    .text-dot {
        margin: 0 0.08em;
    }
}

@media (max-width: 480px) {
    .hero__title,
    .unified-text {
        font-size: clamp(1.35rem, 4.5vw, 2.7rem);
    }

    .unified-text {
        line-height: 1.3;
    }
}

/* Text Selection */
::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-black);
    color: var(--color-white);
}
