/* ============================================
   miris.works — Minimalist Production Showcase
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: #4A4A4A;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #1A1A1A;
    line-height: 1;
}

.mono {
    font-family: 'Space Mono', monospace;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px clamp(30px, 6vw, 120px);
    overflow: hidden;
}

/* Background decorative text */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(15rem, 30vw, 40rem);
    color: #E0E0E0;
    opacity: 0.15;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.05em;
    z-index: 0;
    transition: opacity 1.2s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* F-pattern: top row — title left, meta right */
.hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title-dot {
    color: #D04040;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.meta-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meta-divider {
    width: 30px;
    height: 1px;
    background-color: #E0E0E0;
}

/* Counters row */
.hero-counters {
    display: flex;
    gap: clamp(30px, 5vw, 80px);
    margin-bottom: 80px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.counter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.counter-number {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1A1A1A;
    font-weight: 400;
    line-height: 1;
}

.counter-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Collage imagery */
.hero-collage {
    position: relative;
    height: clamp(250px, 40vw, 400px);
    margin-top: 20px;
}

.collage-piece {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.collage-piece:hover {
    transform: scale(1.02);
    z-index: 10;
}

.collage-piece-1 {
    width: clamp(200px, 35vw, 420px);
    height: clamp(150px, 25vw, 300px);
    top: 0;
    left: 0;
    transform: rotate(-2deg);
    z-index: 3;
    opacity: 0;
    animation: slideInCollage1 1s ease 1s forwards;
}

.collage-piece-1:hover {
    transform: rotate(-2deg) scale(1.02);
}

.collage-piece-2 {
    width: clamp(180px, 30vw, 360px);
    height: clamp(130px, 22vw, 260px);
    top: clamp(20px, 4vw, 50px);
    left: clamp(160px, 28vw, 340px);
    transform: rotate(1.5deg);
    z-index: 2;
    opacity: 0;
    animation: slideInCollage2 1s ease 1.2s forwards;
}

.collage-piece-2:hover {
    transform: rotate(1.5deg) scale(1.02);
}

.collage-piece-3 {
    width: clamp(160px, 25vw, 300px);
    height: clamp(120px, 20vw, 230px);
    top: clamp(50px, 8vw, 100px);
    left: clamp(380px, 55vw, 680px);
    transform: rotate(-1deg);
    z-index: 1;
    opacity: 0;
    animation: slideInCollage3 1s ease 1.4s forwards;
}

.collage-piece-3:hover {
    transform: rotate(-1deg) scale(1.02);
}

.collage-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.collage-inner svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-placeholder {
    width: 100%;
    height: 100%;
}

.collage-label {
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: clamp(30px, 6vw, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 1.8s forwards;
}

.scroll-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: #E0E0E0;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #D04040;
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   WORKS SECTION
   ============================================ */
#works {
    padding: clamp(60px, 10vw, 140px) clamp(30px, 6vw, 120px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: clamp(40px, 6vw, 80px);
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.03em;
}

.section-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #7A7A7A;
    letter-spacing: 0.1em;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 80px);
}

/* Featured (first) work item - large */
.work-item-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
}

.work-item-featured .work-image {
    aspect-ratio: 8 / 5;
}

/* Regular work items */
.work-item:not(.work-item-featured) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
}

.work-item:nth-child(odd):not(.work-item-featured) {
    direction: rtl;
}

.work-item:nth-child(odd):not(.work-item-featured) > * {
    direction: ltr;
}

.work-image {
    overflow: hidden;
    background: #F5F5F5;
    position: relative;
}

.work-image svg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.work-item:hover .work-image svg {
    transform: scale(1.03);
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 0.02em;
    position: relative;
}

.work-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #D04040;
    margin-top: 12px;
    transition: width 0.3s ease;
}

.work-item:hover .work-title::after {
    width: 60px;
}

.work-description {
    color: #4A4A4A;
    font-weight: 300;
    max-width: 500px;
}

.work-meta {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.work-year,
.work-platform {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.work-year::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #D04040;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
#statistics {
    padding: clamp(60px, 10vw, 140px) clamp(30px, 6vw, 120px);
    background: #FFFFFF;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 40px);
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: clamp(20px, 3vw, 40px) 0;
    border-top: 1px solid #E0E0E0;
    position: relative;
}

.stat-block::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #D04040;
}

.stat-number {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1A1A1A;
    line-height: 1;
}

.stat-suffix {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #D04040;
    display: inline;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 8px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    padding: clamp(60px, 10vw, 140px) clamp(30px, 6vw, 120px);
}

.about-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-lead {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 500;
    color: #1A1A1A;
    line-height: 1.7;
}

.about-body {
    font-weight: 300;
    color: #4A4A4A;
}

.about-aside {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid #E0E0E0;
    padding-left: clamp(20px, 3vw, 40px);
}

.about-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid #E0E0E0;
}

.about-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.detail-value {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #1A1A1A;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    padding: clamp(40px, 6vw, 80px) clamp(30px, 6vw, 120px);
    border-top: 1px solid #E0E0E0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-dot {
    color: #D04040;
}

.footer-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #7A7A7A;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: clamp(40px, 6vw, 80px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.footer-link {
    font-size: 0.9rem;
    color: #4A4A4A;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #D04040;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
}

.footer-copyright {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #7A7A7A;
    letter-spacing: 0.05em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInCollage1 {
    from {
        opacity: 0;
        transform: rotate(-2deg) translateX(-60px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotate(-2deg) translateX(0) translateY(0);
    }
}

@keyframes slideInCollage2 {
    from {
        opacity: 0;
        transform: rotate(1.5deg) translateX(40px) translateY(30px);
    }
    to {
        opacity: 1;
        transform: rotate(1.5deg) translateX(0) translateY(0);
    }
}

@keyframes slideInCollage3 {
    from {
        opacity: 0;
        transform: rotate(-1deg) translateX(80px) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: rotate(-1deg) translateX(0) translateY(0);
    }
}

@keyframes scrollPulse {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .work-item-featured {
        grid-template-columns: 1fr;
    }

    .work-item:not(.work-item-featured) {
        grid-template-columns: 1fr;
    }

    .work-item:nth-child(odd):not(.work-item-featured) {
        direction: ltr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-aside {
        border-left: none;
        border-top: 1px solid #E0E0E0;
        padding-left: 0;
        padding-top: 20px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-top-row {
        flex-direction: column;
    }

    .hero-counters {
        gap: 24px;
    }

    .counter-item {
        min-width: 100px;
    }

    .hero-collage {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .collage-piece {
        position: relative;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .collage-piece-1,
    .collage-piece-2,
    .collage-piece-3 {
        animation: fadeIn 0.8s ease forwards;
    }

    .collage-piece:hover {
        transform: none !important;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .hero-counters {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
