/* ============================================
   COCOON V3 — Dark Cinematic Design
   Inspired by mew.xyz • Art-first presentation
============================================ */

/* === RESET === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit
}

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

ul,
ol {
    list-style: none
}

/* === TOKENS === */
:root {
    --black: #0a0a0a;
    --surface: #111111;
    --surface-2: #181818;
    --surface-3: #222;
    --text: #f0ede8;
    --text-dim: #c4b9ab;
    --text-muted: #8a8578;
    --accent: #c2703e;
    --accent-2: #b8965a;
    --blue: #2d7fc1;
    --teal: #38b5a0;
    --purple: #7b5ea7;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --glow: 0 0 80px rgba(194, 112, 62, 0.12);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --hero-size: clamp(4rem, 14vw, 12rem);
    --h2: clamp(2rem, 5vw, 4rem);
    --h3: clamp(1.3rem, 2vw, 1.8rem);
    --body: clamp(0.95rem, 1vw, 1.1rem);
    --small: clamp(0.75rem, 0.8vw, 0.85rem);
    --label: clamp(0.65rem, 0.7vw, 0.75rem);
    --section-pad: clamp(5rem, 12vh, 10rem);
    --container: 1200px;
    --pad: clamp(1.25rem, 3vw, 2.5rem);
    --ease: cubic-bezier(.25, .46, .45, .94);
    --radius: 12px;
}

/* === BASE === */
body {
    font-family: var(--font-body);
    font-size: var(--body);
    color: var(--text);
    background: var(--black);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1
}

p {
    max-width: 62ch;
    line-height: 1.75
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px
}

::selection {
    background: var(--accent);
    color: var(--text)
}

/* Grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad)
}

.section {
    padding: var(--section-pad) 0;
    position: relative
}

.section--dark {
    background: var(--surface)
}

.section__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 5rem)
}

.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--label);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section__title {
    font-size: var(--h2);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem
}

.section__sub {
    font-size: var(--body);
    color: var(--text-muted);
    max-width: 50ch;
    margin: 0 auto;
    font-weight: 300
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    transition: top .2s;
}

.skip-link:focus {
    top: 1rem
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .35s var(--ease), box-shadow .35s;
}

.header--scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem var(--pad)
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    transition: color .2s
}

.nav__logo:hover {
    color: var(--accent)
}

/* Burger */
.nav__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    padding: 4px 0;
    z-index: 101
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .2s
}

.nav__burger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.nav__burger--open span:nth-child(2) {
    opacity: 0
}

.nav__burger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* Menu */
.nav__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: fixed;
    inset: 0;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}

.nav__menu--open {
    opacity: 1;
    visibility: visible
}

.nav__link {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color .2s;
    position: relative
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .35s
}

.nav__link:hover::after {
    width: 100%
}

.nav__link:hover {
    color: var(--accent)
}

/* Lang */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 101;
    margin-left: auto;
    margin-right: 1rem
}

.lang-btn {
    font-size: var(--label);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .2s, background .2s
}

.lang-btn:hover {
    color: var(--accent)
}

.lang-btn--active {
    color: var(--text);
    background: var(--accent)
}

.lang-sep {
    color: var(--surface-3);
    font-size: var(--label)
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.72)),
        url('../assets/inside_1.jpg') center / cover no-repeat;
    animation: heroPulse 12s ease-in-out infinite alternate;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(194, 112, 62, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 30% 60%, rgba(45, 127, 193, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 30%, rgba(56, 181, 160, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--hero-size);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 0.9;
    /* Text masking with animated gradient (artwork placeholder) */
    background: linear-gradient(135deg,
            var(--blue) 0%, var(--teal) 25%, var(--accent) 50%, var(--purple) 75%, var(--blue) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
    margin-bottom: 1.5rem;
}

.hero__sub {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    animation: fadeUp .8s var(--ease) .4s both;
}

.hero__tagline {
    font-size: var(--body);
    color: var(--text-dim);
    max-width: 44ch;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeUp .8s var(--ease) .6s both;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--small);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.75rem 2rem;
    border: 1px solid rgba(194, 112, 62, 0.4);
    border-radius: 100px;
    transition: all .35s var(--ease);
    animation: fadeUp .8s var(--ease) .8s both;
}

.hero__cta:hover {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--glow)
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%)
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-2), transparent);
    animation: scrollPulse 2s ease infinite
}

/* === ABOUT === */
.about__intro {
    max-width: 60ch;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.85;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem
}

.pillar {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}

.pillar:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--glow)
}

.pillar__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem
}

.pillar__title {
    font-size: var(--h3);
    margin-bottom: 0.5rem;
    color: var(--accent-2)
}

.pillar__text {
    font-size: var(--small);
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.7;
    max-width: 32ch;
    margin: 0 auto
}

