/* === tanso.group - Bauhaus + Candlelight Split-Screen === */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0D0D14;
    color: #E8DFD0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.2px;
}

/* --- Split Container --- */
#split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* --- Divider Line --- */
#divider {
    position: absolute;
    left: 38%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #FF2D6F;
    z-index: 100;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#divider-glow {
    position: absolute;
    left: -20px;
    width: 42px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 155, 66, 0.6) 0%, rgba(255, 155, 66, 0) 70%);
    pointer-events: none;
    transition: top 0.05s linear;
    z-index: 101;
}

/* --- Left Panel (Flame Side) --- */
#left-panel {
    width: 38%;
    height: 100vh;
    background: #1A0A1E;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#left-panel::-webkit-scrollbar {
    display: none;
}

#left-scroll-inner {
    min-height: 200vh;
    padding: 60px 30px 100px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* --- Right Panel (Workshop Side) --- */
#right-panel {
    width: 62%;
    height: 100vh;
    background: linear-gradient(180deg, #0D0D14 0%, #1A1A2E 50%, #0D0D14 100%);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#right-panel::-webkit-scrollbar {
    display: none;
}

#right-scroll-inner {
    position: relative;
    padding: 80px 60px 120px 60px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Grid Lines Background --- */
#grid-lines {
    position: fixed;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 47px,
        #2A1F1A 47px,
        #2A1F1A 48px
    );
    opacity: 0.3;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Shape Overlays --- */
.shape-overlay {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

#overlay-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation: slow-rotate 60s linear infinite;
}

#overlay-2 {
    width: 220px;
    height: 220px;
    bottom: 15%;
    right: 25%;
    animation: slow-rotate 60s linear infinite reverse;
}

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

/* --- Candle Flames --- */
.flame-cluster {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
}

.flame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flame-large {
    width: 40px;
    height: 70px;
}

.flame-medium {
    width: 30px;
    height: 55px;
}

.flame-small {
    width: 22px;
    height: 40px;
}

.flame-core {
    position: absolute;
    width: 30%;
    height: 35%;
    bottom: 15%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse, #E8FF00 0%, #E8FF00 40%, transparent 100%);
    animation: flame-pulse 2.5s ease-in-out infinite alternate;
    z-index: 3;
}

.flame-mid {
    position: absolute;
    width: 60%;
    height: 65%;
    bottom: 10%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse, #FF9B42 0%, rgba(255, 155, 66, 0.6) 50%, transparent 100%);
    animation: flame-pulse 3s ease-in-out infinite alternate;
    z-index: 2;
}

.flame-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 5%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse, rgba(255, 45, 111, 0.4) 0%, rgba(255, 45, 111, 0.1) 50%, transparent 100%);
    animation: flame-pulse 3.5s ease-in-out infinite alternate-reverse;
    z-index: 1;
    box-shadow: 0 0 40px 20px rgba(255, 155, 66, 0.15), 0 0 80px 40px rgba(255, 155, 66, 0.05);
}

@keyframes flame-pulse {
    0% { transform: scaleX(0.95) scaleY(0.95); }
    50% { transform: scaleX(1.02) scaleY(1.05); }
    100% { transform: scaleX(0.97) scaleY(0.98); }
}

/* --- Bauhaus Constellations --- */
.bauhaus-constellation {
    position: relative;
    width: 180px;
    height: 180px;
}

.geo-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid #00F0FF;
    border-radius: 50%;
    top: 10px;
    left: 50px;
    animation: geo-spin 45s linear infinite;
}

.geo-circle-sm {
    width: 35px;
    height: 35px;
    border-color: #E8FF00;
    top: 90px;
    left: 20px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.geo-circle-md {
    width: 60px;
    height: 60px;
    border-color: #FF2D6F;
    top: 60px;
    left: 80px;
    animation-duration: 50s;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid transparent;
    border-bottom-color: transparent;
    top: 50px;
    left: 10px;
    filter: drop-shadow(0 0 0 #FF2D6F);
}

.geo-triangle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: -27px;
    width: 0;
    height: 0;
    border-left: 27px solid transparent;
    border-right: 27px solid transparent;
    border-bottom: 46px solid #1A0A1E;
}

.geo-triangle,
.geo-triangle-lg {
    border-bottom-color: #FF2D6F;
}

.geo-triangle-lg {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 78px solid #FF2D6F;
    top: 20px;
    left: 30px;
}

.geo-triangle-lg::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -40px;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 68px solid #1A0A1E;
}

