/* ============================================================
   SOPHIA — CSS Design System
   White / Gray Professional Theme (No Black Backgrounds)
   Font: Noto Sans KR (Google 본고딕)
   ============================================================ */

:root {
    --white:    #ffffff;
    --off-white:#f9f9f9;
    --gray-50:  #f4f4f4;
    --gray-100: #ebebeb;
    --gray-200: #d4d4d4;
    --gray-300: #aaaaaa;
    --gray-500: #777777;
    --gray-700: #444444;
    --gray-900: #1f1f1f;
    --black:    #111111;
    --gpu-gold: #b8942a;

    --border:   #e2e2e2;
    --sidebar-w: 240px;
    --sidebar-r: 220px;
    --font-main: 'Noto Sans KR', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 36px rgba(0,0,0,0.10);
    --radius: 10px;
    --transition: 0.22s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
    display: flex;
    min-height: 100vh;
    justify-content: center;
    padding-left: var(--sidebar-w);
    padding-right: var(--sidebar-r);
}

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */
.sidebar-left {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.sidebar-left::-webkit-scrollbar { width: 3px; }
.sidebar-left::-webkit-scrollbar-track { background: transparent; }
.sidebar-left::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.sidebar-left .sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px 0 20px;
}

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 22px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 10px;
}
.logo-mark {
    width: 34px; height: 34px;
    background: var(--gray-900);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.logo-s {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 900;
    line-height: 1;
}
.logo-text { line-height: 1.25; }
.logo-text strong { display: block; font-size: 0.82rem; letter-spacing: 0.08em; font-weight: 800; color: var(--gray-900); }
.logo-kr { font-size: 0.68rem; color: var(--gray-300); letter-spacing: 0.04em; }

/* Nav */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 10px;
}
.nav-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-500);
    transition: all var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-item.active { background: var(--gray-50); color: var(--gray-900); border-left-color: var(--gray-700); }
.nav-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.78rem;
    margin-top: 3px;
    color: var(--gray-300);
    transition: color var(--transition);
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { color: var(--gray-700); }
.nav-content { display: flex; flex-direction: column; }
.nav-title { font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: var(--gray-700); }
.nav-sub { font-size: 0.73rem; color: var(--gray-300); margin-top: 2px; line-height: 1.3; }
.nav-item:hover .nav-title, .nav-item.active .nav-title { color: var(--gray-900); }
.nav-item:hover .nav-sub, .nav-item.active .nav-sub { color: var(--gray-500); }

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 18px 8px;
    border-top: 1px solid var(--gray-100);
    margin-top: 10px;
}
.footer-since { font-size: 0.62rem; color: var(--gray-300); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-name { font-size: 0.75rem; font-weight: 700; color: var(--gray-700); margin-top: 2px; }
.footer-copy { font-size: 0.58rem; color: var(--gray-300); margin-top: 5px; line-height: 1.5; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    min-height: 100vh;
    background: var(--white);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   RIGHT SIDEBAR
   ============================================================ */
.sidebar-right {
    width: var(--sidebar-r);
    flex-shrink: 0;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    background: var(--off-white);
    border-left: 1px solid var(--border);
    overflow: hidden;
    z-index: 100;
}
.sidebar-right::-webkit-scrollbar { width: 3px; }
.sidebar-right::-webkit-scrollbar-track { background: transparent; }
.sidebar-right::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.sidebar-right .sidebar-inner {
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-block-icon {
    width: 28px; height: 28px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    margin-bottom: 9px;
}
.right-block h4 {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* Phone */
.phone-number {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.work-hours { display: flex; flex-direction: column; gap: 4px; }
.hour-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.67rem; color: var(--gray-500);
}
.hour-row i { font-size: 0.63rem; }
.hour-row.off { color: var(--gray-300); }

/* Branch Links */
.branch-links { display: flex; flex-direction: column; gap: 4px; }
.branch-link {
    display: flex; align-items: flex-start; gap: 6px;
    padding: 6px 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition);
}
.branch-link:hover { border-color: var(--gray-700); }
.branch-link i { font-size: 0.58rem; color: var(--gray-300); margin-top: 4px; flex-shrink: 0; }
.branch-link:hover i { color: var(--gray-700); }
.branch-name { font-size: 0.67rem; font-weight: 600; color: var(--gray-700); display: block; line-height: 1.2; }
.branch-url { font-size: 0.58rem; color: var(--gray-300); font-family: var(--font-mono); display: block; }

/* Notice */
.notice-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.notice-list li {
    display: flex; flex-direction: column; gap: 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-100);
}
.notice-list li:last-child { border-bottom: none; padding-bottom: 0; }
.notice-list a {
    font-size: 0.68rem;
    color: var(--gray-700);
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--transition);
}
.notice-list a:hover { color: var(--gray-900); }
.notice-badge {
    display: inline-block;
    padding: 1px 5px;
    background: var(--gray-700);
    color: var(--white);
    font-size: 0.54rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: fit-content;
    margin-bottom: 2px;
}
.notice-date { font-size: 0.6rem; color: var(--gray-300); font-family: var(--font-mono); }

/* CTA */
.cta-desc { font-size: 0.68rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 10px; }
.cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--gray-700);
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 600;
    transition: all var(--transition);
}
.cta-btn:hover { background: var(--gray-500); transform: translateY(-1px); }