/* === MEMBERS === */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem
}

.member {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
    cursor: pointer;
}

.member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover)
}

.member__portrait {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    transition: transform .5s var(--ease);
}

.member__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease), filter .5s;
    filter: saturate(0.85) brightness(0.92);
}

.member:hover .member__portrait img {
    transform: scale(1.06);
    filter: saturate(1) brightness(1);
}

.member:hover .member__portrait {
    transform: scale(1.03)
}

.member__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 4px
}

.member__role {
    font-size: var(--small);
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.04em
}

.member__bio {
    margin-top: 0.75rem;
    font-size: var(--small);
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .5s var(--ease), opacity .35s, margin .35s;
}

.member--open .member__bio {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem
}

.member__sc {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    font-size: var(--label);
    color: var(--accent);
    letter-spacing: 0.04em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .35s;
}

.member--open .member__sc {
    opacity: 1;
    max-height: 40px
}

/* === C³ === */
.c3__intro {
    max-width: 60ch;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.85
}

.c3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem
}

.c3-card {
    background: linear-gradient(145deg, rgba(194, 112, 62, 0.06), rgba(184, 150, 90, 0.03));
    border: 1px solid rgba(194, 112, 62, 0.12);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}

.c3-card:hover {
    transform: translateY(-4px);
    border-color: rgba(194, 112, 62, 0.25);
    box-shadow: var(--glow)
}

.c3-card__badge {
    display: inline-block;
    font-size: var(--label);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(194, 112, 62, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.c3-card__title {
    font-size: var(--h3);
    margin-bottom: 0.25rem
}

.c3-card__subtitle {
    font-size: var(--small);
    color: var(--accent-2);
    margin-bottom: 1rem;
    font-weight: 400
}

.c3-card__detail {
    margin-bottom: 0.75rem
}

.c3-card__detail-label {
    display: block;
    font-size: var(--label);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem
}

.c3-card__detail-value {
    font-size: var(--small);
    color: var(--text-dim);
    line-height: 1.6
}

/* === GALLERY === */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap
}

.gallery-tab {
    font-size: var(--small);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all .25s;
}

.gallery-tab:hover {
    color: var(--text);
    border-color: var(--border-hover)
}

.gallery-tab--active {
    color: var(--text);
    background: var(--accent);
    border-color: var(--accent)
}

.gallery-panel {
    display: none
}

.gallery-panel--active {
    display: block
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
    display: block;
}

.gallery-item:hover .gallery-item__img {
    transform: scale(1.05)
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity .35s;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1
}

.gallery-item__title {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 2px
}

.gallery-item__artist {
    font-size: var(--label);
    color: var(--text-muted)
}

/* Music */
.gallery-grid--music {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 1.5rem
}

.music-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.music-item__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 2px
}

.music-item__artist {
    font-size: var(--small);
    color: var(--text-muted);
    margin-bottom: 1rem
}

.music-item iframe {
    border-radius: 8px;
    width: 100%;
    border: none
}

/* === CONTACT === */
.contact {
    text-align: center
}

.contact__text {
    max-width: 50ch;
    margin: 0 auto 2rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.8
}

.contact__email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--h3);
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    position: relative;
    transition: color .2s;
}

.contact__email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .35s var(--ease)
}

.contact__email:hover::after {
    transform: scaleX(1)
}

.contact__social {
    display: flex;
    justify-content: center;
    gap: 1rem
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all .25s;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px)
}

.social-link svg {
    width: 20px;
    height: 20px
}

/* === FOOTER === */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border)
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem
}

.footer__logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.08em
}

.footer__line {
    font-size: var(--small);
    color: var(--text-muted);
    font-weight: 300
}

.footer__copy {
    font-size: var(--label);
    color: var(--text-muted)
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--delay, 0s)
}

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

/* === KEYFRAMES === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px)
    }

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes heroPulse {
    0% {
        opacity: .6
    }

    100% {
        opacity: 1
    }
}

@keyframes scrollPulse {
    0% {
        opacity: 1;
        transform: scaleY(1)
    }

    50% {
        opacity: .3;
        transform: scaleY(.6)
    }

    100% {
        opacity: 1;
        transform: scaleY(1)
    }
}

/* === RESPONSIVE === */
@media(min-width:768px) {
    .nav__burger {
        display: none
    }

    .nav__menu {
        position: static;
        flex-direction: row;
        opacity: 1;
        visibility: visible;
        background: transparent;
        gap: 2rem
    }

    .nav__link {
        font-size: var(--small)
    }

    .pillars {
        grid-template-columns: repeat(3, 1fr)
    }

    .c3-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

/* === REDUCED MOTION === */
@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important
    }

    html {
        scroll-behavior: auto
    }
}