/* ============================================================
   tsundere.studio — styles.css
   Palette: #09090B, #E8E8EC, #00FFD1, #7B2FFF, #FF2D6E, #1A1A24
   Fonts: DM Sans (200/400/900), JetBrains Mono (400)
   ============================================================ */

/* Color reference: #E8E8E8 base white, adjusted to cool-shifted #E8E8EC in practice */
/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    background: #09090B;
    color: #E8E8EC;
    font-family: 'DM Sans', sans-serif;
}

body {
    position: relative;
    background: #09090B;
}

/* Noise overlay pseudo-element */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    filter: url(#noise);
    z-index: 9999;
    background: #09090B;
}

/* ---- Acts / Scroll Sections ---- */
.act {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.act-inner {
    max-width: 760px;
    width: 100%;
    padding: 0 40px;
}

/* ---- Act I: COLD OPEN ---- */
.act-cold-open {
    background: #09090B;
}

#studio-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 200;
    font-size: clamp(48px, 10vw, 96px);
    letter-spacing: -0.02em;
    color: #E8E8EC;
    line-height: 1;
    user-select: none;
}

/* Terminal cursor — one-shot, 4s then gone */
#cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #E8E8EC;
    vertical-align: baseline;
    margin-left: 4px;
    font-size: 0.85em;
    animation: cursor-blink 0.5s step-end 8 forwards;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hairline-rule {
    height: 1px;
    background: rgba(0, 255, 209, 0.20);
    margin-top: 48px;
    width: 0;
    transition: width 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hairline-rule.is-visible {
    width: 100%;
}

/* ---- Act II: RUPTURE ---- */
.act-rupture {
    background: #09090B;
    position: relative;
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, #00FFD1 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, #7B2FFF 0%, transparent 50%),
        #09090B;
    background-size: 200% 200%;
    animation: mesh-drift 12s ease infinite;
}

@keyframes mesh-drift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.act-rupture-inner {
    position: relative;
    z-index: 2;
}

.rupture-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 10vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #E8E8EC;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
}

.rupture-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
}

.rupture-text .word.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Act III: DISCIPLINE ---- */
.act-discipline {
    background: #09090B;
}

.act-discipline-inner {
    padding-top: 120px;
    padding-bottom: 120px;
}

.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-list li {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #E8E8EC;
    line-height: 2.4;
    opacity: 0;
    transform: translateY(16px);
    text-transform: lowercase;
}

.capability-list li.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Act IV: SPARK ---- */
.act-spark {
    background: #09090B;
    position: relative;
}

.act-spark-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-top: 120px;
    padding-bottom: 120px;
}

/* Rotating geometry circle */
.geometry-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(0, 255, 209, 0.25);
    top: 30%;
    right: 10%;
    animation: slow-rotate 300s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.project-block {
    opacity: 0;
    transform: translateY(16px);
}

.project-block.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #E8E8EC;
    opacity: 0.5;
    display: block;
    margin-bottom: 12px;
}

.active-project {
    color: #FF2D6E;
    opacity: 1;
}

.project-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: clamp(64px, 12vw, 120px);
    letter-spacing: -0.03em;
    color: #E8E8EC;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.neon-underline {
    display: block;
    height: 3px;
    background: #00FFD1;
    width: 0;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 8px;
}

.project-block.revealed .neon-underline {
    width: 100%;
}

/* ---- Act V: CONTACT ---- */
.act-contact {
    background: #09090B;
}

.act-contact-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
}

.contact-email {
    font-family: 'DM Sans', sans-serif;
    font-weight: 200;
    font-size: clamp(24px, 5vw, 48px);
    letter-spacing: -0.01em;
    color: #E8E8EC;
    text-decoration: none;
    display: block;
    cursor: pointer;
    white-space: nowrap;
}

.contact-email .char {
    display: inline-block;
    transition: color 80ms ease;
}

.contact-email:hover .char {
    color: #00FFD1;
}

.hairline-act5 {
    width: 100%;
    transition: width 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hairline-act5.is-visible {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 40px;
}

.social-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #E8E8EC;
    opacity: 0.30;
    text-decoration: none;
    transition: opacity 300ms ease;
}

.social-link:hover {
    opacity: 0.8;
}

/* ---- Fade-reveal base state ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Mobile: disable scroll-snap ---- */
@media (max-width: 767px) {
    html {
        scroll-snap-type: none;
    }

    .act {
        min-height: 100svh;
        scroll-snap-align: none;
    }

    .rupture-text {
        font-size: 48px;
    }

    .project-title {
        font-size: 64px;
    }

    .contact-email {
        font-size: 24px;
        white-space: normal;
        word-break: break-all;
    }

    .geometry-circle {
        display: none;
    }
}
