/* ============================================================
   RHYTHMIC TRANSMITTERS — Main Stylesheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --color-cream: #f5f0e8;
    --color-dark: #12111a;
    --color-dark-mid: #1a1828;
    --color-text-dark: #1e1e2e;
    --color-text-muted: #6b6880;
    --color-italic-pink: #c0647a;
    --color-quote-orange: #c0392b;
    --color-quote-border: #c0392b;
    --color-teal: #1a9e9e;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Raleway', sans-serif;
    --rainbow: linear-gradient(90deg,
        #e74c3c 0%,
        #e67e22 12%,
        #f1c40f 24%,
        #2ecc71 36%,
        #1abc9c 48%,
        #3498db 60%,
        #9b59b6 72%,
        #e91e63 84%,
        #e74c3c 100%
    );
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--color-cream);
    color: var(--color-text-dark);
    overflow-x: hidden;
}

/* ============================================================
   RAINBOW BARS
   ============================================================ */
.rainbow-bar {
    width: 100%;
    height: 4px;
    background: var(--rainbow);
    position: fixed;
    z-index: 1000;
    left: 0;
}
.rainbow-bar.top { top: 0; }
.rainbow-bar.bottom { bottom: 0; }

/* ============================================================
   SIDE NAVIGATION
   ============================================================ */
.sidenav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}
.sidenav__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}
.sidenav__dot:hover {
    transform: translateX(-2px);
}
.sidenav__dot-inner {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}
.sidenav__symbol {
    width: 16px;
    height: 16px;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.sidenav__dot.active .sidenav__symbol,
.sidenav__dot:hover .sidenav__symbol {
    opacity: 1;
}
.sidenav__symbol::before,
.sidenav__symbol::after {
    border-color: var(--symbol-color) !important;
    color: var(--symbol-color) !important;
}

/* -- Planetary Symbols -- */
.sidenav__symbol--sun::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1.2px solid #12111a;
    border-radius: 50%;
}
.sidenav__symbol--sun::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 2px; height: 2px;
    background: #12111a;
    border-radius: 50%;
}
.sidenav__symbol--concentric::before,
.sidenav__symbol--concentric::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    border: 1.2px solid #12111a;
}
.sidenav__symbol--concentric::before { width: 14px; height: 14px; }
.sidenav__symbol--concentric::after { width: 8px; height: 8px; }

.sidenav__symbol--mars::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1.2px solid #12111a;
    border-radius: 50%;
}
.sidenav__symbol--mars::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 10px; height: 1.2px;
    background: #12111a;
}

.sidenav__symbol--venus::before {
    content: '♀';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.sidenav__symbol--mercury::before {
    content: '☿';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.sidenav__symbol--crescent::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1.2px solid #12111a;
    border-radius: 50%;
    clip-path: polygon(0 0, 65% 0, 65% 100%, 0 100%);
}

/* -- Dark Mode Inversion -- */
.sidenav__dot--dark .sidenav__symbol--sun::after,
.sidenav__dot--dark .sidenav__symbol--mars::after { background: var(--symbol-color) !important; }

.sidenav__label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--symbol-color);
    opacity: 0;
    position: absolute;
    right: 100%;
    margin-right: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    transform: translateX(8px);
}
.sidenav__dot:hover .sidenav__label {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   WAVE DIVIDERS
   ============================================================ */
.wave-divider {
    width: 100%;
    height: 120px;
    position: relative;
    z-index: 10;
    overflow: visible; /* Allow wave to span full width */
}

.wave-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Light to Dark (Transition into dark section) */
.wave--light-to-dark {
    background-color: var(--color-dark);
    margin-top: -1px;
}
.wave--light-to-dark::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23f2ede4' d='M0,160L60,176C120,192,240,224,360,224C480,224,600,192,720,170.7C840,149,960,139,1080,149.3C1200,160,1320,192,1380,208L1440,224L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}

