/* quirk.bar — Corporate Ethereal-Blue Command */
/* Palette from DESIGN.md */
/* Deep Ethereal: #101828 — headings */
/* Ethereal Slate: #304058 — body text */
/* Ethereal Blue: #5080A0 — primary accent, labels */
/* Ethereal Light: #90B0C8 — secondary accent */
/* Corporate White: #F8FAFE — page background */
/* Panel Surface: #FFFFFF — content panels */
/* Nature Sage: #508870 — organic accent */
/* HUD Frame: rgba(80,120,160,0.15) — dashboard border */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: #304058;
    background-color: #F8FAFE;
    overflow-x: hidden;
}

/* Typography */
.section-heading,
.hero-title {
    font-family: 'EB Garamond', serif;
    color: #101828;
    font-weight: 600;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #304058;
    line-height: 1.85;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

.label-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    color: #5080A0;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Nature Elements */
.nature-element {
    position: fixed;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s ease;
}

.nature-leaf-1 {
    width: 40px;
    height: 60px;
    top: 20%;
    right: 5%;
    transform: rotate(15deg);
}

.nature-drop-1 {
    width: 20px;
    height: 30px;
    top: 45%;
    left: 3%;
    transform: rotate(-5deg);
}

.nature-stone-1 {
    width: 50px;
    height: 30px;
    bottom: 30%;
    right: 8%;
}

.nature-leaf-2 {
    width: 35px;
    height: 52px;
    bottom: 15%;
    left: 6%;
    transform: rotate(-20deg);
}

.nature-branch-1 {
    width: 80px;
    height: 20px;
    top: 65%;
    right: 3%;
    transform: rotate(8deg);
}

.nature-drop-2 {
    width: 16px;
    height: 24px;
    top: 78%;
    left: 4%;
    transform: rotate(10deg);
}

/* HUD Panel System */
.hud-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.hud-frame {
    background: #FFFFFF;
    border: 1px solid rgba(80, 120, 160, 0.15);
    border-radius: 2px;
    position: relative;
    padding: 2.5rem;
    padding-top: 3rem;
}

/* HUD Corner Elements */
.hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
}

.hud-corner-tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid #5080A0;
    border-left: 2px solid #5080A0;
}

.hud-corner-tr {
    top: -1px;
    right: -1px;
    border-top: 2px solid #5080A0;
    border-right: 2px solid #5080A0;
}

.hud-corner-bl {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid #5080A0;
    border-left: 2px solid #5080A0;
}

.hud-corner-br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid #5080A0;
    border-right: 2px solid #5080A0;
}

/* Status Strip */
.status-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(80, 120, 160, 0.04);
    border-bottom: 1px solid rgba(80, 120, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.status-id {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #5080A0;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.status-timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #90B0C8;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    margin-bottom: 4rem;
}

.hero-section .hud-frame {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
    padding: 4rem 3rem;
    padding-top: 4.5rem;
}

.hero-content {
    text-align: center;
}

.hero-eyebrow {
    margin-bottom: 2rem;
}

.hero-eyebrow .label-mono {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #5080A0;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-tagline {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(80, 120, 160, 0.15);
    text-align: center;
}

.hero-tagline .label-mono {
    font-size: 0.7rem;
}

.hero-scan-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5080A0, transparent);
    margin: 2.5rem auto 0;
    opacity: 0;
    animation: scan-pulse 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes scan-pulse {
    0%, 100% { opacity: 0; width: 60px; }
    50% { opacity: 0.4; width: 120px; }
}

/* Dual Panel Grid */
.dual-panel {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2rem;
    align-items: start;
}

.panel-primary {
    padding-right: 1rem;
}

.panel-primary .body-text {
    margin-bottom: 1rem;
}

.panel-primary .body-text:last-child {
    margin-bottom: 0;
}

/* Mixed Media Zones */
.mixed-media-zone {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.media-illustration {
    width: 100%;
    height: auto;
    display: block;
}

.illustration-overlay {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 60%;
    height: 60%;
    pointer-events: none;
}

.hand-drawn-overlay {
    width: 100%;
    height: 100%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: #F8FAFE;
    border: 1px solid rgba(80, 120, 160, 0.1);
    border-radius: 2px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    border-color: rgba(80, 128, 160, 0.3);
    box-shadow: 0 2px 12px rgba(80, 120, 160, 0.08);
}

.service-hud-label {
    margin-bottom: 0.25rem;
}

.service-title {
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #101828;
}

.service-card .body-text {
    font-size: 0.875rem;
    flex-grow: 1;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(80, 120, 160, 0.1);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #90B0C8;
}

.status-indicator.active {
    background: #508870;
    box-shadow: 0 0 6px rgba(80, 136, 112, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(80, 136, 112, 0.4); }
    50% { box-shadow: 0 0 12px rgba(80, 136, 112, 0.7); }
}

/* Metrics */
.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.metric-row {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.metric-row .label-mono {
    font-size: 0.65rem;
    white-space: nowrap;
}

.metric-bar {
    height: 4px;
    background: rgba(80, 120, 160, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #5080A0, #90B0C8);
    border-radius: 2px;
    width: 0%;
    transition: width 1.5s ease-out;
}

.metric-value {
    text-align: right;
    font-size: 0.7rem;
}

.metrics-visual {
    border: 1px solid rgba(80, 120, 160, 0.1);
    border-radius: 2px;
}

.metrics-chart {
    width: 100%;
    height: auto;
    display: block;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.philosophy-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

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

.philosophy-title {
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #101828;
    margin-bottom: 0.75rem;
}

.philosophy-card .body-text {
    font-size: 0.875rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
}

.contact-content .body-text {
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #F8FAFE;
    border: 1px solid rgba(80, 120, 160, 0.1);
    border-radius: 2px;
    transition: border-color 0.4s ease;
}

.contact-field:hover {
    border-color: rgba(80, 128, 160, 0.25);
}

.contact-value {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: #101828;
}

/* Footer */
.site-footer {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(80, 120, 160, 0.15);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-separator {
    color: #90B0C8;
    opacity: 0.4;
}

/* Stagger Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* HUD Frame materialization */
.hud-frame {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hud-panel.in-view .hud-frame {
    opacity: 1;
    transform: translateY(0);
}

/* HUD corner materialization */
.hud-corner {
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.hud-panel.in-view .hud-corner {
    opacity: 1;
}

/* Status strip text fade-in */
.status-strip .status-id,
.status-strip .status-timestamp {
    transition: opacity 0.6s ease 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .dual-panel {
        grid-template-columns: 1fr;
    }

    .panel-primary {
        padding-right: 0;
    }

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

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

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

    .hud-frame {
        padding: 2rem 1.5rem;
        padding-top: 2.5rem;
    }

    .hero-section .hud-frame {
        min-height: 50vh;
        padding: 3rem 1.5rem;
        padding-top: 3.5rem;
    }

    .hero-title {
        letter-spacing: 0.04em;
    }

    .metric-row {
        grid-template-columns: 100px 1fr 40px;
        gap: 0.5rem;
    }

    .metric-row .label-mono {
        font-size: 0.55rem;
    }

    .nature-branch-1,
    .nature-drop-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hud-panel {
        padding: 0 1rem;
    }

    .hud-frame {
        padding: 1.5rem 1rem;
        padding-top: 2rem;
    }

    .hero-section .hud-frame {
        padding: 2rem 1rem;
        padding-top: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }

    .nature-element {
        display: none;
    }
}