.right-block + .right-block {
    padding-top: 18px;
    border-top: 1px solid var(--gray-100);
}

/* ============================================================
   SECTIONS — Shared
   ============================================================ */
.section {
    padding: 68px 52px;
    border-bottom: 1px solid var(--gray-100);
}
.section:last-of-type { border-bottom: none; }

.section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 8px;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--gray-500);
    font-size: 0.875rem;
    max-width: 580px;
    margin-bottom: 32px;
    line-height: 1.85;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 80px 52px;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--gray-100) 1px, transparent 1px),
                      linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.7;
}

.hero-years-badge {
    position: absolute;
    top: 40px; right: 40px;
    display: flex; flex-direction: column; align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}
.years-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
}
.years-label {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-top: 4px;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 18px;
    font-family: var(--font-mono);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.hero-en {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
    letter-spacing: -0.03em;
}
.hero-kr {
    font-size: 1.3rem;
    color: var(--gray-300);
    font-weight: 300;
    letter-spacing: 0.3em;
}
.hero-tagline {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 0.03em;
}
.hero-desc {
    max-width: 500px;
    font-size: 0.86rem;
    color: var(--gray-500);
    line-height: 1.95;
    margin-bottom: 28px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-tags span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--gray-500);
    box-shadow: var(--shadow-sm);
}
.hero-tags span i { font-size: 0.63rem; color: var(--gray-300); }

.hero-scroll-hint {
    position: absolute;
    bottom: 32px; left: 52px;
    font-size: 0.85rem;
    color: var(--gray-300);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.philosophy-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.philosophy-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.philo-icon {
    width: 38px; height: 38px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 14px;
    transition: all var(--transition);
}
.philosophy-card:hover .philo-icon {
    background: var(--gray-700);
    color: var(--white);
    border-color: var(--gray-700);
}
.philosophy-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 7px; }
.philosophy-card p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.85; }

/* ============================================================
   CONSULTING
   ============================================================ */
.consulting-section { background: var(--gray-50); }
.consulting-inner {
    display: flex; gap: 44px; align-items: flex-start; margin-top: 32px;
}
.consulting-visual {
    flex-shrink: 0;
    width: 110px; height: 110px;
    background: var(--gray-100);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.question-mark-big { font-size: 4rem; color: var(--gray-500); font-weight: 900; line-height: 1; }
.consulting-content { flex: 1; }
.consulting-lead { font-size: 0.92rem; color: var(--gray-700); line-height: 1.85; margin-bottom: 18px; }
.consulting-points { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.cp-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.81rem; color: var(--gray-700); line-height: 1.5;
}
.cp-item i { margin-top: 2px; font-size: 0.82rem; flex-shrink: 0; }
.cp-bad { color: var(--gray-300); }
.cp-good { color: var(--gray-500); }
.consulting-quote {
    border-left: 3px solid var(--gray-200);
    padding-left: 15px;
    font-style: italic;
    color: var(--gray-500);
    font-size: 0.83rem;
    line-height: 1.7;
}

/* ============================================================
   FIELDS
   ============================================================ */
.fields-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: all var(--transition);
}
.field-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.field-icon {
    width: 36px; height: 36px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    transition: all var(--transition);
}
.field-card:hover .field-icon { background: var(--gray-700); color: var(--white); border-color: var(--gray-700); }
.field-card h3 { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-bottom: 7px; }
.field-card p { font-size: 0.76rem; color: var(--gray-500); line-height: 1.75; }
.field-badge {
    display: inline-block; margin-top: 9px; padding: 2px 8px;
    border-radius: 4px; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.03em;
}
.field-badge.gpu {
    background: rgba(184,148,42,0.08);
    color: var(--gpu-gold);
    border: 1px solid rgba(184,148,42,0.25);
}