/* Dark to Light (Transition into light section) */
.wave--dark-to-light {
    background-color: #f2ede4;
    margin-top: -1px;
}
.wave--dark-to-light::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%2312111a' d='M0,160L60,176C120,192,240,224,360,224C480,224,600,192,720,170.7C840,149,960,139,1080,149.3C1200,160,1320,192,1380,208L1440,224L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px 60px;
}
.hero__bubbles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}
.hero__tagline {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #8a8eb0;
    margin-bottom: 32px;
    text-transform: uppercase;
}
.hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}
.hero__title-main {
    font-family: var(--font-serif);
    font-size: clamp(64px, 10vw, 110px);
    font-weight: 400;
    color: var(--color-text-dark);
    line-height: 1;
    display: block;
    letter-spacing: -0.01em;
}
.hero__title-italic {
    font-family: var(--font-serif);
    font-size: clamp(60px, 9.5vw, 104px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-italic-pink);
    line-height: 1;
    display: block;
    margin-top: -10px;
}
.hero__description {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 300;
    color: #4a4860;
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hero__tag {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--color-text-dark);
    border: 1px solid rgba(30,30,46,0.3);
    border-radius: 50px;
    padding: 8px 18px;
    background: transparent;
}

/* ============================================================
   COSMOS SECTION
   ============================================================ */
