/* Reset & Variables */
:root {
    --bg-color: #f3f2ee;
    --text-color: #1a1a1a;
    --border-color: #dcdbd7;
    --text-muted: #767571;
    --accent-color: #3b3b3a;
    --transition-fast: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Border Helpers */
.border-b { border-bottom: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }

/* App Layout */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Header */
.header {
    display: grid;
    grid-template-columns: 28% 44% 28%;
    height: 80px;
    align-items: center;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-box, .header-center, .menu-box {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.system-status {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.menu-box {
    justify-content: flex-end;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-color);
    user-select: none;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}

.menu-icon span {
    display: block;
    height: 1.5px;
    width: 100%;
    background-color: var(--text-color);
    transition: transform 0.3s var(--transition-fast);
}

.menu-icon.open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.menu-icon.open span:nth-child(2) {
    transform: translateY(-2.5px) rotate(-45deg);
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: 28% 44% 28%;
    flex: 1;
}

/* Column Base */
.col {
    display: flex;
    flex-direction: column;
}

/* Cells */
.cell {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.cell-num {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
}

/* Left Column Specifics */
.col-left .cell-title {
    flex: 1.3;
    justify-content: center;
}

.title-bold {
    font-size: 38px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.desc-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.col-left .cell-stats {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.col-left .cell-footer-link {
    flex: 0.8;
    justify-content: flex-start;
}

.tag-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.tag-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Center Column (Primary Canvas) */
.col-center {
    position: relative;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 600;
    color: rgba(220, 219, 215, 0.35);
    letter-spacing: -0.05em;
    user-select: none;
    z-index: 1;
    pointer-events: none;
}

.canvas-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0;
    overflow: hidden;
    min-height: 500px;
}

.visual-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.badge-float {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 219, 215, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #2e7d32;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.badge-txt {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.visual-footer {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 2;
}

.copyright-mark {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.serial-num {
    font-size: 11px;
    color: var(--text-muted);
}

/* Right Column Specifics */
.col-right .cell-nav {
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}

.right-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s var(--transition-fast);
}

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

.col-right .cell-work {
    flex: 1.5;
    justify-content: flex-start;
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.capability-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cap-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.cap-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.col-right .cell-philosophy {
    flex: 1;
    justify-content: center;
}

.philosophy-quote {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    font-style: italic;
}

.col-right .cell-contact {
    flex: 1;
    justify-content: flex-start;
}

.email-link {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 4px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 24px;
    transition: opacity 0.3s var(--transition-fast);
}

.email-link:hover {
    opacity: 0.7;
}

.footer-note {
    font-size: 11px;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Animations classes */
.animate-fade {
    opacity: 0;
    transform: translateY(15px);
    animation: simpleFade 1s var(--transition-fast) forwards;
}

@keyframes simpleFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .header {
        grid-template-columns: 30% 40% 30%;
    }
    .grid-container {
        grid-template-columns: 30% 40% 30%;
    }
    .cell {
        padding: 30px;
    }
    .title-bold {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .header {
        grid-template-columns: 50% 50%;
    }
    .header-center {
        display: none;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .border-r {
        border-right: none;
    }
    .col {
        border-bottom: 1px solid var(--border-color);
    }
    .col-center {
        border-bottom: 1px solid var(--border-color);
    }
    .canvas-visual {
        min-height: 500px;
    }
    .col-right .cell-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 0;
        height: 70px;
    }
    .logo-box, .menu-box {
        padding: 0 20px;
    }
    .cell {
        padding: 24px;
    }
    .title-bold {
        font-size: 28px;
    }
    .canvas-visual {
        min-height: 400px;
    }
    .stat-val {
        font-size: 28px;
    }
}
