/* transactology.com - Urban Academic Institution */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --dark-earth: #3A2818;
    --warm-sand: #A89878;
    --terracotta: #C87850;
    --deep-bark: #2A1810;
    --gold: #E8C060;
    --parchment: #F0E8D0;
    --cream: #E0D8C0;
}

body {
    background: var(--deep-bark);
    color: var(--parchment);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Star Field Canvas */
#star-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Diagonal Sections */
.diag-section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
    margin-top: -40px;
}
.diag-section:nth-child(odd) {
    background: var(--deep-bark);
    clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}
.diag-section:nth-child(even) {
    background: var(--dark-earth);
}
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    margin-top: 0;
    background: var(--deep-bark);
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Typography */
.typing-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.08em;
    overflow: hidden;
    border-right: 2px solid var(--gold);
    white-space: nowrap;
    width: 0;
    animation: typeIn 2s steps(14) forwards 1s, blinkCursor 0.5s step-end infinite alternate;
}
@keyframes typeIn {
    to { width: 100%; }
}
@keyframes blinkCursor {
    50% { border-color: transparent; }
}

.hero-sub {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.25rem;
    color: var(--cream);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 3s;
}
.hero-citation {
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: var(--warm-sand);
    display: block;
    margin-top: 0.75rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 3.5s;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
    from { transform: translateY(10px); }
}

/* Diagonal Line SVG */
.diag-line-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.diag-draw {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawDiag 1.5s ease forwards 0.5s;
}
@keyframes drawDiag {
    to { stroke-dashoffset: 0; }
}

/* Section Content Styles */
.section-ref {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--parchment);
    margin-bottom: 1.5rem;
}
.section-body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.section-citation {
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: var(--warm-sand);
}

/* Glassmorphic Cards */
.glass-card {
    position: relative;
    z-index: 3;
    max-width: 500px;
    margin: -20px auto 0;
    padding: 2rem;
    background: rgba(42, 24, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(232, 192, 96, 0.15);
    border-radius: 12px;
    transform: translateY(-20px);
}
.glass-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}
.glass-text {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    color: var(--parchment);
    line-height: 1.65;
}

/* Section Animations */
.diag-section .section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.diag-section.visible .section-content {
    opacity: 1;
    transform: translateY(0);
}
.glass-card {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--deep-bark);
}
.footer-text {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: var(--warm-sand);
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 768px) {
    .diag-section { padding: 4rem 1.5rem; }
    .glass-card { margin: -10px 1rem 0; }
}