.cosmos {
    background: var(--color-dark);
    position: relative;
    padding-bottom: 80px;
}
.cosmos__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}
.cosmos__header {
    text-align: center;
    margin-bottom: 60px;
}
.cosmos__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
}
.cosmos__subtitle {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}
.cosmos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.cosmos__card {
    border-radius: 18px;
    padding: 0;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.cosmos__card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cosmos__card-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    opacity: 0.15;
}
.cosmos__card-symbol--concentric::before,
.cosmos__card-symbol--concentric::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    border: 1.5px solid #fff;
}
.cosmos__card-symbol--concentric::before { width: 70px; height: 70px; }
.cosmos__card-symbol--concentric::after { width: 42px; height: 42px; }
.cosmos__card-symbol--circle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1.5px solid #fff;
}
.cosmos__card-symbol--spiral::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    border-right-color: transparent;
}
.cosmos__card-symbol--vesica::before,
.cosmos__card-symbol--vesica::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 60px;
    border-radius: 50%;
    border: 1.5px solid #fff;
}
.cosmos__card-symbol--vesica::before { transform: translate(-68%,-50%); }
.cosmos__card-symbol--vesica::after { transform: translate(-32%,-50%); }
.cosmos__card-symbol--infinity::before {
    content: '∞';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 48px;
    color: #fff;
    font-family: Georgia, serif;
}
.cosmos__card-symbol--crescent::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%);
}
.cosmos__card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 22px;
}
.cosmos__card-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
}
.cosmos__card-qualities {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
    text-transform: uppercase;
}
.cosmos__card-form {
    font-family: var(--font-serif);
    font-size: 12px;
    font-style: italic;
    color: rgba(255,255,255,0.6);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.about__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 40px;
}
.about__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: var(--color-text-dark);
    line-height: 1.15;
    margin-bottom: 40px;
}
.about__text {
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 300;
    color: #4a4860;
    line-height: 1.85;
    margin-bottom: 28px;
}
.about__quote {
    border-left: none;
    border-top: 1px solid rgba(192, 57, 43, 0.2);
    border-bottom: 1px solid rgba(192, 57, 43, 0.2);
    padding: 32px 0;
    margin: 56px 0;
    max-width: 800px;
}
.about__quote p {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.8vw, 26px);
    font-style: italic;
    color: #c0392b;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process {
    background: var(--color-dark);
    position: relative;
}
.process__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px 80px;
    text-align: center;
}
.process__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 400;
    color: #fff;
    margin-bottom: 16px;
}
.process__subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    margin-bottom: 60px;
    letter-spacing: 0.04em;
}
.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: left;
}
.process__card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px 26px 32px;
    position: relative;
    transition: background 0.3s ease;
}
.process__card:hover {
    background: rgba(255,255,255,0.08);
}
.process__card-line {
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 2px;
    border-radius: 2px;
}
.process__card:nth-child(1) .process__card-line { background: linear-gradient(90deg, #d4a017, #f0c040); }
.process__card:nth-child(2) .process__card-line { background: linear-gradient(90deg, #d4a017, #c0a0b0); }
.process__card:nth-child(3) .process__card-line { background: linear-gradient(90deg, #8080b0, #6060a0); }
.process__card:nth-child(4) .process__card-line { background: linear-gradient(90deg, #d4a017, #e0c060); }
.process__card-num {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 300;
    color: rgba(255,255,255,0.25);
    display: block;
    margin-top: 12px;
    margin-bottom: 16px;
}
.process__card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}
.process__card-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery {
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}
.gallery__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 40px 80px;
}
.gallery__title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 400;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 16px;
}
.gallery__subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    color: #6b6880;
    text-align: center;
    max-width: 480px;
    margin: 0 auto 60px;
    line-height: 1.75;
}
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery__grid .gallery__item:nth-child(1) { grid-column: 1; grid-row: 1; }
.gallery__grid .gallery__item:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery__grid .gallery__item:nth-child(3) { grid-column: 3; grid-row: 1; }
.gallery__grid .gallery__item:nth-child(4) { grid-column: 1; grid-row: 2; }
.gallery__grid .gallery__item:nth-child(5) { grid-column: 2; grid-row: 2; }
.gallery__grid .gallery__item:nth-child(6) { grid-column: 3; grid-row: 2; }
.gallery__grid .gallery__item:nth-child(7) { grid-column: 1; grid-row: 3; }

.gallery__item {
    border-radius: 24px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery__item:hover {
    transform: translateY(-8px);
}
.gallery__item-symbol {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery__item-label {
    position: absolute;
    bottom: 32px; left: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery__item:hover .gallery__item-symbol,
.gallery__item:hover .gallery__item-label {
    opacity: 1;
}
.gallery__item-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: #fff;
}
.gallery__item-quality {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

/* ============================================================
   COLLABORATORS SECTION
   ============================================================ */
.collaborators {
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}
.collaborators__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}
.collaborators__header {
    margin-bottom: 56px;
}
.collaborators__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}
.collaborators__subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    color: #6b6880;
    max-width: 420px;
    line-height: 1.75;
}
.collaborators__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.collaborators__card {
    background: rgba(255,255,255,0.75);
    border-radius: 14px;
    padding: 28px 24px 32px;
    backdrop-filter: blur(4px);
}
.collaborators__card-role {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-teal);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.collaborators__card-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 14px;
    line-height: 1.25;
}
.collaborators__card-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    color: #5a5870;
    line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-dark);
    position: relative;
}
.footer__quote {
    text-align: center;
    padding: 80px 40px 60px;
}
.footer__quote blockquote {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.8vw, 32px);
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.65;
}
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.footer__brand-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 12px;
}
.footer__brand-desc {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    max-width: 320px;
    line-height: 1.75;
}
.footer__nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.footer__nav-link {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer__nav-link:hover { color: #fff; }
.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 40px 60px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 32px;
}
.footer__credits-left,
.footer__credits-right {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .cosmos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cosmos__grid {
        grid-template-columns: 1fr;
    }
    .cosmos__card {
        min-height: 420px;
    }
    .gallery__grid { grid-template-columns: 1fr 1fr; }
    .process__grid { grid-template-columns: 1fr; }
    .collaborators__grid { grid-template-columns: 1fr 1fr; }
    .sidenav { display: none; }
    .footer__inner { flex-direction: column; }
    .footer__bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
    .cosmos__grid, .gallery__grid, .collaborators__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
