/* =========================================================================
   SCL테크놀리지 — "Engineered systems / control-room precision"
   Dark hero (blueprint dot-grid) -> light body -> dark footer.
   Display+logo: Space Grotesk · Mono utility: JetBrains Mono · KR body: Pretendard
   ========================================================================= */

:root {
    /* palette */
    --ink:      #0B0F1A;   /* deep navy-black — hero / footer */
    --surface:  #111726;   /* panels on dark */
    --paper:    #F5F7FA;   /* light sections */
    --signal:   #3B6FF6;   /* primary electric-blue accent */
    --ember:    #FF6B4A;   /* warm signal-orange — ONE key CTA / data emphasis */
    --slate:    #8A94A6;   /* muted labels */
    --hairline: #1E2740;   /* dark hairlines / dot-grid */

    /* derived neutrals for light surfaces */
    --line:     #E2E6EE;   /* light hairline */
    --line-2:   #EDF0F5;   /* faint light hairline */
    --panel:    #FFFFFF;   /* light card */
    --text:     #131A26;   /* body ink on paper */
    --text-2:   #55607A;   /* secondary body */
    --text-3:   #8A94A6;   /* muted */
    --signal-ink:#1E44B8;  /* darker signal for text-on-light */

    /* type */
    --kr: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
    --display: "Space Grotesk", var(--kr);
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --maxw: 1180px;
    --ease: cubic-bezier(.2,.6,.2,1);
}

/* ===== Reset & Base ===== */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--kr);
    color: var(--text);
    line-height: 1.7;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--signal-ink); }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }

::selection { background: var(--signal); color: #fff; }

/* keyboard focus — visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ===== Layout ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.site-main { min-height: calc(100vh - 420px); background: var(--paper); }

/* mono annotation helper — the // system-label motif */
.eyebrow, .board-count, .l-date, .view-meta, .breadcrumb,
.service-icon, .col-no, .col-date, .col-hit, .cm-count {
    font-family: var(--mono);
    font-feature-settings: "tnum" 1;
}

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,15,26,0.88);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 34px;
    background: transparent;
    color: #fff; border-radius: 4px;
    border: 1px solid var(--signal);
    box-shadow: inset 0 0 0 1px rgba(59,111,246,.25);
    font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 1px;
    position: relative;
}
.logo-mark::after {
    content: ''; position: absolute; top: 5px; right: 5px;
    width: 4px; height: 4px; border-radius: 50%; background: var(--ember);
}
.logo-text { color: #fff; letter-spacing: -0.01em; }

.gnb > ul { display: flex; gap: 2px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
    display: block; padding: 10px 16px; font-size: 15px; font-weight: 500; color: #C7CEDB;
    border-radius: 6px; letter-spacing: -0.01em;
}
.gnb > ul > li > a:hover { color: #fff; background: rgba(59,111,246,.14); }
.gnb > ul > li > a.active { color: #fff; background: rgba(59,111,246,.20); box-shadow: inset 0 0 0 1px rgba(59,111,246,.4); }

.gnb .sub {
    position: absolute; top: 100%; left: 50%;
    background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px;
    min-width: 172px; padding: 6px;
    box-shadow: 0 18px 44px rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.gnb .has-sub:hover .sub,
.gnb .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.gnb .sub li a { display: block; padding: 10px 14px; font-size: 14px; color: #AEB7C6; border-radius: 5px; }
.gnb .sub li a:hover { background: rgba(59,111,246,.16); color: #fff; }

.mobile-toggle { display: none; background: none; border: 0; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }
body.menu-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .mobile-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 30px; border-radius: 6px;
    font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .01em;
    border: 1px solid transparent; transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 6px 20px rgba(59,111,246,.35); }
.btn-primary:hover { background: #2E5FE0; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(59,111,246,.45); }
.btn-outline { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }

/* ===== HERO (home) — blueprint dot-grid, left aligned ===== */
.hero {
    position: relative; overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: 118px 24px 108px;
    border-bottom: 1px solid var(--hairline);
}
/* signature: faint blueprint dot-grid + soft signal wash */
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(circle at 50% 42%, rgba(59,111,246,.16), transparent 55%),
        radial-gradient(var(--hairline) 1px, transparent 1.4px);
    background-size: 100% 100%, 26px 26px;
    background-position: 0 0, 0 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
    opacity: .9;
}
/* thin connective hairline down the left */
.hero::after {
    content: ''; position: absolute; left: max(24px, calc((100% - var(--maxw))/2 + 24px));
    top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--hairline), transparent);
    z-index: 0;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; text-align: left; }
/* mono status / coordinate strip */
.hero-inner::before {
    content: "// SYSTEM_INTEGRATION · SEOUL 37.50°N 127.04°E · STATUS: ONLINE";
    display: inline-block;
    font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
    color: var(--slate); text-transform: uppercase;
    padding: 7px 14px; margin-bottom: 26px;
    border: 1px solid var(--hairline); border-radius: 999px;
    background: rgba(17,23,38,.6);
}
.hero-inner::after {
    content: "// STATUS"; position: absolute; right: 4px; top: 2px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--slate);
    display: none;
}
.hero h1 {
    font-size: clamp(34px, 5.4vw, 58px); font-weight: 700; line-height: 1.08;
    margin: 0 0 22px; letter-spacing: -0.02em; max-width: 16ch;
}
.hero h1 span { color: var(--signal); }
.hero p { font-size: clamp(15px, 2vw, 18px); color: #AAB4C6; max-width: 560px; margin: 0 0 34px; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Section scaffolding ===== */
.section { padding: 96px 0; background: var(--paper); }
.section-title { max-width: 720px; margin: 0 0 52px; }
.section-title .eyebrow {
    display: inline-block; color: var(--signal-ink);
    font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title .eyebrow::before { content: "// "; color: var(--ember); }
.section-title h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin: 0 0 14px; color: var(--ink); letter-spacing: -0.02em; }
.section-title p { color: var(--text-2); margin: 0; font-size: 16px; }

/* ===== Service cards — mono index, hairline top border lights on hover ===== */
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.service-card {
    background: var(--panel);
    padding: 34px 30px 36px; position: relative;
    transition: transform .22s var(--ease), background .22s var(--ease);
    border-top: 2px solid transparent;
}
.service-card::before {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
    background: var(--signal); transform: scaleX(0); transform-origin: left;
    transition: transform .28s var(--ease);
}
.service-card:hover { transform: translateY(-4px); background: #FBFCFE; z-index: 1; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 30px; padding: 0 10px; border-radius: 5px;
    background: rgba(59,111,246,.10); color: var(--signal-ink);
    border: 1px solid rgba(59,111,246,.28);
    font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .06em;
    margin-bottom: 22px;
}
.service-card:hover .service-icon { background: var(--signal); color: #fff; border-color: var(--signal); }
.service-card h3 { font-size: 19px; margin: 0 0 10px; color: var(--ink); }
.service-card p { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.7; }

/* ===== CTA banner — the ONE ember moment ===== */
.cta-banner {
    position: relative; overflow: hidden;
    background: var(--ink) !important;
    color: #fff; padding: 96px 24px !important; text-align: center;
    background-image:
        radial-gradient(circle at 80% 30%, rgba(255,107,74,.14), transparent 45%),
        radial-gradient(var(--hairline) 1px, transparent 1.4px) !important;
    background-size: 100% 100%, 26px 26px !important;
}
.cta-banner h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; position: relative; }
.cta-banner p { margin: 0 0 30px; color: #AAB4C6; position: relative; }
.cta-banner .btn-primary {
    background: var(--ember); color: #0B0F1A; box-shadow: 0 8px 24px rgba(255,107,74,.4);
    font-weight: 700; position: relative;
}
.cta-banner .btn-primary:hover { background: #FF7E60; color: #0B0F1A; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,107,74,.5); }

/* ===== Latest posts (home) ===== */
.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.latest-box {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 30px;
    transition: border-color .2s var(--ease);
}
.latest-box:hover { border-color: #C9D2E2; }
.latest-box .lb-head {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 8px;
}
.latest-box h3 { margin: 0; font-size: 18px; color: var(--ink); }
.latest-box h3::before { content: "// "; font-family: var(--mono); color: var(--signal); font-size: 13px; }
.latest-box .more { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: .03em; }
.latest-box .more:hover { color: var(--signal-ink); }
.latest-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px;
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list .l-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; color: var(--text); }
.latest-list .l-title:hover { color: var(--signal-ink); }
.latest-list .l-date { color: var(--text-3); font-size: 12px; flex-shrink: 0; letter-spacing: .02em; }
.latest-list .l-empty { color: var(--text-3); padding: 20px 0; text-align: center; font-size: 14px; }

/* ===== Sub-page hero ===== */
.sub-hero {
    position: relative; overflow: hidden;
    background: var(--ink); color: #fff; padding: 72px 24px 64px; text-align: left;
    border-bottom: 1px solid var(--hairline);
}
.sub-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(var(--hairline) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    mask-image: linear-gradient(180deg, #000, transparent);
    opacity: .7;
}
.sub-hero > * { position: relative; z-index: 1; max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.sub-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; }
.sub-hero p { margin: 0; color: #AAB4C6; }

/* ===== Breadcrumb ===== */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--hairline); padding: 12px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--slate); letter-spacing: .03em; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--hairline); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--signal); }
.breadcrumb a:hover { color: #fff; }

/* ===== Content sections (about / services / contact) ===== */
.content-section { padding: 84px 0; background: var(--paper); }
.content-section h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 18px; color: var(--ink); letter-spacing: -0.02em; }
.content-section h3 { font-size: 20px; margin: 44px 0 14px; color: var(--ink); position: relative; padding-left: 18px; }
.content-section h3::before { content: ''; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; background: var(--signal); border-radius: 2px; }
.content-section p { color: var(--text-2); max-width: 74ch; }
.content-section > .container > p a { color: var(--signal-ink); font-weight: 600; }

/* feature list */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 26px 0; }
.feature-item {
    padding: 26px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    border-left: 3px solid var(--signal);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(19,26,38,.08); }
.feature-item strong { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 8px; font-size: 16px; letter-spacing: -0.01em; }
.feature-item span { color: var(--text-2); font-size: 14px; }

/* info table */
.info-table { width: 100%; border-collapse: collapse; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.info-table th, .info-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { background: #EEF1F7; color: var(--text); width: 30%; font-weight: 600; }
.info-table td { color: var(--text-2); }
.info-table td a { color: var(--signal-ink); }

/* ===== Board list ===== */
.board-wrap { padding: 56px 0 76px; background: var(--paper); }
.board-head {
    display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px;
    margin-bottom: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.board-head h2 { margin: 0; font-size: 24px; color: var(--ink); }
.board-head .board-desc { color: var(--text-2); font-size: 14px; margin: 6px 0 0; }
.board-count { color: var(--text-3); font-size: 12px; letter-spacing: .03em; }
.board-count strong { color: var(--signal-ink); }

.board-table { width: 100%; border-collapse: collapse; }
.board-table thead th {
    background: transparent; padding: 12px 12px;
    font-family: var(--mono); font-size: 11px; color: var(--slate); font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; text-align: left;
    border-bottom: 1px solid var(--line);
}
.board-table tbody td { padding: 15px 12px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; color: var(--text); }
.board-table tbody tr { transition: background .12s var(--ease); }
.board-table tbody tr:hover { background: #EEF2F9; }
.board-table .col-no    { width: 70px;  text-align: center; color: var(--text-3); font-size: 13px; }
.board-table .col-name  { width: 120px; text-align: center; color: var(--text-2); }
.board-table .col-date  { width: 116px; text-align: center; color: var(--text-3); font-size: 12px; }
.board-table .col-hit   { width: 72px;  text-align: center; color: var(--text-3); font-size: 12px; }
.board-table thead .col-no, .board-table thead .col-name,
.board-table thead .col-date, .board-table thead .col-hit { text-align: center; }
.board-table .col-title a { color: var(--ink); font-weight: 500; }
.board-table .col-title a:hover { color: var(--signal-ink); }
.cm-count { color: var(--ember); font-size: 12px; margin-left: 6px; font-weight: 700; }
.board-empty { padding: 64px 0; text-align: center; color: var(--text-3); }

.board-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ===== Pagination ===== */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 6px;
    font-family: var(--mono); font-size: 13px; color: var(--text-2); background: var(--panel);
}
.pagination a:hover { border-color: var(--signal); color: var(--signal-ink); }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== View page ===== */
.view-wrap { padding: 56px 0 76px; background: var(--paper); }
.view-head { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 26px 0; }
.view-head h1 { margin: 0 0 14px; font-size: clamp(20px, 2.6vw, 24px); color: var(--ink); letter-spacing: -0.02em; }
.view-meta { display: flex; gap: 18px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; letter-spacing: .02em; }
.view-meta span strong { color: var(--text); font-weight: 600; margin-left: 5px; }

.view-content {
    padding: 40px 4px; min-height: 220px;
    font-family: var(--kr);
    font-size: 15.5px; line-height: 1.9; color: var(--text);
    border-bottom: 1px solid var(--line);
    word-wrap: break-word; white-space: pre-wrap;
}

.view-actions { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; gap: 8px; flex-wrap: wrap; }
.view-actions .left, .view-actions .right { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-sm {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 18px; font-family: var(--display); font-weight: 500; font-size: 13px;
    border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
    transition: background .14s var(--ease), color .14s var(--ease), border-color .14s var(--ease);
}
.btn-sm:hover { border-color: var(--signal); color: var(--signal-ink); }
.btn-sm.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm.primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-sm.danger { color: #C23A2B; border-color: #F3C9C2; }
.btn-sm.danger:hover { background: #FCEDEA; border-color: var(--ember); color: #B4271A; }

/* ===== Comments ===== */
.cm-section { margin-top: 48px; }
.cm-section h3 { font-size: 16px; margin: 0 0 18px; color: var(--ink); }
.cm-section h3::before { content: "// "; font-family: var(--mono); color: var(--signal); }
.cm-section h3 em { color: var(--ember); font-style: normal; font-family: var(--mono); }
.cm-list { border-top: 1px solid var(--line); }
.cm-item { padding: 18px 4px; border-bottom: 1px solid var(--line-2); }
.cm-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--text-3); }
.cm-meta .cm-name { font-weight: 600; color: var(--text); }
.cm-meta .cm-actions a { font-size: 12px; color: var(--text-3); margin-left: 8px; }
.cm-meta .cm-actions a:hover { color: var(--ember); }
.cm-body { font-size: 14.5px; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }

.cm-form { background: var(--panel); border: 1px solid var(--line); padding: 22px; border-radius: 10px; margin-top: 24px; }
.cm-form .row { display: flex; gap: 8px; margin-bottom: 8px; }
.cm-form input[type=text], .cm-form input[type=password] {
    flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: var(--kr);
    background: #FBFCFE;
}
.cm-form textarea {
    width: 100%; min-height: 96px; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: 6px; font-size: 14px;
    font-family: var(--kr); resize: vertical; background: #FBFCFE; line-height: 1.7;
}
.cm-form input:focus, .cm-form textarea:focus { border-color: var(--signal); background: #fff; }
.cm-form .submit-row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ===== Write form ===== */
.write-wrap { padding: 56px 0 76px; background: var(--paper); }
.write-form { border-top: 2px solid var(--ink); background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; }
.write-form .frow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.write-form .frow:last-of-type { border-bottom: 0; }
.write-form .flabel {
    width: 150px; padding: 16px 20px; background: #EEF1F7;
    font-family: var(--display); font-size: 14px; font-weight: 500; color: var(--text);
    display: flex; align-items: center;
}
.write-form .flabel .req { color: var(--ember); margin-left: 4px; }
.write-form .finput { flex: 1; min-width: 0; padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.write-form input[type=text], .write-form input[type=password], .write-form input[type=email] {
    flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: 14.5px; font-family: var(--kr); background: #FBFCFE;
}
.write-form textarea {
    width: 100%; min-height: 340px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 6px; font-size: 15px;
    font-family: var(--kr); line-height: 1.8; resize: vertical; background: #FBFCFE;
}
.write-form input:focus, .write-form textarea:focus { border-color: var(--signal); background: #fff; }
.write-form .check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.write-form .frow.full { display: block; padding: 16px 20px; }
.write-form .frow.full .flabel { display: none; }
.form-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

/* ===== Password prompt ===== */
.pw-box {
    max-width: 440px; margin: 64px auto; padding: 40px 34px;
    border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: 12px; background: var(--panel);
    text-align: center; box-shadow: 0 20px 50px rgba(19,26,38,.08);
}
.pw-box h3 { margin: 0 0 8px; color: var(--ink); font-size: 20px; }
.pw-box p { color: var(--text-2); font-size: 14px; margin: 0 0 22px; }
.pw-box input[type=password] {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px;
    font-size: 14px; margin-bottom: 12px; font-family: var(--kr); background: #FBFCFE;
}
.pw-box input[type=password]:focus { border-color: var(--signal); background: #fff; }

/* ===== Captcha & honeypot ===== */
.captcha-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-img { height: 50px; border: 1px solid var(--line); border-radius: 6px; background: #FBFCFE; display: block; }
.captcha-reload {
    width: 40px; height: 40px; border-radius: 6px;
    border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
    font-size: 18px; line-height: 1; transition: transform .3s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.captcha-reload:hover { border-color: var(--signal); color: var(--signal-ink); transform: rotate(90deg); }
input[name="captcha"] {
    padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px;
    font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; min-width: 160px; background: #FBFCFE;
}
input[name="captcha"]:focus { border-color: var(--signal); background: #fff; }

/* honeypot — visually hidden offscreen (must NOT render) */
.hp-field {
    position: absolute !important;
    left: -10000px !important; top: auto !important;
    width: 1px !important; height: 1px !important;
    overflow: hidden !important; opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #AAB4C6; margin-top: 0; border-top: 1px solid var(--hairline); position: relative; overflow: hidden; }
.site-footer::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(var(--hairline) 1px, transparent 1.4px);
    background-size: 26px 26px; opacity: .5;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
    mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.footer-inner { position: relative; display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 44px; padding: 60px 24px 36px; max-width: var(--maxw); margin: 0 auto; }
.footer-col h4 { color: #fff; font-family: var(--mono); font-size: 12px; margin: 0 0 18px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.footer-col h4::before { content: "// "; color: var(--signal); }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; color: #fff; font-size: 18px; margin-bottom: 16px; }
.footer-desc { color: var(--slate); font-size: 14px; margin: 0; max-width: 34ch; }
.footer-info li, .footer-links li { font-size: 13px; padding: 5px 0; color: var(--slate); }
.footer-info strong { color: #C7CEDB; margin-right: 6px; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-bottom { position: relative; border-top: 1px solid var(--hairline); padding: 18px 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--slate); text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .latest-grid { grid-template-columns: 1fr; }
    .hero { padding: 84px 24px 76px; }
    .section { padding: 64px 0; }
    .content-section, .board-wrap, .view-wrap, .write-wrap { padding-top: 56px; padding-bottom: 64px; }
    .hero::after { display: none; }

    .mobile-toggle { display: block; }
    .gnb {
        position: fixed; top: 74px; left: 0; right: 0;
        background: var(--ink); border-bottom: 1px solid var(--hairline);
        max-height: 0; overflow: hidden; transition: max-height .28s var(--ease);
    }
    body.menu-open .gnb { max-height: 82vh; overflow-y: auto; }
    .gnb > ul { flex-direction: column; padding: 8px 16px; gap: 0; }
    .gnb > ul > li > a { padding: 15px 12px; border-radius: 0; border-bottom: 1px solid var(--hairline); }
    .gnb .sub {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: 0; padding: 0 0 8px 16px; background: transparent; min-width: 0;
    }
    .gnb .has-sub:hover .sub, .gnb .has-sub:focus-within .sub { transform: none; }

    .board-table .col-name, .board-table .col-hit,
    .board-table thead .col-name, .board-table thead .col-hit { display: none; }
    .write-form .frow { flex-direction: column; }
    .write-form .flabel { width: 100%; padding: 12px 16px; }
}

@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .hero-inner::before { font-size: 10.5px; letter-spacing: .04em; padding: 6px 10px; }
    .btn { width: 100%; justify-content: center; }
    .cta-banner .btn-primary, .hero-btns .btn { width: auto; }
    .view-content { font-size: 15px; }
}

@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .hero-inner::before { white-space: normal; }
}

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .service-card:hover, .feature-item:hover, .btn:hover, .btn-primary:hover { transform: none; }
    .captcha-reload:hover { transform: none; }
}