/* ============================================================
   HISTORY
   ============================================================ */
.stack-area {
    margin-bottom: 36px;
    padding: 26px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stack-title {
    font-size: 0.83rem; font-weight: 700; color: var(--gray-900);
    margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.stack-title i { font-size: 0.78rem; color: var(--gray-300); }
.stack-groups { display: flex; flex-direction: column; gap: 12px; }
.stack-group { display: flex; align-items: flex-start; gap: 14px; }
.stack-group-label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--gray-300);
    width: 80px; flex-shrink: 0; padding-top: 3px;
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.stack-tags span {
    padding: 3px 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.66rem;
    color: var(--gray-700);
    font-family: var(--font-mono);
    transition: all var(--transition);
    cursor: default;
}
.stack-tags span:hover { background: var(--gray-700); color: var(--white); border-color: var(--gray-700); }

.history-table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.79rem; }
.history-table thead tr { background: var(--gray-50); border-bottom: 2px solid var(--gray-200); }
.history-table th {
    padding: 11px 15px; font-weight: 700; letter-spacing: 0.02em;
    text-align: left; font-size: 0.73rem; color: var(--gray-700);
}
.history-table td {
    padding: 11px 15px; border-bottom: 1px solid var(--gray-100);
    color: var(--gray-500); line-height: 1.6; vertical-align: top;
}
.history-table tr:hover td { background: var(--gray-50); }
.year-cell { font-family: var(--font-mono); font-weight: 700; color: var(--gray-900) !important; font-size: 0.76rem; white-space: nowrap; }
.cnt-cell { text-align: center; font-family: var(--font-mono); color: var(--gray-300) !important; }

/* ============================================================
   INFO SECTION
   ============================================================ */
.info-philosophy {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gray-500);
    padding: 26px 28px;
    border-radius: var(--radius);
    margin-bottom: 26px;
    font-size: 0.86rem;
    line-height: 1.9;
    color: var(--gray-700);
}
.info-table-wrap { overflow-x: auto; }
.info-table { width: 100%; border-collapse: collapse; font-size: 0.79rem; }
.info-table th {
    background: var(--gray-50); border: 1px solid var(--border);
    padding: 10px 13px; font-weight: 700; color: var(--gray-700);
    text-align: center; white-space: nowrap; width: 100px;
}
.info-table td { border: 1px solid var(--border); padding: 10px 13px; color: var(--gray-700); line-height: 1.6; }

/* ============================================================
   CEO
   ============================================================ */