.geo-rect {
    position: absolute;
    width: 50px;
    height: 30px;
    border: 2px solid #E8FF00;
    top: 120px;
    left: 70px;
    animation: geo-spin 55s linear infinite reverse;
}

.geo-rect-tall {
    width: 35px;
    height: 70px;
    border-color: #00F0FF;
    top: 80px;
    left: 10px;
    animation-duration: 40s;
}

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

/* --- Vertical Navigation --- */
#left-nav {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: flex-start;
    width: 100%;
    padding-left: 10px;
}

.nav-item {
    font-family: 'Architects Daughter', cursive;
    font-size: 14px;
    color: #9E8FA0;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding-left: 16px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 2px;
    background: #FF2D6F;
    transform: translateY(-50%);
    transition: width 0.3s ease, background 0.3s ease;
}

.nav-item:hover {
    color: #E8DFD0;
    text-shadow: 0 0 12px #FF2D6F;
}

.nav-item:hover::before {
    width: 16px;
    background: #FF9B42;
}

.nav-item.active {
    color: #FF2D6F;
    text-shadow: 0 0 8px rgba(255, 45, 111, 0.5);
}

/* --- Vertical Brand Text --- */
#brand-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    writing-mode: vertical-lr;
    text-orientation: upright;
}

.brand-char {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 36px;
    color: #FF2D6F;
    text-shadow: 0 0 15px rgba(255, 45, 111, 0.4);
    writing-mode: horizontal-tb;
}

/* --- Content Sections --- */
.content-section {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

/* --- Content Blocks --- */
.content-block {
    opacity: 0;
    transform: translateY(30px);
    margin-bottom: 40px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
    animation: bounce-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounce-enter {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Block Shapes */
.block-rect {
    padding: 40px;
    border: 2px solid transparent;
    border-radius: 2px;
    background: rgba(13, 13, 20, 0.6);
}

.block-rect:hover {
    border-color: #00F0FF;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.block-circle {
    width: 280px;
    height: 280px;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin: 40px auto;
    background: rgba(26, 10, 30, 0.5);
}

.block-circle:hover {
    border-color: #00F0FF;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.block-triangle {
    position: relative;
    padding: 50px 40px 40px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: rgba(42, 31, 26, 0.4);
    text-align: center;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 30px auto;
    max-width: 400px;
}

/* --- Typography --- */
.section-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #E8FF00;
    text-shadow: 0 0 12px rgba(232, 255, 0, 0.3);
    margin-bottom: 24px;
}

h1.section-title {
    font-size: 72px;
    color: #FF2D6F;
    text-shadow: 0 0 20px rgba(255, 45, 111, 0.4);
}

.body-text {
    color: #E8DFD0;
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 16px;
    font-weight: 400;
}

.body-text:last-child {
    margin-bottom: 0;
}

.pull-quote {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    text-align: center;
}

.callout-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    color: #E8DFD0;
    text-align: center;
    padding-bottom: 10px;
}

.meta-text {
    font-family: 'Architects Daughter', cursive;
    font-size: 14px;
    color: #9E8FA0;
    line-height: 1.7;
}

/* --- Capabilities Grid --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cap-item {
    padding: 30px;
}

.cap-label {
    font-family: 'Architects Daughter', cursive;
    font-size: 13px;
    color: #FF9B42;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

/* --- Wax Dividers --- */
.wax-divider {
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.wax-divider svg {
    width: 100%;
    height: 20px;
}

/* --- Footer --- */
#site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-mark {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 18px;
    color: #FF2D6F;
    text-shadow: 0 0 8px rgba(255, 45, 111, 0.3);
}

.footer-year {
    font-family: 'Architects Daughter', cursive;
    font-size: 12px;
    color: #9E8FA0;
    letter-spacing: 3px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    #split-container {
        flex-direction: column;
    }

    #left-panel {
        width: 100%;
        height: 40vh;
    }

    #right-panel {
        width: 100%;
        height: 60vh;
    }

    #divider {
        left: 0;
        top: 40%;
        width: 100%;
        height: 2px;
    }

    #grid-lines {
        width: 100%;
    }

    #right-scroll-inner {
        padding: 40px 24px 80px 24px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 40px;
    }

    h1.section-title {
        font-size: 52px;
    }

    .block-circle {
        width: 220px;
        height: 220px;
        padding: 30px;
    }

    .pull-quote {
        font-size: 20px;
    }
}
