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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #2d2b28;
    color: #f4f0e8;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* === Typography === */
.mono-text {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    letter-spacing: 0.02em;
    color: #8a8078;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f4f0e8;
    line-height: 1;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f4f0e8;
}

.tagline {
    margin-top: 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #c4b8a4;
    letter-spacing: 0.05em;
}

.tag-char {
    display: inline-block;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tag-char.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === Slabs === */
.slab {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slab-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
}

/* Slab 1 */
.slab-1 {
    background: #2d2b28;
}

.slab-1-content {
    margin-left: 8vw;
    margin-top: -10vh;
}

/* Slab 2 */
.slab-2 {
    background: #e8e2d8;
}

.slab-2 .mono-text {
    color: #2d2b28;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
}

.slab-2 .secondary {
    color: #8a8078;
    margin-top: 1rem;
}

.slab-2-content {
    margin-left: auto;
    margin-right: 8vw;
    text-align: right;
}

/* Slab 3 */
.slab-3 {
    background: #d8d0c4;
    perspective: 1200px;
}

.slab-3-content {
    position: absolute;
    bottom: 12vh;
    left: 6vw;
}

.slab-3 .section-title {
    color: #2d2b28;
}

/* Slab 4 */
.slab-4 {
    background: #2d2b28;
    perspective: 1200px;
}

.slab-4-content {
    margin-left: 12vw;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detail-block {
    max-width: 400px;
}

.detail-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #c4b8a4;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 500;
    color: #f4f0e8;
    line-height: 1.3;
}

/* Slab 5 */
.slab-5 {
    background: #efe9dd;
}

.slab-5-content {
    margin-left: 6vw;
    margin-bottom: -10vh;
}

.terminal-block {
    margin-bottom: 3rem;
}

.terminal-block .prompt {
    color: #8a8078;
    font-size: 1.2rem;
}

.terminal-block .command {
    color: #2d2b28;
    font-size: 1.2rem;
}

.cursor {
    display: inline-block;
    color: #2d2b28;
    animation: blink 1s step-end infinite;
    font-family: 'DM Mono', monospace;
    font-size: 1.2rem;
}

@keyframes blink {
    50% { opacity: 0; }
}

.closing-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #2d2b28;
    letter-spacing: -0.02em;
}

/* === Diagonal Cuts === */
.diagonal-cut {
    position: absolute;
    width: 100%;
    height: 80px;
    z-index: 1;
}

.cut-bottom {
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom right, #2d2b28 49.5%, #e8e2d8 50.5%);
}

.cut-top {
    top: 0;
    left: 0;
    background: linear-gradient(to bottom left, #2d2b28 49.5%, #e8e2d8 50.5%);
}

/* === 3D Prisms === */
.prism {
    position: absolute;
    transform-style: preserve-3d;
}

.prism .face {
    position: absolute;
    backface-visibility: visible;
}

/* Prism Alpha - triangular */
.prism-alpha {
    top: 8vh;
    left: 6vw;
    width: 120px;
    height: 120px;
    animation: prismRotateA 20s linear infinite;
}

.prism-alpha .face-1 {
    width: 120px;
    height: 120px;
    background: #c4b8a4;
    transform: rotateY(0deg) translateZ(60px);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.prism-alpha .face-2 {
    width: 120px;
    height: 120px;
    background: #d8d0c4;
    transform: rotateY(120deg) translateZ(60px);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.prism-alpha .face-3 {
    width: 120px;
    height: 120px;
    background: #8a8078;
    transform: rotateY(240deg) translateZ(60px);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Prism Beta - rectangular */
.prism-beta {
    top: 30vh;
    right: 10vw;
    width: 80px;
    height: 200px;
    animation: prismRotateB 30s linear infinite;
}

.prism-beta .face-1 {
    width: 80px;
    height: 200px;
    background: #c4b8a4;
    transform: rotateY(0deg) translateZ(40px);
}

.prism-beta .face-2 {
    width: 80px;
    height: 200px;
    background: #2d2b28;
    transform: rotateY(90deg) translateZ(40px);
}

.prism-beta .face-3 {
    width: 80px;
    height: 200px;
    background: #d8d0c4;
    transform: rotateY(180deg) translateZ(40px);
}

.prism-beta .face-4 {
    width: 80px;
    height: 200px;
    background: #8a8078;
    transform: rotateY(270deg) translateZ(40px);
}

/* Prism Gamma */
.prism-gamma {
    top: 15vh;
    right: 8vw;
    width: 150px;
    height: 150px;
    animation: prismRotateC 25s linear infinite;
}

.prism-gamma .face-1 {
    width: 150px;
    height: 150px;
    background: #f0ddd0;
    transform: rotateX(0deg) translateZ(75px);
}

.prism-gamma .face-2 {
    width: 150px;
    height: 150px;
    background: #c4b8a4;
    transform: rotateX(72deg) translateZ(75px);
}

.prism-gamma .face-3 {
    width: 150px;
    height: 150px;
    background: #d8d0c4;
    transform: rotateX(144deg) translateZ(75px);
}

.prism-gamma .face-4 {
    width: 150px;
    height: 150px;
    background: #8a8078;
    transform: rotateX(216deg) translateZ(75px);
}

.prism-gamma .face-5 {
    width: 150px;
    height: 150px;
    background: #2d2b28;
    transform: rotateX(288deg) translateZ(75px);
}

@keyframes prismRotateA {
    from { transform: rotateX(15deg) rotateY(0deg); }
    to { transform: rotateX(15deg) rotateY(360deg); }
}

@keyframes prismRotateB {
    from { transform: rotateX(-10deg) rotateY(0deg) rotateZ(5deg); }
    to { transform: rotateX(-10deg) rotateY(360deg) rotateZ(5deg); }
}

@keyframes prismRotateC {
    from { transform: rotateY(20deg) rotateX(0deg); }
    to { transform: rotateY(20deg) rotateX(360deg); }
}

/* === Reveal Animation === */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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