/* ============================================================
   OAK & STONE — "Material Archive / Architectural Monograph"
   Cool warm-limestone ground, forest-green dark, oversized
   bronze index numerals, hairline rules, editorial left rhythm.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bone:   #E8E4DB;   /* page ground (cool warm-limestone) */
    --bone-2: #EEEBE3;   /* raised panel */
    --ink:    #1C1C1A;   /* dominant text (charcoal) */
    --forest: #2E3A32;   /* primary accent / dark sections */
    --forest-2:#3A483E;  /* forest hover */
    --bronze: #9C7B4E;   /* thin oak/bronze — rules & numerals */
    --stone:  #6E6A62;   /* taupe captions */
    --line:   #CFC9BC;   /* hairline rules */
    --paper-on-forest: #E8E4DB;
    --stone-on-forest: #A9A79C;

    --font-display: "Fraunces", "Pretendard Variable", Pretendard, Georgia, serif;
    --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
                 "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

    --wrap: 1240px;
    --gutter: 32px;
    --header-h: 76px;

    /* subtle paper grain used on tinted image overlays */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bone);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.005em;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .18s ease, border-color .18s ease; }
a:hover { color: var(--bronze); }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; color: inherit; }
em { font-style: normal; }
h1, h2, h3, h4 { font-weight: 600; }

.serif { font-family: var(--font-display); font-weight: 300; }

/* Latin display treatment — applied where headings hold Latin/numerals.
   Korean glyphs fall through to Pretendard automatically (per-glyph). */
.hero-text h1, .sub-hero h1, .view-head h1,
.section-head-v2 h2, .content-section h2, .board-head h2,
.project-meta h3, .jf-body h3, .service-card h3, .nl-inner h3,
.approach-list h4, .feature-item strong, .logo, .footer-logo,
.eyebrow, .project-num, .ap-num, .service-icon {
    font-family: var(--font-display);
}

/* ---------- Layout ---------- */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { min-height: calc(100vh - 420px); display: block; }

/* Reusable eyebrow — tracked-out uppercase Fraunces small-caps feel */
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--bronze);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bone) 88%, transparent);
    -webkit-backdrop-filter: saturate(140%) blur(9px);
    backdrop-filter: saturate(140%) blur(9px);
    border-bottom: 1px solid var(--line);
}
.header-inner-v2 {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.logo {
    display: inline-flex; align-items: center; gap: 13px;
    font-size: 19px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--forest);
    color: var(--forest);
    font-family: var(--font-display);
    font-weight: 500; font-size: 13px; letter-spacing: 0.02em;
    font-feature-settings: "smcp";
}
.logo-text { font-weight: 600; letter-spacing: 0.06em; }

.gnb > ul { display: flex; align-items: center; gap: 4px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
    display: block; padding: 10px 16px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--stone);
}
.gnb > ul > li > a:hover,
.gnb > ul > li > a.active { color: var(--ink); }
.gnb > ul > li > a.active { position: relative; }
.gnb > ul > li > a.active::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
    height: 1px; background: var(--bronze);
}

.gnb .sub {
    position: absolute; top: 100%; left: 50%;
    background: var(--bone-2); border: 1px solid var(--line);
    min-width: 176px; padding: 8px 0; margin-top: 6px;
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.gnb .has-sub:hover .sub,
.gnb .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub li a {
    display: block; padding: 11px 22px; font-size: 13px;
    letter-spacing: 0.01em; color: var(--stone);
}
.gnb .sub li a:hover { color: var(--forest); background: color-mix(in srgb, var(--bronze) 12%, transparent); }

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

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 30px; border: 1px solid transparent; border-radius: 0;
    font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--forest); color: var(--paper-on-forest); }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }

.btn-sm {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border: 1px solid var(--line); background: transparent;
    color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; transition: background .18s, color .18s, border-color .18s;
}
.btn-sm:hover { border-color: var(--bronze); color: var(--bronze); }
.btn-sm.primary { background: var(--forest); border-color: var(--forest); color: var(--paper-on-forest); }
.btn-sm.primary:hover { background: var(--forest-2); border-color: var(--forest-2); color: #fff; }
.btn-sm.danger { color: #8f4a3f; border-color: color-mix(in srgb, #8f4a3f 34%, var(--line)); }
.btn-sm.danger:hover { background: color-mix(in srgb, #8f4a3f 10%, transparent); border-color: #8f4a3f; color: #8f4a3f; }

/* ============================================================
   Image tinting — forest/bronze duotone + grain (curated look)
   ============================================================ */
.project-img, .jf-img, .hero-img { position: relative; isolation: isolate; }
.project-img img, .jf-img img {
    filter: grayscale(100%) contrast(1.06) brightness(1.03);
}
/* hero stays livelier but is pulled toward the palette so stray-toned stock coheres */
.hero-img img { filter: grayscale(45%) contrast(1.03) brightness(1.02) sepia(8%); }
.project-img::after, .jf-img::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(155deg,
            color-mix(in srgb, var(--forest) 62%, transparent),
            color-mix(in srgb, var(--bronze) 42%, transparent));
    mix-blend-mode: multiply;
}
.project-img::before, .jf-img::before, .hero-img::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: var(--grain);
    background-size: 140px 140px;
    opacity: 0.06; mix-blend-mode: overlay;
}
/* hero keeps a lighter, cooler wash so it stays inviting */
.hero-img::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(160deg, transparent 55%, color-mix(in srgb, var(--forest) 40%, transparent));
    mix-blend-mode: multiply;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-v2 { padding: 84px 0 104px; background: var(--bone); }
.hero-v2-inner {
    display: grid; grid-template-columns: 1.02fr 0.98fr;
    gap: 72px; align-items: center;
}
.hero-text .eyebrow {
    margin-bottom: 30px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.hero-text h1 {
    font-size: clamp(2.5rem, 5.6vw, 4rem);
    font-weight: 600; line-height: 1.18; letter-spacing: -0.02em;
    margin: 0 0 26px; color: var(--ink);
}
.hero-text h1 em {
    font-style: italic; font-weight: 500; color: var(--bronze);
}
.hero-text p {
    font-size: 16px; color: var(--stone); margin: 0 0 34px; line-height: 1.9;
    max-width: 44ch;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-img img { width: 100%; height: 620px; object-fit: cover; }
.hero-img-cap {
    position: absolute; z-index: 3; bottom: 22px; left: 22px;
    background: var(--forest); color: var(--paper-on-forest);
    padding: 12px 20px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
}

/* ============================================================
   Section heads (editorial, left, hairline)
   ============================================================ */
.section-head-v2 {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
    margin-bottom: 52px; padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.section-head-v2 .eyebrow { display: block; margin-bottom: 12px; }
.section-head-v2 h2 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ink);
}
.section-head-v2 .head-link {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--bronze); padding-bottom: 4px; border-bottom: 1px solid var(--bronze);
    white-space: nowrap;
}
.section-head-v2 .head-link:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   Featured Projects — SIGNATURE oversized bronze index numerals
   ============================================================ */
.projects-section { padding: 100px 0; background: var(--bone); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 48px; }
.project-card { display: block; }
.project-img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--forest); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-img img { transform: scale(1.045); }

.project-meta {
    display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start;
    padding-top: 22px; border-top: 1px solid var(--ink);
}
.project-num {
    grid-row: 1 / span 3;
    font-family: var(--font-display);
    font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 0.82;
    color: var(--bronze); letter-spacing: -0.02em;
    font-variant-numeric: lining-nums;
}
.project-meta h3 {
    grid-column: 2; margin: 2px 0 6px;
    font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.project-info { grid-column: 2; font-size: 12px; letter-spacing: 0.06em; color: var(--stone); text-transform: uppercase; }

/* ============================================================
   Approach — numbered specification
   ============================================================ */
.approach-section { padding: 104px 0; background: var(--bone-2); }
.approach-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.approach-list li {
    padding: 26px 22px 8px;
    border-top: 1px solid var(--ink);
    border-right: 1px solid var(--line);
}
.approach-list li:last-child { border-right: 0; }
.ap-num {
    display: block;
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1;
    color: var(--bronze); letter-spacing: -0.02em; margin-bottom: 18px;
}
.approach-list h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.approach-list p { font-size: 13px; line-height: 1.7; color: var(--stone); margin: 0; }

/* ============================================================
   Studio Journal — asymmetric feature + spec list
   ============================================================ */
.journal-section { padding: 100px 0; background: var(--bone); }
.journal-grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: 52px; align-items: start; }
.journal-feature { display: block; }
.jf-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--forest); }
.jf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.journal-feature:hover .jf-img img { transform: scale(1.035); }
.jf-body { padding-top: 24px; }
.jf-tag {
    display: inline-block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--paper-on-forest); background: var(--forest); padding: 6px 12px; margin-bottom: 16px;
}
.jf-body h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--ink); }
.jf-body h3 a:hover { color: var(--bronze); }
.jf-meta { font-size: 12px; letter-spacing: 0.04em; color: var(--stone); text-transform: uppercase; }

