/* ============================================
   bada.studio - Brutalist Stacked Monolith
   ============================================ */

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

html {
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100%;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
    color: #F2E8D9;
    background: #2C1E14;
    height: 100%;
    overflow-x: hidden;
}

/* ============================================
   Navigation Strip
   ============================================ */

#nav-strip {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-indicator {
    width: 12px;
    height: 12px;
    border: 2px solid #F2E8D9;
    cursor: pointer;
    transition: background-color 0.15s;
}

.nav-indicator.active {
    background-color: #F2E8D9;
}

.nav-indicator:hover {
    background-color: #D9C4A0;
    border-color: #D9C4A0;
}

/* ============================================
   Scroll Container
   ============================================ */

#scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* ============================================
   Section (Monolith)
   ============================================ */

.monolith {
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: start;
    overflow: hidden;
    position: relative;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
}

/* Background color strata */
.monolith[data-bg="charred-umber"] {
    background-color: #2C1E14;
    color: #F2E8D9;
}

.monolith[data-bg="kiln-terracotta"] {
    background-color: #A0522D;
    color: #F2E8D9;
}

.monolith[data-bg="raw-sienna"] {
    background-color: #C68642;
    color: #1A120B;
}

.monolith[data-bg="deep-loam"] {
    background-color: #1A120B;
    color: #F2E8D9;
}

.monolith[data-bg="charcoal"] {
    background-color: #3D2B1F;
    color: #F2E8D9;
}

/* Text color overrides for light backgrounds */
.monolith[data-bg="raw-sienna"] .section-number {
    color: #D4652A;
}

.monolith[data-bg="raw-sienna"] .label {
    color: #1A120B;
}

.monolith[data-bg="raw-sienna"] .structural-rule {
    border-color: #D4652A;
}

.monolith[data-bg="raw-sienna"] .staircase-bars .bar {
    background-color: #D4652A;
}

.monolith[data-bg="raw-sienna"] .thin-rule {
    border-color: #1A120B;
}

/* ============================================
   Section Number
   ============================================ */

.section-number {
    position: absolute;
    top: 24px;
    left: 24px;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(4rem, 8vw, 7rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4652A;
    opacity: 0.4;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ============================================
   Section Grid
   ============================================ */

.section-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 0 48px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0 32px;
    flex: 1;
    align-content: start;
}

.content-block {
    grid-column: 1 / 9;
    padding-top: 20px;
}

.image-container {
    grid-column: 9 / 13;
    position: relative;
    align-self: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* ============================================
   Structural Rule (HR)
   ============================================ */

.structural-rule {
    border: none;
    height: 6px;
    background: #D4652A;
    margin-bottom: 32px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.monolith.in-view .structural-rule {
    width: 100%;
}

/* ============================================
   Square Block
   ============================================ */

.square-block {
    width: 48px;
    height: 48px;
    float: left;
    margin-right: 16px;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0.2s;
}

.monolith.in-view .square-block {
    opacity: 1;
}

.square-block.accent-orange {
    background-color: #D4652A;
}

.square-block.accent-buff {
    background-color: #D9C4A0;
}

/* ============================================
   Typography
   ============================================ */

h1 {
    font-family: 'Roboto Slab', serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: -0.03em;
    line-height: 0.92;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: 0.5s;
}

h2 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: 0.5s;
}

.monolith.in-view h1,
.monolith.in-view h2 {
    opacity: 1;
}

p {
    max-width: 640px;
    text-align: left;
    margin-bottom: 16px;
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: 0.5s;
}

.monolith.in-view p {
    opacity: 1;
}

/* Labels (Space Mono) */
.label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4652A;
    margin-bottom: 16px;
}

/* ============================================
   Image Container & Corner Brackets
   ============================================ */

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #3D2B1F;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(212, 101, 42, 0.08) 20px,
            rgba(212, 101, 42, 0.08) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(212, 101, 42, 0.08) 20px,
            rgba(212, 101, 42, 0.08) 21px
        );
    transform: scale(1.6);
    transition: transform 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.image-placeholder.alt {
    background-color: #2C1E14;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(217, 196, 160, 0.1) 15px,
            rgba(217, 196, 160, 0.1) 16px
        );
}

.monolith.in-view .image-placeholder {
    transform: scale(1.3);
}

/* Corner Brackets */
.corner-bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 2;
}

.corner-bracket::before,
.corner-bracket::after {
    content: '';
    position: absolute;
    background: #D4652A;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: 0.4s;
}

.corner-bracket::before {
    width: 100%;
    height: 3px;
}

.corner-bracket::after {
    width: 3px;
    height: 100%;
}

.monolith.in-view .corner-bracket::before,
.monolith.in-view .corner-bracket::after {
    transform: scaleX(1);
}

.corner-bracket.top-left {
    top: 0;
    left: 0;
}
.corner-bracket.top-left::before {
    top: 0;
    left: 0;
    transform-origin: left;
}
.corner-bracket.top-left::after {
    top: 0;
    left: 0;
    transform-origin: top;
    transform: scaleY(0);
}
.monolith.in-view .corner-bracket.top-left::after {
    transform: scaleY(1);
}

.corner-bracket.top-right {
    top: 0;
    right: 0;
}
.corner-bracket.top-right::before {
    top: 0;
    right: 0;
    transform-origin: right;
}
.corner-bracket.top-right::after {
    top: 0;
    right: 0;
    transform-origin: top;
    transform: scaleY(0);
}
.monolith.in-view .corner-bracket.top-right::after {
    transform: scaleY(1);
}

.corner-bracket.bottom-left {
    bottom: 0;
    left: 0;
}
.corner-bracket.bottom-left::before {
    bottom: 0;
    left: 0;
    transform-origin: left;
}
.corner-bracket.bottom-left::after {
    bottom: 0;
    left: 0;
    transform-origin: bottom;
    transform: scaleY(0);
}
.monolith.in-view .corner-bracket.bottom-left::after {
    transform: scaleY(1);
}

.corner-bracket.bottom-right {
    bottom: 0;
    right: 0;
}
.corner-bracket.bottom-right::before {
    bottom: 0;
    right: 0;
    transform-origin: right;
}
.corner-bracket.bottom-right::after {
    bottom: 0;
    right: 0;
    transform-origin: bottom;
    transform: scaleY(0);
}
.monolith.in-view .corner-bracket.bottom-right::after {
    transform: scaleY(1);
}

/* ============================================
   Staircase Bars
   ============================================ */

.staircase-bars {
    position: absolute;
    bottom: 24px;
    left: 48px;
    right: 48px;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staircase-bars .bar {
    height: 4px;
    background-color: #D4652A;
    opacity: 0.6;
}

/* ============================================
   Project List
   ============================================ */

.project-list {
    margin-top: 24px;
    max-width: 640px;
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: 0.6s;
}

.monolith.in-view .project-list {
    opacity: 1;
}

.project-item {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 12px 0;
}

.project-name {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.thin-rule {
    border: none;
    height: 1px;
    background: #3D2B1F;
}

/* ============================================
   Contact
   ============================================ */

.contact-line {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(242, 232, 217, 0.2);
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: 0.6s;
}

.monolith.in-view .contact-line {
    opacity: 1;
}

.contact-value {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
}

/* ============================================
   Scrollbar
   ============================================ */

#scroll-container::-webkit-scrollbar {
    width: 0;
}

#scroll-container {
    scrollbar-width: none;
}
