/* ========================================
   tanso.group — Geological Glitch Aesthetic
   ======================================== */

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

:root {
    --c-void: #0a0a0a;
    --c-deep: #1a1715;
    --c-earth: #231f1b;
    --c-sand: #e8e0d4;
    --c-ember: #ff8c42;
    --c-flame: #e05a1b;
    --c-gold: #c4a35a;
    --c-white: #ffffff;
    --c-ash: #8a7e6f;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--c-void);
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--c-sand);
    background: var(--c-void);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--c-ember);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--c-flame);
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
}

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

.content-column {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    padding: 6rem 1.5rem;
    margin: 0 auto;
}

/* --- Section Labels --- */
.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-ember);
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* --- Section Headings --- */
.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.08em;
    color: var(--c-sand);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.heading-accent {
    color: var(--c-ember);
}

/* --- Body Text --- */
.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: rgba(232, 224, 212, 0.75);
    margin-bottom: 2rem;
}

/* =========================================
   SECTION 1: THE LATTICE (HERO)
   ========================================= */
.section--lattice {
    height: 100vh;
    background: var(--c-void);
}

#lattice-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.lattice-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 11rem);
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: var(--c-sand);
    margin-bottom: 1.5rem;
}

.hero-title__line {
    display: block;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: rgba(232, 224, 212, 0.5);
    margin-bottom: 2rem;
}

.hero-formula {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--c-ember);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.scroll-indicator__text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 224, 212, 0.3);
}

.scroll-indicator__line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--c-ember), transparent);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* =========================================
   SECTION 2: THE FRACTURE ZONE
   ========================================= */
.section--fracture {
    background: var(--c-void);
    border-top: 1px solid rgba(255, 140, 66, 0.06);
}

.strata-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.strata-layer--back {
    background: linear-gradient(180deg, transparent 0%, rgba(35, 31, 27, 0.3) 50%, transparent 100%);
    transform: translateZ(-20px);
}

.strata-layer--mid {
    background: radial-gradient(ellipse at 30% 70%, rgba(255, 140, 66, 0.03) 0%, transparent 60%);
}

/* --- Data Block --- */
.data-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
}

.data-block__value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--c-ember);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.data-block__unit {
    font-size: 0.5em;
    opacity: 0.7;
    vertical-align: super;
}

.data-block__label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: rgba(232, 224, 212, 0.4);
    line-height: 1.5;
}

/* =========================================
   SECTION 3: THE STRATA
   ========================================= */
.section--strata {
    background: linear-gradient(180deg, var(--c-void) 0%, var(--c-deep) 50%, var(--c-void) 100%);
}

.strata-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.strata-card {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 140, 66, 0.08);
    position: relative;
    transition: transform 0.4s ease;
}

.strata-card:hover {
    transform: translateX(8px);
}

.strata-card__depth {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--c-gold);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.strata-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--c-sand);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.strata-card__text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(232, 224, 212, 0.6);
}

.strata-card__line {
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--c-ember);
    transition: height 0.4s ease;
    transform: translateY(-50%);
}

.strata-card:hover .strata-card__line {
    height: 60%;
}

/* =========================================
   SECTION 4: THE SEAM
   ========================================= */
.section--seam {
    background: var(--c-earth);
    border-top: 1px solid rgba(196, 163, 90, 0.08);
    border-bottom: 1px solid rgba(196, 163, 90, 0.08);
}

.pull-quote {
    position: relative;
    margin-top: 3rem;
    padding: 2rem 0 2rem 2rem;
    border-left: 2px solid var(--c-gold);
}

.pull-quote__mark {
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    color: var(--c-gold);
    opacity: 0.15;
    line-height: 1;
}

.pull-quote p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-style: italic;
    line-height: 1.7;
    color: rgba(232, 224, 212, 0.65);
}

/* =========================================
   SECTION 5: THE CORE
   ========================================= */
.section--core {
    background: var(--c-void);
    min-height: 80vh;
}

#core-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-item__label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 224, 212, 0.3);
    margin-bottom: 0.5rem;
}

.contact-item__value {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--c-sand);
}

a.contact-item__value:hover {
    color: var(--c-ember);
}

.footer-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 140, 66, 0.08);
    font-size: 0.75rem;
    color: var(--c-ash);
}

.footer-line__right {
    color: var(--c-ember);
    opacity: 0.4;
}

/* =========================================
   GLITCH EFFECTS
   ========================================= */
@keyframes glitch-shift {
    0%, 95%, 100% { transform: translateX(0); }
    96% { transform: translateX(-3px); }
    97% { transform: translateX(5px); }
    98% { transform: translateX(-2px); }
    99% { transform: translateX(3px); }
}

.glitch-active {
    animation: glitch-shift 8s steps(1) infinite;
}

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

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
    .data-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-column {
        padding: 4rem 1.25rem;
    }

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

    .hero-title {
        font-size: clamp(3rem, 18vw, 6rem);
    }
}