.js-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.js-head h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; margin: 0; color: var(--ink); }
.js-more { font-size: 20px; line-height: 1; color: var(--bronze); font-weight: 300; }
.js-more:hover { color: var(--ink); }
.js-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.js-list li:last-child { border-bottom: 0; }
.js-list a { color: var(--ink); font-size: 14px; line-height: 1.45; }
.js-list a:hover { color: var(--bronze); }
.js-date { font-size: 11px; letter-spacing: 0.06em; color: var(--stone); text-transform: uppercase; }
.js-empty { color: var(--stone); padding: 16px 0; text-align: center; font-size: 13px; }

/* ============================================================
   Newsletter — forest (the "dark")
   ============================================================ */
.newsletter-section { padding: 92px 0; background: var(--forest); color: var(--paper-on-forest); }
.nl-inner { max-width: 620px; }
.nl-inner h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--paper-on-forest); }
.nl-inner p { color: var(--stone-on-forest); margin: 0 0 28px; font-size: 14px; line-height: 1.8; max-width: 52ch; }
.nl-form { display: flex; gap: 10px; max-width: 500px; }
.nl-form input {
    flex: 1; min-width: 0; padding: 15px 18px; background: transparent;
    border: 1px solid color-mix(in srgb, var(--paper-on-forest) 40%, transparent);
    color: var(--paper-on-forest); font-size: 14px; font-family: inherit;
}
.nl-form input::placeholder { color: var(--stone-on-forest); }
.nl-form input:focus { outline: none; border-color: var(--bronze); }
.nl-form button {
    padding: 15px 26px; background: var(--bronze); color: #fff; border: 0;
    font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.nl-form button:hover { background: color-mix(in srgb, var(--bronze) 82%, #fff); }

/* ============================================================
   Footer — forest, monograph colophon
   ============================================================ */
.site-footer { background: var(--forest); color: var(--stone-on-forest); border-top: 1px solid var(--bronze); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 52px; padding: 64px var(--gutter) 40px; }
.footer-col h4 { color: var(--paper-on-forest); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 18px; font-weight: 500; }
.footer-logo { display: flex; align-items: center; gap: 12px; color: var(--paper-on-forest); font-size: 18px; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-logo .logo-mark { border-color: color-mix(in srgb, var(--paper-on-forest) 55%, transparent); color: var(--paper-on-forest); }
.footer-desc { color: var(--stone-on-forest); font-size: 13px; margin: 0; line-height: 1.75; }
.footer-info li, .footer-links li { font-size: 13px; padding: 5px 0; color: var(--stone-on-forest); }
.footer-info strong { color: var(--paper-on-forest); margin-right: 8px; font-weight: 500; letter-spacing: 0.04em; }
.footer-links a:hover { color: var(--paper-on-forest); }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--paper-on-forest) 16%, transparent); padding: 18px var(--gutter); }
.footer-bottom .container { padding: 0; font-size: 11px; letter-spacing: 0.1em; color: var(--stone-on-forest); text-align: center; }

/* ============================================================
   Sub-page hero + breadcrumb
   ============================================================ */
.sub-hero {
    background: var(--forest); color: var(--paper-on-forest);
    padding: 96px var(--gutter) 84px; text-align: left;
    position: relative;
}
.sub-hero > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.sub-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--paper-on-forest); }
.sub-hero p { margin: 0; color: var(--stone-on-forest); font-size: 15px; letter-spacing: 0.02em; }

.breadcrumb { background: var(--bone-2); border-bottom: 1px solid var(--line); padding: 15px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.breadcrumb li::after { content: '/'; margin-left: 9px; color: var(--line); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--bronze); }
.breadcrumb a:hover { color: var(--bronze); }

/* ============================================================
   Content sections (about / services / contact)
   ============================================================ */