.ceo-section { background: var(--gray-50); }
.ceo-inner { display: flex; gap: 44px; align-items: flex-start; margin-top: 32px; }
.ceo-portrait { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ceo-avatar {
    width: 96px; height: 96px;
    background: var(--gray-100);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: var(--gray-300);
}
.ceo-name { font-size: 1.05rem; font-weight: 800; color: var(--gray-900); letter-spacing: 0.15em; }
.ceo-title { font-size: 0.7rem; color: var(--gray-500); font-weight: 600; line-height: 1.4; }
.ceo-sub { font-size: 0.65rem; color: var(--gray-300); }

.ceo-message { flex: 1; }
.ceo-message p { font-size: 0.86rem; color: var(--gray-700); line-height: 1.95; margin-bottom: 14px; }
.ceo-sign {
    display: flex; flex-direction: column; align-items: flex-end;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gray-100);
}
.ceo-sign span { font-size: 0.7rem; color: var(--gray-500); }
.ceo-sign strong { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-top: 4px; letter-spacing: 0.08em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.contact-card {
    padding: 26px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}
.contact-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); }
.contact-card > i { font-size: 1.4rem; color: var(--gray-500); margin-bottom: 10px; }
.contact-card h4 { font-size: 0.83rem; font-weight: 700; color: var(--gray-900); margin-bottom: 7px; }
.contact-card p { font-family: var(--font-mono); font-size: 0.88rem; color: var(--gray-700); margin-bottom: 4px; }
.contact-card small { font-size: 0.66rem; color: var(--gray-300); }
.email-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--gray-700);
    color: var(--white);
    padding: 9px 16px; border-radius: 8px; text-decoration: none;
    font-size: 0.75rem; font-weight: 600; transition: all var(--transition); margin-top: 4px;
}
.email-btn:hover { background: var(--gray-500); transform: translateY(-1px); }

/* ============================================================
   MAIN FOOTER
   ============================================================ */
.main-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    padding: 28px 52px;
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { font-size: 1.3rem; font-weight: 900; color: var(--gray-900); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 0.73rem; color: var(--gray-500); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gray-900); }
.footer-copy { font-size: 0.66rem; color: var(--gray-300); line-height: 1.6; }

/* ============================================================
   RESPONSIVE + MOBILE DRAWER
   ============================================================ */

/* ── 탑바 내부 요소 스타일 (항상 정의, display는 미디어쿼리로 제어) ── */
.mobile-topbar {
    /* display는 JS가 제어 — 여기서 지정하지 않음 */
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px;
    background: #ffffff;
    border-bottom: 1px solid #e2e2e2;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.mobile-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    border-radius: 8px;
    color: #444444;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.mobile-btn:hover { background: #f4f4f4; }

.mobile-info-btn { font-size: 1.3rem; color: #777777; }

.mobile-menu-btn { flex-direction: column; gap: 5px; padding: 10px; }

.hamburger-line {
    display: block;
    width: 22px; height: 2px;
    background: #444444;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}
.mobile-menu-btn.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
    position: absolute; left: 50%; transform: translateX(-50%);
    pointer-events: auto;
}
.mobile-logo-mark {
    width: 30px; height: 30px;
    background: #1f1f1f;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 900;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
}
.mobile-logo-text {
    font-size: 0.9rem; font-weight: 800;
    color: #1f1f1f; letter-spacing: 0.06em;
}

.mobile-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.sidebar-close-btn {
    display: none; /* 기본 숨김 */
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #777777;
    z-index: 10;
}
.sidebar-close-btn:hover { background: #1f1f1f; color: white; border-color: #1f1f1f; }

/* ── 1280px 이하: 우측 패널 드로어 ── */
@media (max-width: 1280px) {
    :root { --sidebar-r: 0px; }
    .layout { padding-right: 0; }

    .sidebar-right {
        display: flex !important;
        position: fixed;
        top: 0; right: 0;
        width: 280px; height: 100%;
        z-index: 1100;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 24px rgba(0,0,0,0.12);
        overflow-y: auto;
    }
    .sidebar-right.open { transform: translateX(0); }
    .sidebar-right .sidebar-close-btn { display: flex; }
}

/* ── 900px 이하: 탑바 + 좌측 네비 드로어 ── */
@media (max-width: 900px) {
    :root { --sidebar-w: 0px; }
    .layout { padding-left: 0; }
    .section { padding: 44px 22px; }
    .philosophy-grid, .fields-grid, .contact-cards { grid-template-columns: 1fr; }
    .consulting-inner, .ceo-inner { flex-direction: column; }
    .hero-en { font-size: 2.6rem; }

    /* 좌측 사이드바 드로어 */
    .sidebar-left {
        display: flex !important;
        position: fixed;
        top: 0; left: 0;
        width: 280px; height: 100%;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0,0,0,0.12);
        overflow-y: auto;
    }
    .sidebar-left.open { transform: translateX(0); }
    .sidebar-left .sidebar-close-btn { display: flex; }
    .sidebar-left .sidebar-inner { padding-top: 52px; }
}
