/* scientific.quest - Design System */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Inter, IBM Plex Mono, Space Mono */

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --deep-base-90: rgba(26, 26, 46, 0.9);
    --deep-base-70: rgba(26, 26, 46, 0.7);
    --font-mono: "IBM Plex Mono", "Space Mono", "Courier New", monospace;
    --font-sans: "Inter", -apple-system, sans-serif;
}

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

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

body {
    font-family: var(--font-mono);
    background-color: var(--warm-white);
    color: var(--deep-base);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========== LEATHER TEXTURE ========== */
.leather-texture {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(139, 90, 43, 0.04) 2px,
        rgba(139, 90, 43, 0.04) 4px
    );
}

/* ========== NAVIGATION ========== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--deep-base);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(139, 90, 43, 0.06) 2px, rgba(139, 90, 43, 0.06) 4px);
    border-bottom: 1px solid rgba(232, 184, 75, 0.2);
    transition: transform 0.4s ease, background-color 0.3s ease;
}

#main-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-symbol {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 300;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--warm-white);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-gray);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--warm-white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--warm-white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--deep-base-90);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--warm-white);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-link:hover {
    color: var(--accent-gold);
}
/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--deep-base);
    overflow: hidden;
}

.mountain-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.3) 40%, rgba(26, 26, 46, 0.8) 100%),
                radial-gradient(ellipse at 50% 80%, rgba(74, 144, 217, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.mountain-overlay::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: 
        linear-gradient(165deg, transparent 40%, rgba(74, 144, 217, 0.05) 50%, transparent 60%),
        linear-gradient(195deg, transparent 35%, rgba(108, 117, 125, 0.08) 45%, transparent 55%);
}

.mountain-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        polygon(0% 100%, 15% 55%, 25% 65%, 40% 40%, 50% 50%, 60% 35%, 75% 55%, 85% 45%, 100% 60%, 100% 100%);
    clip-path: polygon(0% 100%, 10% 65%, 20% 72%, 35% 48%, 45% 56%, 55% 42%, 65% 52%, 78% 38%, 88% 50%, 100% 45%, 100% 100%);
    background: linear-gradient(to bottom, rgba(74, 144, 217, 0.06), rgba(26, 26, 46, 0.4));
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--warm-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-accent {
    color: var(--accent-gold);
    font-weight: 300;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted-gray);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}
.hero-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.data-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.data-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--warm-white);
}

.data-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.data-separator {
    width: 1px;
    height: 40px;
    background: rgba(108, 117, 125, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted-gray);
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========== SECTIONS COMMON ========== */
.section {
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--deep-base);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-rule {
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    margin-top: 1.5rem;
}
/* ========== INQUIRY SECTION ========== */
.inquiry-section {
    background: var(--warm-white);
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.inquiry-lead {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--deep-base);
    margin-bottom: 1.5rem;
}

.inquiry-body {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted-gray);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.notation-block {
    background: var(--deep-base);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(232, 184, 75, 0.15);
}

.notation-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 2;
    color: var(--warm-white);
    white-space: pre;
}

.nt-comment {
    color: var(--muted-gray);
}

.nt-keyword {
    color: var(--primary-blue);
}

.nt-accent {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* ========== DOMAINS SECTION ========== */
.domains-section {
    background: #f0ebe2;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.domain-card {
    background: var(--warm-white);
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.domain-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--deep-base);
    margin-bottom: 0.75rem;
}

.card-desc {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted-gray);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}
/* ========== METHOD SECTION ========== */
.method-section {
    background: var(--deep-base);
    position: relative;
    overflow: hidden;
}

.method-section .section-title {
    color: var(--warm-white);
}

.method-timeline {
    position: relative;
    padding-left: 3rem;
}

.method-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-gold), rgba(232, 184, 75, 0.1));
}

.timeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-base);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}

.step-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-gray);
    line-height: 1.9;
}

/* ========== JOURNAL SECTION ========== */
.journal-section {
    background: var(--warm-white);
}

.journal-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(26, 26, 46, 0.08);
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.journal-entry {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 2rem;
    background: var(--warm-white);
    transition: background-color 0.3s ease;
}

.journal-entry:hover {
    background: #faf7f0;
}

.entry-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    flex-shrink: 0;
}

.entry-day {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--deep-base);
    line-height: 1;
}

.entry-month {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.entry-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--deep-base);
    margin-bottom: 0.75rem;
}

.entry-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-gray);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.entry-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 3px;
}
/* ========== FOOTER ========== */
.footer-section {
    background: var(--deep-base);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(139, 90, 43, 0.04) 2px, rgba(139, 90, 43, 0.04) 4px);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(232, 184, 75, 0.15);
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.footer-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--warm-white);
    letter-spacing: 0.1em;
}

.footer-quote {
    max-width: 400px;
    text-align: right;
}

.footer-quote p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--muted-gray);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-quote cite {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-gold);
    font-style: normal;
    letter-spacing: 0.05em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted-gray);
}

.footer-coords {
    display: flex;
    gap: 1.5rem;
}

.footer-coords span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(108, 117, 125, 0.6);
    letter-spacing: 0.1em;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .inquiry-grid { grid-template-columns: 1fr; gap: 2rem; }
    .domains-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .footer-top { flex-direction: column; gap: 2rem; }
    .footer-quote { text-align: left; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

@media (max-width: 600px) {
    .section-inner { padding: 5rem 1.25rem; }
    .domains-grid { grid-template-columns: 1fr; }
    .hero-data { flex-direction: column; gap: 1.5rem; }
    .data-separator { width: 40px; height: 1px; }
    .journal-entry { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .method-timeline { padding-left: 2.5rem; }
    .step-marker { left: -2.5rem; width: 26px; height: 26px; }
}

/* ========== MOUNTAIN SVG BACKGROUND ========== */
.hero-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent);
    z-index: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 60%, rgba(74, 144, 217, 0.04), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(232, 184, 75, 0.03), transparent),
        radial-gradient(circle at 50% 30%, rgba(245, 240, 232, 0.02), transparent);
    z-index: 0;
}

.method-section .mountain-overlay {
    opacity: 0.3;
}