.content-section { padding: 84px 0; }
.content-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--ink); }
.content-section h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 48px 0 16px; color: var(--ink); letter-spacing: -0.01em; }
.content-section p { color: var(--ink); line-height: 1.9; }
.content-section a { color: var(--bronze); border-bottom: 1px solid color-mix(in srgb, var(--bronze) 50%, transparent); }
.content-section a:hover { color: var(--forest); border-color: var(--forest); }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px 0; }
.feature-item { padding: 30px; background: var(--bone); }
.feature-item strong { display: block; color: var(--ink); margin-bottom: 8px; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.feature-item span { color: var(--stone); font-size: 14px; line-height: 1.75; }

.info-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.info-table th, .info-table td { padding: 17px 22px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
.info-table th { background: var(--bone-2); color: var(--stone); width: 28%; font-weight: 500; letter-spacing: 0.04em; }
.info-table td { color: var(--ink); }
.info-table td a { color: var(--bronze); }
.info-table td a:hover { color: var(--forest); }

/* ============================================================
   Services grid — bronze index numerals (no bubble)
   ============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--bone); padding: 44px 38px; transition: background .25s ease; }
.service-card:hover { background: var(--bone-2); }
.service-icon {
    display: block; width: auto; height: auto; border: 0; border-radius: 0; background: none;
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1;
    color: var(--bronze); letter-spacing: -0.02em; margin-bottom: 22px;
    padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.service-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; color: var(--ink); letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--stone); margin: 0; line-height: 1.8; }

/* ============================================================
   Board list
   ============================================================ */
.board-wrap { padding: 56px 0 88px; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.board-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.board-head .board-desc { color: var(--stone); font-size: 13px; margin: 8px 0 0; }
.board-count { color: var(--stone); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.board-count strong { color: var(--bronze); font-weight: 600; }

.board-table { width: 100%; border-collapse: collapse; }
.board-table thead th {
    padding: 15px 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--stone); border-bottom: 1px solid var(--ink); text-align: left;
}
.board-table tbody td { padding: 17px 12px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.board-table tbody tr { transition: background .15s; }
.board-table tbody tr:hover { background: var(--bone-2); }
.board-table .col-no    { width: 68px;  text-align: center; color: var(--bronze); font-family: var(--font-display); font-size: 15px; }
.board-table .col-name  { width: 120px; text-align: center; color: var(--stone); }
.board-table .col-date  { width: 110px; text-align: center; color: var(--stone); font-size: 12px; letter-spacing: 0.03em; }
.board-table .col-hit   { width: 70px;  text-align: center; color: var(--stone); 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(--bronze); }
.cm-count { color: var(--bronze); font-size: 12px; margin-left: 6px; font-weight: 600; }
.board-empty { padding: 80px 0; text-align: center; color: var(--stone); }

.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.board-foot form input[type=text] { padding: 10px 14px; border: 1px solid var(--line); background: var(--bone); font-size: 13px; color: var(--ink); }
.board-foot form input[type=text]:focus { outline: none; border-color: var(--bronze); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 11px;
    border: 1px solid var(--line); background: transparent;
    font-size: 13px; color: var(--ink); letter-spacing: 0.04em;
    font-family: var(--font-display);
}
.pagination a:hover { border-color: var(--bronze); color: var(--bronze); }
.pagination .active { background: var(--forest); color: var(--paper-on-forest); border-color: var(--forest); }

/* ============================================================
   View page
   ============================================================ */
.view-wrap { padding: 56px 0 88px; }
.view-wrap .container { max-width: 900px; }
.view-head { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 30px 0; }
.view-head h1 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.view-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stone); }
.view-meta span strong { color: var(--ink); font-weight: 600; margin-left: 7px; }

.view-content { padding: 48px 2px; min-height: 260px; font-size: 15px; line-height: 1.95; color: var(--ink); 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; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.view-actions .left, .view-actions .right { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   Comments
   ============================================================ */
.cm-section { margin-top: 54px; }
.cm-section h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 18px; color: var(--ink); }
.cm-section h3 em { color: var(--bronze); font-style: normal; font-weight: 600; }
.cm-list { border-top: 1px solid var(--ink); }
.cm-item { padding: 20px 2px; border-bottom: 1px solid var(--line); }
.cm-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--stone); }
.cm-meta .cm-name { font-weight: 600; color: var(--ink); }
.cm-meta .cm-actions a { font-size: 11px; color: var(--stone); margin-left: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.cm-meta .cm-actions a:hover { color: #8f4a3f; }
.cm-body { font-size: 14px; color: var(--ink); white-space: pre-wrap; word-wrap: break-word; line-height: 1.8; }

.cm-form { background: var(--bone-2); border: 1px solid var(--line); padding: 24px; margin-top: 26px; }
.cm-form .row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cm-form input[type=text], .cm-form input[type=password] {
    flex: 1; min-width: 140px; padding: 12px 14px; border: 1px solid var(--line);
    background: var(--bone); font-size: 14px; color: var(--ink); font-family: inherit;
}
.cm-form textarea {
    width: 100%; min-height: 104px; padding: 13px 14px; border: 1px solid var(--line);
    background: var(--bone); font-size: 14px; color: var(--ink); font-family: inherit;
    resize: vertical; line-height: 1.7;
}
.cm-form .submit-row { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ============================================================
   Captcha + honeypot
   ============================================================ */
.captcha-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-img { height: 50px; border: 1px solid var(--line); background: #fff; display: block; }
.captcha-reload {
    width: 42px; height: 42px; border: 1px solid var(--line); background: var(--bone);
    color: var(--stone); font-size: 18px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .3s ease, color .2s, border-color .2s;
}
.captcha-reload:hover { color: var(--bronze); border-color: var(--bronze); transform: rotate(90deg); }
input[name="captcha"] {
    padding: 12px 14px; border: 1px solid var(--line); background: var(--bone);
    font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink); min-width: 180px;
}

/* honeypot — visually hidden, offscreen, unfocusable */
.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;
}

/* ============================================================
   Write form
   ============================================================ */
.write-wrap { padding: 56px 0 88px; }
.write-form { border-top: 1px solid var(--ink); background: transparent; }
.write-form .frow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.write-form .flabel {
    width: 156px; padding: 16px 22px; background: var(--bone-2);
    font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--stone);
    display: flex; align-items: center;
}
.write-form .flabel .req { color: #8f4a3f; margin-left: 4px; }
.write-form .finput { flex: 1; padding: 12px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.write-form input[type=text], .write-form input[type=password], .write-form input[type=email] {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line);
    background: var(--bone); font-size: 14px; color: var(--ink); font-family: inherit;
}
.write-form textarea {
    width: 100%; min-height: 360px; padding: 15px 16px; border: 1px solid var(--line);
    background: var(--bone); font-size: 15px; color: var(--ink); font-family: inherit;
    line-height: 1.85; resize: vertical;
}
.write-form .frow.full { display: block; padding: 16px 22px; }
.write-form .frow.full .flabel { display: none; }
.form-actions { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }

/* ============================================================
   Password prompt
   ============================================================ */
.pw-box {
    max-width: 440px; margin: 90px auto; padding: 46px 38px;
    border: 1px solid var(--line); background: var(--bone-2); text-align: center;
}
.pw-box h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.pw-box p { color: var(--stone); font-size: 13px; margin: 0 0 24px; }
.pw-box input[type=password] {
    width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--bone);
    font-size: 14px; color: var(--ink); margin-bottom: 14px; font-family: inherit;
}

/* ============================================================
   Global focus + form focus
   ============================================================ */
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
a:focus-visible, .btn:focus-visible, .btn-sm:focus-visible,
button:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; }
.write-form input:focus, .write-form textarea:focus,
.cm-form input:focus, .cm-form textarea:focus,
.pw-box input:focus, input[name="captcha"]:focus { outline: none; border-color: var(--bronze); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
    .hero-v2-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-img img { height: 460px; }
    .project-grid { gap: 44px 28px; }
    .approach-list { grid-template-columns: repeat(2, 1fr); }
    .approach-list li:nth-child(2n) { border-right: 0; }
    .journal-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 820px) {
    .mobile-toggle { display: block; }
    .gnb {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--bone); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .28s ease;
    }
    body.menu-open .gnb { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .gnb > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
    .gnb > ul > li > a { padding: 16px 4px; border-bottom: 1px solid var(--line); letter-spacing: 0.12em; }
    .gnb > ul > li > a.active::after { display: none; }
    .gnb .sub {
        position: static; transform: none; opacity: 1; visibility: visible;
        border: 0; padding: 0 0 10px 16px; margin: 0; background: transparent; min-width: 0;
    }
    .gnb .has-sub:hover .sub, .gnb .has-sub:focus-within .sub { transform: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
    .approach-list { grid-template-columns: 1fr; }
    .approach-list li { border-right: 0; padding: 22px 4px 12px; }
    .board-table .col-name, .board-table .col-hit { display: none; }
    .write-form .frow { flex-direction: column; }
    .write-form .flabel { width: 100%; padding: 12px 18px; }
    .section-head-v2 { align-items: flex-start; }
}

@media (max-width: 480px) {
    :root { --gutter: 20px; }
    .hero-v2 { padding: 48px 0 64px; }
    .hero-img img { height: 340px; }
    .projects-section, .approach-section, .journal-section { padding: 68px 0; }
    .project-grid { grid-template-columns: 1fr; }
    .newsletter-section { padding: 64px 0; }
    .nl-form { flex-direction: column; }
    .sub-hero { padding: 68px var(--gutter) 60px; }
    .view-meta { gap: 12px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
    .project-card:hover .project-img img,
    .journal-feature:hover .jf-img img { transform: none; }
    .captcha-reload:hover { transform: none; }
}

/* dropdown reliability (open=hover) 2026-07-07 */
@media (hover: hover) and (pointer: fine){
  .gnb .has-sub.open > .sub{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%, 0);}
}
