/*
Theme Name: 민행정사 실무기록
Theme URI: https://minhaengjungsa.com/
Author: 비랜딩 (blanding.kr)
Author URI: https://blanding.kr/
Description: 민행정사 사무소 전용 경량 워드프레스 테마. Elementor 없이 홈페이지, 실무노트, 허가사례, 상담 접수를 운영합니다.
Version: 1.3.1
Text Domain: minhaengjungsa
*/

:root {
    --ink: #17231d;
    --ink-soft: #34433b;
    --forest: #214936;
    --forest-deep: #153528;
    --leaf: #7f9f54;
    --leaf-light: #c7d4ad;
    --paper: #f5f2e9;
    --paper-deep: #e9e2d5;
    --brown: #5b4535;
    --white: #fff;
    --muted: #58665f;
    --line: rgba(23, 35, 29, .17);
    --line-light: rgba(255, 255, 255, .24);
    --shadow: 0 24px 70px rgba(29, 51, 39, .12);
    --container: 1240px;
    --reading: 760px;
    --header-height: 88px;
    --radius-sm: 3px;
    --radius-md: 10px;
    --font-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
    --font-serif: "Iropke Batang", "KoPub Batang", "Batang", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.68;
    letter-spacing: -.012em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, blockquote { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.035em; }
::selection { color: var(--white); background: var(--forest); }

.skip-link {
    position: fixed;
    left: 18px;
    top: -100px;
    z-index: 99999;
    padding: 10px 16px;
    color: var(--white);
    background: var(--forest);
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; }
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-shell {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}
.eyebrow {
    margin-bottom: 16px;
    color: var(--leaf);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 750;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--forest); }
.button-primary:hover { background: var(--forest-deep); }
.button-light { color: var(--forest-deep); background: var(--paper); }
.button-light:hover { background: var(--white); }
.button-outline { color: var(--forest); border-color: var(--forest); background: transparent; }
.button-outline:hover { color: var(--white); background: var(--forest); }
.button-wide { width: 100%; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    color: var(--forest);
    font-size: .92rem;
    font-weight: 750;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}
@media (min-width: 783px) {
    body.admin-bar .site-header { top: 32px; }
}
.header-inner {
    display: grid;
    width: min(calc(100% - 48px), 1440px);
    height: 100%;
    margin-inline: auto;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 44px;
}
.site-brand { display: inline-flex; width: 142px; height: 62px; align-items: center; }
.site-brand img { width: 100%; max-height: 58px; object-fit: contain; }
.site-navigation { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 44px; }
.site-navigation ul { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 36px); padding: 0; margin: 0; list-style: none; }
.site-navigation li { margin: 0; }
.site-navigation li a {
    position: relative;
    display: block;
    padding: 12px 0;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
}
.site-navigation li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 6px;
    height: 2px;
    background: var(--leaf);
    transition: right .2s ease;
}
.site-navigation li a:hover::after { right: 0; }
.header-call {
    display: flex;
    min-width: 174px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
    flex-direction: column;
    line-height: 1.35;
}
.header-call span { color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.header-call strong { font-size: .95rem; letter-spacing: .01em; }
.menu-toggle { display: none; }

/* Footer */
.site-footer { color: rgba(255, 255, 255, .82); background: var(--forest-deep); }
.footer-top {
    display: grid;
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
    padding: 88px 0 62px;
    border-bottom: 1px solid var(--line-light);
    grid-template-columns: 1.35fr .8fr .5fr;
    gap: 72px;
}
.footer-brand-block h2 { max-width: 590px; margin: 0; color: var(--white); font-size: clamp(1.9rem, 2.6vw, 3rem); font-weight: 600; line-height: 1.28; }
.footer-contact { display: flex; align-items: flex-start; flex-direction: column; }
.footer-contact p { margin-bottom: 14px; color: var(--leaf-light); font-size: .8rem; font-weight: 750; letter-spacing: .08em; }
.footer-contact a { color: var(--white); font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.45; }
.footer-contact span { margin-top: 15px; color: rgba(255,255,255,.68); font-size: .84rem; }
.footer-nav { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.footer-nav a { padding: 3px 0; font-size: .87rem; }
.footer-nav a:hover { color: var(--leaf-light); }
.footer-bottom {
    display: flex;
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
    padding: 28px 0 36px;
    justify-content: space-between;
    gap: 30px;
    color: rgba(255,255,255,.52);
    font-size: .76rem;
}
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom strong { color: rgba(255,255,255,.82); }

/* External channels */
.social-float {
    position: fixed;
    z-index: 900;
    right: 18px;
    bottom: 24px;
    width: 164px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255,255,255,.97);
    box-shadow: 0 16px 42px rgba(21, 53, 40, .16);
    backdrop-filter: blur(12px);
}
.social-float-title { padding: 8px 12px; margin: 0; color: var(--leaf); font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.social-float a { display: grid; min-height: 58px; padding: 9px 11px; border-top: 1px solid var(--line); grid-template-columns: 30px 1fr; align-items: center; gap: 10px; transition: color .2s ease, background .2s ease; }
.social-float a:hover, .social-float a:focus-visible { color: var(--forest); background: var(--paper); }
.social-float-icon { display: grid; width: 30px; height: 30px; place-items: center; color: var(--white); background: var(--social-accent); }
.social-float-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-float-icon svg .social-icon-fill { fill: currentColor; stroke: none; }
.social-float-icon strong { font-size: .9rem; line-height: 1; }
.social-float-copy { display: flex; min-width: 0; flex-direction: column; }
.social-float-copy strong { font-size: .78rem; font-weight: 720; line-height: 1.35; }
.social-float-copy small { margin-top: 2px; color: var(--muted); font-size: .65rem; line-height: 1.35; }

/* Home hero */
.home-hero {
    display: grid;
    min-height: min(680px, calc(100vh - var(--header-height)));
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    background: var(--paper);
}
.home-hero-copy {
    display: flex;
    max-width: none;
    padding: clamp(64px, 7vw, 96px) clamp(36px, 5vw, 84px) 58px max(28px, calc((100vw - var(--container)) / 2));
    justify-content: center;
    flex-direction: column;
}
.home-hero-copy > * { max-width: 620px; }
.docket { display: flex; margin-bottom: 36px; color: var(--forest); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.docket span { padding: 5px 12px; border: 1px solid var(--forest); }
.docket span + span { border-left: 0; }
.home-hero h1 { margin-bottom: 28px; font-size: clamp(2.35rem, 3.35vw, 3.55rem); font-weight: 650; line-height: 1.16; }
.home-hero h1 em { display: block; color: var(--forest); font-family: var(--font-serif); font-style: normal; font-weight: 600; }
.hero-lead { max-width: 590px; margin-bottom: 32px; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.17rem); line-height: 1.78; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.hero-contact-line { display: flex; padding-top: 36px; margin: auto 0 0; gap: 32px; }
.hero-contact-line div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
.hero-contact-line dt { color: var(--muted); font-size: .8rem; }
.hero-contact-line dd { margin: 0; font-weight: 750; }
.home-hero-media { position: relative; min-height: 620px; overflow: hidden; background: var(--forest); }
.home-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(9,28,20,.18), rgba(9,28,20,.58)); }
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06); }
.home-hero-media figcaption {
    position: absolute;
    z-index: 1;
    right: 34px;
    bottom: 34px;
    left: 34px;
    display: flex;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.6);
    justify-content: space-between;
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.proof-ledger {
    display: grid;
    border-block: 1px solid var(--line);
    grid-template-columns: repeat(4, 1fr);
}
.proof-ledger > div { display: flex; min-height: 132px; padding: 30px clamp(24px, 4vw, 60px); justify-content: center; flex-direction: column; }
.proof-ledger > div + div { border-left: 1px solid var(--line); }
.proof-ledger strong { color: var(--forest); font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.04em; }
.proof-ledger span { margin-top: 4px; color: var(--muted); font-size: .84rem; }

/* Home sections */
.home-services { display: grid; padding-block: clamp(100px, 12vw, 178px); grid-template-columns: .72fr 1.28fr; gap: clamp(70px, 10vw, 150px); }
.section-intro h2 { margin-bottom: 26px; font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 630; line-height: 1.25; }
.section-intro > p:not(.eyebrow) { max-width: 510px; margin-bottom: 32px; color: var(--muted); line-height: 1.82; }
.service-ledger { padding: 0; margin: 0; border-top: 1px solid var(--line); list-style: none; }
.service-ledger li { border-bottom: 1px solid var(--line); }
.service-ledger a { display: grid; min-height: 132px; padding: 28px 10px; grid-template-columns: 56px 1fr 36px; align-items: center; gap: 20px; }
.service-ledger a:hover .ledger-copy strong { color: var(--forest); transform: translateX(6px); }
.ledger-number { align-self: start; padding-top: 7px; color: var(--leaf); font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.ledger-copy { display: flex; min-width: 0; flex-direction: column; }
.ledger-copy strong { font-size: clamp(1.28rem, 2vw, 1.95rem); font-weight: 650; transition: color .2s ease, transform .2s ease; }
.ledger-copy small { margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.ledger-arrow { color: var(--forest); font-size: 1.4rem; }

.evidence-section { color: var(--white); background: var(--forest-deep); }
.evidence-inner { display: grid; padding-block: clamp(90px, 10vw, 145px); grid-template-columns: .88fr 1.12fr; gap: clamp(70px, 10vw, 150px); }
.evidence-heading h2 { margin-bottom: 28px; font-size: clamp(2.05rem, 3.1vw, 3.35rem); font-weight: 570; line-height: 1.28; }
.evidence-heading > p:last-child { max-width: 430px; color: rgba(255,255,255,.62); }
.evidence-links { border-top: 1px solid var(--line-light); }
.evidence-links a { display: grid; min-height: 124px; padding: 24px 4px; border-bottom: 1px solid var(--line-light); grid-template-columns: 45px 1fr auto 34px; align-items: center; gap: 16px; }
.evidence-links a > span { align-self: start; padding-top: 6px; color: var(--leaf-light); font-size: .8rem; }
.evidence-links strong { font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.evidence-links small { color: rgba(255,255,255,.7); font-size: .84rem; }
.evidence-links i { color: var(--leaf-light); font-size: 1.3rem; font-style: normal; transition: transform .2s ease; }
.evidence-links a:hover i { transform: translateX(5px); }

.home-notes { padding-block: clamp(100px, 12vw, 168px); }
.section-heading-row { display: flex; margin-bottom: 64px; padding-bottom: 28px; border-bottom: 1px solid var(--line); align-items: flex-end; justify-content: space-between; gap: 60px; }
.section-heading-row h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.15rem); font-weight: 620; line-height: 1.25; }
.section-heading-row > p { max-width: 470px; margin: 0; color: var(--muted); }
.section-heading-row.compact { margin-bottom: 22px; }
.section-heading-row.compact h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.notes-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 8vw, 120px); }
.note-feature { position: relative; display: flex; min-height: 520px; padding: 54px; border: 1px solid var(--line); justify-content: flex-end; flex-direction: column; background: var(--paper); }
.note-index { position: absolute; top: 34px; right: 34px; color: var(--muted); font-size: .78rem; letter-spacing: .06em; }
.note-feature h3 { max-width: 650px; margin-bottom: 24px; font-size: clamp(1.75rem, 2.55vw, 2.55rem); font-weight: 620; line-height: 1.38; }
.note-feature > p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); }
.note-feature .text-link { align-self: flex-start; }
.note-list { border-top: 1px solid var(--line); }
.note-list article { display: grid; min-height: 130px; padding: 26px 6px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.note-list .eyebrow { margin-bottom: 10px; color: var(--muted); letter-spacing: .06em; }
.note-list h3 { max-width: 650px; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 650; line-height: 1.45; }
.note-list article > span { color: var(--forest); font-size: 1.2rem; transition: transform .2s ease; }
.note-list article:hover > span { transform: translateX(4px); }
.section-footer-link { display: flex; margin-top: 50px; justify-content: flex-end; }

.process-section { display: grid; padding-block: clamp(100px, 12vw, 170px); border-top: 1px solid var(--line); grid-template-columns: .9fr 1.1fr; gap: clamp(70px, 10vw, 150px); }
.process-list { padding: 0; margin: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { display: grid; padding: 26px 0; border-bottom: 1px solid var(--line); grid-template-columns: 50px 1fr; gap: 20px; }
.process-list li > span { color: var(--leaf); font-family: var(--font-serif); font-size: 1.2rem; }
.process-list strong { font-size: 1.2rem; }
.process-list p { margin: 5px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.home-cta, .page-bottom-cta { display: flex; padding: clamp(72px, 9vw, 120px) max(24px, calc((100vw - var(--container)) / 2)); align-items: flex-end; justify-content: space-between; gap: 70px; color: var(--white); background: var(--brown); }
.home-cta h2, .page-bottom-cta h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 560; line-height: 1.28; }
.home-cta > div:last-child { display: flex; min-width: 220px; align-items: flex-end; flex-direction: column; gap: 34px; }
.cta-phone { display: flex; align-items: flex-end; flex-direction: column; }
.cta-phone span { color: rgba(255,255,255,.68); font-size: .8rem; }
.cta-phone strong { font-size: 1.4rem; }

/* Page heroes */
.page-hero, .archive-hero {
    display: grid;
    min-height: 390px;
    padding: clamp(72px, 8vw, 120px) max(24px, calc((100vw - var(--container)) / 2));
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    gap: clamp(60px, 9vw, 140px);
    background: var(--paper);
}
.page-hero h1, .archive-hero h1 { margin: 0; font-size: clamp(2.5rem, 4vw, 4.15rem); font-weight: 600; line-height: 1.12; }
.page-hero > div:last-child p, .archive-hero > div:last-child p { max-width: 530px; margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.85; }
.page-hero.compact, .archive-hero.compact { min-height: 320px; }
.page-hero.compact h1, .archive-hero.compact h1 { font-size: clamp(2.2rem, 3.6vw, 3.7rem); }
.services-hero { color: var(--white); background: var(--forest); }
.services-hero .eyebrow { color: var(--leaf-light); }
.services-hero > div:last-child p { color: rgba(255,255,255,.72); }
.results-hero { background: var(--paper-deep); }
.contact-hero { color: var(--white); background: var(--brown); }
.contact-hero .eyebrow { color: var(--leaf-light); }
.contact-hero > div:last-child p { color: rgba(255,255,255,.72); }

/* About */
.about-profile { display: grid; padding-block: clamp(90px, 11vw, 160px); grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 10vw, 150px); }
.about-profile figure { position: relative; align-self: start; }
.about-profile figure::before { content: ""; position: absolute; z-index: -1; top: -18px; right: 18px; bottom: 18px; left: -18px; border: 1px solid var(--leaf); }
.about-profile figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-profile figcaption { display: flex; padding: 14px 0; border-bottom: 1px solid var(--line); justify-content: space-between; font-size: .8rem; }
.about-profile figcaption span { color: var(--muted); }
.about-letter h2 { margin-bottom: 40px; font-family: var(--font-serif); font-size: clamp(1.95rem, 2.8vw, 3rem); font-weight: 600; line-height: 1.42; }
.prose p { margin-bottom: 22px; line-height: 1.9; }
.signature { margin-top: 46px; text-align: right; }
.signature strong { margin-left: 14px; font-size: 1.25rem; letter-spacing: .18em; }
.about-belief { padding-block: clamp(90px, 11vw, 150px); color: var(--white); background: var(--forest-deep); }
.about-belief blockquote { max-width: 1020px; margin: 0 0 38px; font-family: var(--font-serif); font-size: clamp(1.9rem, 3vw, 3.15rem); line-height: 1.5; }
.about-belief blockquote em { color: var(--leaf-light); font-style: normal; }
.about-belief .section-shell > p:last-child { max-width: 650px; color: rgba(255,255,255,.6); }
.career-section { display: grid; padding-block: clamp(100px, 12vw, 170px); grid-template-columns: .76fr 1.24fr; gap: clamp(70px, 10vw, 140px); }
.career-ledger { margin: 0; border-top: 1px solid var(--line); }
.career-ledger > div { display: grid; padding: 30px 0; border-bottom: 1px solid var(--line); grid-template-columns: 150px 1fr; gap: 28px; }
.career-ledger dt { color: var(--leaf); font-size: .84rem; font-weight: 800; }
.career-ledger dd { display: flex; margin: 0; flex-direction: column; }
.career-ledger dd strong { font-size: 1.18rem; }
.career-ledger dd span { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.office-info { display: grid; padding-block: 90px; border-top: 1px solid var(--line); grid-template-columns: .6fr 1.4fr; gap: 80px; }
.office-info-heading h2 { margin-bottom: 10px; font-size: clamp(2rem, 3vw, 3.15rem); }
.office-info-heading > p:last-child { color: var(--muted); }
.office-info > dl { display: grid; margin: 0; grid-template-columns: 1fr 1fr; }
.office-info > dl > div { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.office-info dt { margin-bottom: 8px; color: var(--muted); font-size: .82rem; }
.office-info dd { margin: 0; font-weight: 650; }
.office-info small { color: var(--muted); font-weight: 400; }

/* Services */
.service-jump-nav { display: grid; position: sticky; z-index: 50; top: var(--header-height); border-bottom: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); }
.service-jump-nav a { display: flex; min-height: 72px; padding: 15px 22px; border-right: 1px solid var(--line); align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; }
.service-jump-nav a span { color: var(--leaf); font-size: .68rem; }
.service-jump-nav a:hover { color: var(--forest); background: var(--paper); }
.service-detail-list { padding-block: 70px 120px; }
.service-detail { padding-block: 72px; border-bottom: 1px solid var(--line); }
.service-detail > header { display: grid; margin-bottom: 60px; grid-template-columns: 70px 1fr; gap: 20px; }
.service-detail > header > span { padding-top: 10px; color: var(--leaf); font-family: var(--font-serif); }
.service-detail h2 { margin-bottom: 16px; font-size: clamp(2rem, 3.2vw, 3.35rem); font-weight: 610; line-height: 1.25; }
.service-detail header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.03rem; }
.service-detail-body { display: grid; padding-left: 90px; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 120px); }
.service-detail-body ul { display: grid; padding: 0; margin: 0; border-top: 1px solid var(--line); list-style: none; grid-template-columns: 1fr 1fr; }
.service-detail-body li { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.service-detail-body li:nth-child(odd) { padding-right: 18px; }
.service-detail-body aside { padding: 34px; border-left: 3px solid var(--leaf); background: var(--paper); }
.service-detail-body aside > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.8; }
.service-detail-body aside dl { margin: 26px 0 0; border-top: 1px solid var(--line); }
.service-detail-body aside dl > div { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); grid-template-columns: 100px 1fr; gap: 12px; font-size: .88rem; }
.service-detail-body aside dt { color: var(--muted); }
.service-detail-body aside dd { margin: 0; font-weight: 700; }

/* Results and galleries */
.case-studies { padding-block: clamp(90px, 11vw, 150px); }
.case-study { display: grid; padding-block: 70px; border-bottom: 1px solid var(--line); grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 140px); }
.case-study:first-child { padding-top: 0; }
.case-study header > span { color: var(--leaf); font-size: .73rem; font-weight: 800; letter-spacing: .1em; }
.case-study header > p { margin: 28px 0 10px; color: var(--muted); }
.case-study h2 { font-size: clamp(1.9rem, 2.8vw, 3rem); font-weight: 620; line-height: 1.3; }
.case-study dl { margin: 0; border-top: 1px solid var(--line); }
.case-study dl > div { display: grid; padding: 20px 0; border-bottom: 1px solid var(--line); grid-template-columns: 70px 1fr; gap: 22px; }
.case-study dt { color: var(--leaf); font-size: .76rem; font-weight: 800; }
.case-study dd { margin: 0; color: var(--ink-soft); }
.results-gallery { padding-block: 80px 140px; }
.case-filters { display: flex; margin-bottom: 40px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 0; }
.case-filters button { padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: .9rem; font-weight: 700; }
.case-filters button.is-active { border-color: var(--forest); color: var(--forest); }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.case-card { border-bottom: 1px solid var(--line); }
.case-card[hidden] { display: none; }
.case-image-button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; overflow: hidden; }
.case-image-button img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .3s ease; }
.case-image-button:hover img { transform: scale(1.025); }
.case-card-copy { padding: 18px 4px 24px; }
.case-card-copy .eyebrow { margin-bottom: 6px; }
.case-card-copy h3 { margin: 0; font-size: 1.08rem; }
.image-lightbox { width: min(94vw, 1100px); max-height: 92vh; padding: 44px; border: 0; color: var(--white); background: #0d1511; box-shadow: var(--shadow); }
.image-lightbox::backdrop { background: rgba(7, 12, 9, .9); }
.image-lightbox > button { position: absolute; top: 10px; right: 14px; border: 0; color: var(--white); background: transparent; font-size: 2rem; cursor: pointer; }
.image-lightbox img { display: block; max-width: 100%; max-height: 76vh; margin: 0 auto; object-fit: contain; }
.image-lightbox p { margin: 14px 0 0; text-align: center; font-size: .85rem; }
.case-single { padding-block: 90px 130px; }
.case-single-image { display: block; width: min(100%, 900px); padding: 0; margin: 0 auto 54px; border: 0; background: var(--paper); cursor: zoom-in; }

/* Permit archive */
.permit-archive-hero { background: var(--paper-deep); }
.permit-archive-hero > div:last-child { align-self: end; }
.permit-archive-hero > div:last-child > p { max-width: 600px; }
.permit-hero-stats { display: grid; max-width: 470px; margin: 30px 0 0; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
.permit-hero-stats div { padding: 15px 16px 0 0; }
.permit-hero-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.permit-hero-stats dt { color: var(--muted); font-size: .76rem; }
.permit-hero-stats dd { margin: 3px 0 0; color: var(--forest); font-size: 1.25rem; font-weight: 700; }
.permit-index-nav { display: grid; position: sticky; z-index: 45; top: var(--header-height); border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.96); }
.permit-index-nav a { display: flex; min-height: 66px; padding: 14px 24px; border-right: 1px solid var(--line); align-items: center; justify-content: center; gap: 12px; color: var(--ink-soft); font-size: .9rem; font-weight: 650; }
.permit-index-nav a:last-child { border-right: 0; }
.permit-index-nav a span { color: var(--leaf); font-size: .72rem; }
.permit-index-nav a:hover { color: var(--forest); background: var(--paper); }
.permit-poster { padding-block: clamp(72px, 8vw, 112px); }
.permit-poster-heading { display: grid; margin-bottom: 38px; grid-template-columns: .75fr 1.25fr; align-items: end; gap: 60px; }
.permit-poster-heading h2 { max-width: 560px; margin: 0; font-size: clamp(1.85rem, 2.6vw, 2.8rem); font-weight: 610; line-height: 1.28; }
.permit-poster-heading > p { max-width: 560px; margin: 0; color: var(--muted); justify-self: end; }
.permit-poster figure { margin: 0; border: 1px solid var(--line); background: var(--paper); }
.permit-poster-button { display: block; width: 100%; padding: 0; border: 0; background: #f8fbfc; cursor: zoom-in; }
.permit-poster-button img { display: block; width: 100%; height: auto; }
.permit-poster figcaption { display: flex; min-height: 58px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 24px; color: var(--ink-soft); font-size: .84rem; }
.permit-poster figcaption span { color: var(--leaf); font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.permit-section { padding-block: clamp(80px, 9vw, 125px); }
.permit-section + .permit-section { border-top: 1px solid var(--line); }
.permit-section-heading { display: grid; margin-bottom: 52px; padding-bottom: 24px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; }
.permit-section-heading h2 { max-width: 680px; margin: 0; font-size: clamp(2rem, 2.8vw, 3rem); font-weight: 610; line-height: 1.28; }
.permit-section-heading > p { max-width: 520px; margin: 0; color: var(--muted); justify-self: end; }
.permit-evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 24px; }
.permit-evidence-card { min-width: 0; border-bottom: 1px solid var(--line); }
.permit-evidence-button { position: relative; display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; cursor: zoom-in; }
.permit-document-frame { display: flex; height: 370px; padding: 22px; align-items: center; justify-content: center; overflow: hidden; background: var(--paper); }
.permit-document-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.permit-evidence-button:hover img { transform: scale(1.025); }
.permit-evidence-number { position: absolute; z-index: 1; top: 12px; left: 12px; min-width: 36px; padding: 4px 7px; color: var(--white); background: var(--forest); font-family: var(--font-serif); font-size: .76rem; }
.permit-evidence-copy { min-height: 112px; padding: 18px 2px 22px; }
.permit-evidence-copy p { margin-bottom: 7px; color: var(--leaf); font-size: .82rem; font-weight: 750; letter-spacing: .04em; }
.permit-evidence-copy h3 { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.permit-native-section { background: #fbfaf6; }
.permit-native-section .results-gallery { width: auto; padding: 0; }
.permit-native-archive { padding-top: 64px; margin-top: 64px; border-top: 1px solid var(--line); }
.permit-native-archive > h3 { margin-bottom: 28px; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 650; }
.permit-library-ledger { border-top: 1px solid var(--line); }
.permit-library-ledger a { display: grid; min-height: 112px; padding: 24px 8px; border-bottom: 1px solid var(--line); grid-template-columns: 70px 1fr minmax(240px, .8fr) 28px; align-items: center; gap: 24px; }
.permit-library-ledger a:hover { color: var(--forest); background: var(--paper); }
.permit-library-ledger > a > span:first-child { color: var(--leaf); font-family: var(--font-serif); font-size: 1.25rem; }
.permit-library-ledger strong { font-size: clamp(1.15rem, 1.8vw, 1.55rem); }
.permit-library-ledger small { color: var(--muted); font-size: .86rem; line-height: 1.65; }
.permit-library-ledger i { color: var(--forest); font-size: 1.3rem; font-style: normal; }
.permit-privacy-note { display: flex; padding: 24px 0 0; align-items: flex-start; gap: 12px; color: var(--muted); font-size: .88rem; }
.permit-privacy-note span { color: var(--leaf); }

/* Contact */
.contact-layout { display: grid; padding-block: clamp(90px, 11vw, 150px); grid-template-columns: .72fr 1.28fr; gap: clamp(70px, 10vw, 145px); }
.contact-sidebar { align-self: start; }
.contact-phone { display: flex; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: flex-end; justify-content: space-between; gap: 20px; }
.contact-phone span { color: var(--muted); font-size: .76rem; }
.contact-phone strong { color: var(--forest); font-size: clamp(1.25rem, 2.2vw, 1.85rem); }
.contact-sidebar dl { margin: 44px 0; }
.contact-sidebar dl > div { display: grid; padding: 14px 0; grid-template-columns: 92px 1fr; gap: 18px; font-size: .85rem; }
.contact-sidebar dt { color: var(--muted); }
.contact-sidebar dd { margin: 0; }
.contact-note { padding: 24px; border-left: 3px solid var(--leaf); background: var(--paper); }
.contact-note p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.contact-form-panel { padding: clamp(32px, 5vw, 70px); border: 1px solid var(--line); background: var(--paper); }
.contact-form-heading { margin-bottom: 38px; }
.contact-form-heading h2 { margin-bottom: 12px; font-size: clamp(1.9rem, 2.7vw, 2.8rem); }
.contact-form-heading > p:last-child { color: var(--muted); }
.consult-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; color: var(--ink-soft); font-size: .88rem; font-weight: 700; flex-direction: column; gap: 8px; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: var(--white);
    font-size: .94rem;
    font-weight: 400;
}
.form-field textarea { min-height: 170px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--forest); outline: 2px solid rgba(33,73,54,.18); outline-offset: 0; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .82rem; cursor: pointer; }
.consent-field input { margin-top: 5px; accent-color: var(--forest); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; color: var(--forest); font-size: .82rem; font-weight: 700; }
.consult-form button:disabled { cursor: wait; opacity: .65; transform: none; }
.contact-faq { padding-block: 0 130px; }
.contact-faq header { display: flex; margin-bottom: 30px; align-items: flex-end; justify-content: space-between; }
.contact-faq h2 { margin: 0; font-size: clamp(1.9rem, 2.7vw, 2.8rem); }
.contact-faq details { border-top: 1px solid var(--line); }
.contact-faq details:last-child { border-bottom: 1px solid var(--line); }
.contact-faq summary { position: relative; padding: 24px 44px 24px 0; cursor: pointer; font-weight: 700; list-style: none; }
.contact-faq summary::after { content: "+"; position: absolute; right: 10px; color: var(--leaf); font-size: 1.4rem; }
.contact-faq details[open] summary::after { content: "−"; }
.contact-faq details p { max-width: 850px; padding: 0 40px 26px 0; margin: 0; color: var(--muted); }

/* Blog archive */
.notes-hero { color: var(--white); background: var(--forest-deep); }
.notes-hero .eyebrow { color: var(--leaf-light); }
.notes-hero h1 { font-size: clamp(2.55rem, 4vw, 4.2rem); }
.notes-hero > div:last-child p { color: rgba(255,255,255,.72); }
.notes-hero > div:last-child span { display: block; margin-top: 22px; color: var(--leaf-light); font-size: .86rem; letter-spacing: .04em; }
.category-strip { display: flex; padding: 0 max(24px, calc((100vw - var(--container)) / 2)); border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--white); scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-strip a { padding: 19px 18px; border-bottom: 3px solid transparent; color: var(--ink-soft); font-size: 1rem; font-weight: 590; white-space: nowrap; }
.category-strip a.is-active, .category-strip a:hover { border-color: var(--forest); color: var(--forest); font-weight: 750; }
.category-strip sup { margin-left: 5px; color: var(--leaf); font-size: .78rem; }
.posts-archive { padding-block: 80px 130px; }
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; }
.post-card { position: relative; display: grid; min-height: 300px; padding: 38px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: 70px 1fr; gap: 18px; }
.post-card:nth-child(even) { border-right: 0; }
.post-card-featured { min-height: 410px; grid-column: 1 / -1; grid-template-columns: 100px 1fr; background: var(--paper); }
.post-card-meta > span { display: block; margin-bottom: 14px; color: var(--leaf); font-family: var(--font-serif); font-size: 1.6rem; }
.post-card-meta p { color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.post-card-copy { align-self: end; }
.post-date { color: var(--muted); font-size: .84rem; }
.post-card h2 { max-width: 920px; margin-bottom: 20px; font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 650; line-height: 1.42; }
.post-card-featured h2 { font-size: clamp(1.85rem, 2.7vw, 2.7rem); line-height: 1.35; }
.post-card-copy > p:last-child { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.72; }
.post-card-arrow { position: absolute; right: 30px; bottom: 30px; color: var(--forest); font-size: 1.25rem; }
.pagination-wrap { margin-top: 60px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav-links .page-numbers { min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); text-align: center; font-size: .8rem; }
.nav-links .current, .nav-links a:hover { color: var(--white); background: var(--forest); }
.archive-contact-band { padding: 90px max(24px, calc((100vw - var(--container)) / 2)); color: var(--white); background: var(--brown); }
.archive-contact-band > p { color: rgba(255,255,255,.6); }
.archive-contact-band h2 { margin-bottom: 32px; font-size: clamp(1.95rem, 3vw, 3.15rem); font-weight: 580; line-height: 1.3; }

/* Single article */
.article-header { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(52px, 6vw, 78px); border-bottom: 1px solid var(--line); }
.article-header.compact { padding-top: 40px; }
.article-breadcrumb { display: flex; margin-bottom: 42px; gap: 10px; color: var(--muted); font-size: .8rem; }
.article-header h1 { max-width: 1040px; margin-bottom: 32px; font-size: clamp(2.2rem, 3.4vw, 3.6rem); font-weight: 620; line-height: 1.26; text-wrap: balance; }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .82rem; }
.article-layout { display: grid; padding-block: clamp(58px, 7vw, 92px); grid-template-columns: 220px minmax(0, var(--reading)); justify-content: center; gap: clamp(54px, 7vw, 96px); }
.article-aside { align-self: start; position: sticky; top: 120px; }
.toc-card { max-height: calc(100vh - 210px); padding: 20px 0; border-block: 1px solid var(--line); overflow: auto; scrollbar-width: thin; }
.toc-card summary { margin-bottom: 14px; cursor: pointer; font-size: .84rem; font-weight: 800; list-style: none; }
.toc-card summary::-webkit-details-marker { display: none; }
.toc-card summary::after { content: "+"; float: right; color: var(--leaf); font-size: 1rem; font-weight: 500; }
.toc-card[open] summary::after { content: "−"; }
.toc-card ol { padding-left: 20px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.toc-card li + li { margin-top: 9px; }
.toc-card a:hover { color: var(--forest); }
.toc-card .toc-depth-3 { margin-left: 12px; }
.copy-link-button { width: 100%; padding: 13px 0; margin-top: 18px; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); background: transparent; cursor: pointer; font-size: .82rem; }
.copy-link-button span { float: right; }
.article-content { min-width: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; }
.article-content > * { max-width: 100%; }
.article-content p { margin-bottom: 1em; }
.article-content p:empty { display: none; }
.article-content > h1:first-child { margin: 0 0 1.1em; color: var(--forest-deep); font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 650; line-height: 1.4; text-wrap: balance; }
.article-content h2 { margin: 2.2em 0 .8em; padding-top: .15em; color: var(--forest-deep); font-size: clamp(1.65rem, 2.35vw, 2.1rem); line-height: 1.4; text-wrap: balance; }
.article-content h3 { margin: 2em 0 .7em; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.article-content h4 { margin: 1.7em 0 .6em; font-size: 1.15rem; }
.article-content a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 1.3em; margin-bottom: 1.7em; }
.article-content li + li { margin-top: .45em; }
.article-content blockquote { padding: 22px 28px; margin: 2.2em 0; border-left: 3px solid var(--leaf); color: var(--ink-soft); background: var(--paper); font-family: var(--font-serif); font-size: 1.16rem; }
.article-content img { border-radius: var(--radius-sm); }
.article-content figure { margin-block: 2.2em; }
.article-content figure.alignnone { width: auto !important; }
.article-content iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.article-content figcaption { margin-top: 9px; color: var(--muted); text-align: center; font-size: .72rem; }
.article-content table { display: block; width: 100%; max-width: 100%; margin-block: 2em; border-collapse: collapse; overflow-x: auto; font-size: .86rem; white-space: normal; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--paper); }
.article-content .alignwide { width: min(100vw - 48px, 1080px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.article-content .mh-menu-list { display: none !important; }
.article-footer { padding-bottom: 130px; }
.article-author-note { display: grid; max-width: 880px; padding: 38px 42px; margin-left: auto; border-top: 3px solid var(--forest); grid-template-columns: 120px 1fr; gap: 34px; background: var(--paper); }
.article-author-note p { margin: 0; }
.article-author-note > p:last-child { color: var(--ink-soft); }
.related-posts { padding-top: 100px; }
.related-posts > div:last-child { border-top: 1px solid var(--line); }
.related-posts article { display: grid; padding: 22px 0; border-bottom: 1px solid var(--line); grid-template-columns: 100px 1fr 30px; align-items: center; gap: 20px; }
.related-posts article > span { color: var(--muted); font-size: .7rem; }
.related-posts h3 { margin: 0; font-size: 1.02rem; }
.page-content { width: min(calc(100% - 48px), var(--reading)); padding-block: 80px 120px; }

/* Category views share the same visual language as the 실무노트 index. */
.category-notes-hero h1 { max-width: 670px; font-size: clamp(2.45rem, 3.8vw, 4.05rem); line-height: 1.15; }
.category-notes-hero h1 span { display: block; margin-bottom: 18px; color: var(--leaf-light); font-size: .88rem; font-weight: 750; letter-spacing: .09em; line-height: 1.4; }
.category-notes-hero .category-summary { max-width: 520px; }
.category-notes-hero .category-summary strong { display: block; margin-bottom: 16px; color: var(--leaf-light); font-size: .9rem; letter-spacing: .06em; }
.category-notes-hero .category-summary a { display: inline-flex; margin-top: 24px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.5); color: var(--white); font-size: .92rem; }

/* Legacy Elementor/HTML libraries, now supported by theme */
.legacy-library { padding-block: 70px 130px; }
.legacy-library .elementor-invisible,
.legacy-library .min-ani,
.legacy-library [class*="fadeIn"] { visibility: visible !important; opacity: 1 !important; animation: none !important; transform: none !important; }
.legacy-library .elementor,
.legacy-library .elementor-section-wrap { width: 100%; }
.legacy-library .elementor-section { position: relative; width: 100%; }
.legacy-library .elementor-container { display: flex; width: 100%; max-width: 1140px; margin-inline: auto; flex-wrap: wrap; }
.legacy-library .elementor-column { min-width: 0; }
.legacy-library .elementor-col-100 { width: 100%; }
.legacy-library .elementor-col-50 { width: 50%; }
.legacy-library .elementor-col-33 { width: 33.333%; }
.legacy-library .elementor-col-25 { width: 25%; }
.legacy-library .elementor-widget-wrap { display: flex; width: 100%; align-content: flex-start; flex-wrap: wrap; }
.legacy-library .elementor-widget { width: 100%; }
.legacy-library .elementor-widget-container { width: 100%; }
.legacy-library .elementor-image img,
.legacy-library .elementor-widget-image img { max-width: 100%; height: auto; cursor: zoom-in; }
.legacy-library .elementor-button { display: inline-flex; padding: 12px 20px; color: var(--white); background: var(--forest); }
.legacy-library > style:first-child + * { margin-top: 0; }
.legacy-library img { cursor: zoom-in; }
.legacy-library [style*="opacity: 0"] { opacity: 1 !important; }

/* Generic archive and utility */
.generic-archive { padding-block: 80px 130px; }
.archive-title { margin-bottom: 50px; }
.archive-title h1 { font-size: clamp(2.3rem, 4vw, 4rem); }
.simple-post-list { border-top: 1px solid var(--line); }
.simple-post-list article { display: grid; padding: 25px 0; border-bottom: 1px solid var(--line); grid-template-columns: 110px 1fr 30px; align-items: center; gap: 20px; }
.simple-post-list p { margin: 0; color: var(--muted); font-size: .72rem; }
.simple-post-list h2 { margin: 0; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.not-found { min-height: 70vh; padding-block: 120px; }
.not-found h1 { margin-bottom: 28px; font-size: clamp(3rem, 6vw, 6rem); }
.not-found > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); }
.empty-state { padding: 70px 20px; border-block: 1px solid var(--line); color: var(--muted); text-align: center; }

@media (max-width: 1180px) {
    :root { --header-height: 78px; }
    .header-inner { grid-template-columns: 150px 1fr; gap: 20px; }
    .site-brand { width: 128px; }
    .site-navigation { gap: 20px; }
    .site-navigation ul { gap: 18px; }
    .header-call { min-width: 150px; padding-left: 16px; }
    .home-hero { min-height: min(650px, calc(100vh - var(--header-height))); grid-template-columns: 1fr 1fr; }
    .home-hero-copy { padding: 58px 42px 50px 36px; }
    .home-hero h1 { font-size: clamp(2.05rem, 3.4vw, 2.55rem); }
    .home-hero-media { min-height: 600px; }
    .hero-contact-line { padding-top: 30px; gap: 22px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-nav { display: none; }
    .service-detail-body { padding-left: 60px; }
}

@media (max-width: 920px) {
    :root { --header-height: 72px; }
    body { font-size: 16px; }
    .section-shell { width: min(calc(100% - 36px), var(--container)); }
    .header-inner { width: calc(100% - 36px); grid-template-columns: 1fr auto; }
    .site-header { background: var(--white); backdrop-filter: none; }
    .site-brand { width: 112px; height: 52px; }
    .menu-toggle { display: inline-flex; z-index: 3; padding: 10px 0 10px 12px; border: 0; align-items: center; gap: 12px; color: var(--ink); background: transparent; cursor: pointer; }
    .menu-toggle-label { font-size: .72rem; font-weight: 750; }
    .menu-toggle-lines { display: flex; width: 25px; flex-direction: column; gap: 6px; }
    .menu-toggle-lines i { display: block; height: 2px; background: currentColor; transition: transform .2s ease; }
    .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child { transform: translateY(-4px) rotate(-45deg); }
    .site-navigation { position: fixed; inset: var(--header-height) 0 0; display: flex; height: calc(100vh - var(--header-height)); min-height: 500px; padding: 48px 28px 34px; align-items: stretch; justify-content: space-between; flex-direction: column; gap: 30px; visibility: hidden; opacity: 0; transform: translateY(-12px); color: var(--white); background: var(--forest-deep); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
    .site-navigation.is-open { visibility: visible; opacity: 1; transform: none; }
    .site-navigation ul { display: block; }
    .site-navigation li { border-bottom: 1px solid var(--line-light); }
    .site-navigation li a { padding: 16px 0; color: var(--white); font-size: 1.25rem; }
    .site-navigation li a::after { display: none; }
    .header-call { padding: 18px 0 0; border-top: 1px solid var(--line-light); border-left: 0; }
    .header-call span { color: rgba(255,255,255,.55); }

    .home-hero { min-height: auto; grid-template-columns: 1fr; }
    .home-hero-copy { max-width: none; min-height: 0; padding: 64px 32px 50px; }
    .home-hero-media { min-height: 0; max-height: none; aspect-ratio: 3 / 2; }
    .hero-contact-line { padding-top: 0; margin-top: 44px; }
    .proof-ledger { grid-template-columns: 1fr 1fr; }
    .proof-ledger > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .proof-ledger > div:nth-child(4) { border-top: 1px solid var(--line); }
    .home-services, .evidence-inner, .process-section, .career-section, .contact-layout { grid-template-columns: 1fr; gap: 62px; }
    .home-services, .process-section { padding-block: 100px; }
    .evidence-inner { padding-block: 96px; }
    .notes-layout { grid-template-columns: 1fr; gap: 50px; }
    .note-feature { min-height: 440px; }
    .home-cta, .page-bottom-cta { padding-inline: 28px; align-items: flex-start; flex-direction: column; }
    .home-cta > div:last-child { align-items: flex-start; }

    .page-hero, .archive-hero { min-height: 390px; padding-inline: 28px; grid-template-columns: 1fr; align-content: end; gap: 34px; }
    .page-hero > div:last-child p, .archive-hero > div:last-child p { max-width: 680px; }
    .about-profile { grid-template-columns: .8fr 1.2fr; gap: 50px; }
    .career-section { padding-block: 100px; }
    .office-info { grid-template-columns: 1fr; gap: 38px; }
    .service-jump-nav { top: var(--header-height); overflow-x: auto; grid-template-columns: repeat(5, minmax(210px, 1fr)); }
    .service-detail-body { padding-left: 0; grid-template-columns: 1fr; gap: 44px; }
    .case-study { grid-template-columns: 1fr; gap: 36px; }
    .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .permit-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .permit-document-frame { height: 420px; }
    .permit-poster-heading { grid-template-columns: 1fr; gap: 16px; }
    .permit-poster-heading > p { justify-self: start; }
    .permit-section-heading { grid-template-columns: 1fr; gap: 18px; }
    .permit-section-heading > p { justify-self: start; }
    .permit-library-ledger a { grid-template-columns: 54px 1fr 28px; }
    .permit-library-ledger small { display: none; }
    .contact-sidebar { position: static; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-card, .post-card:nth-child(even) { border-right: 0; }
    .post-card-featured { min-height: 420px; }
    .article-layout { grid-template-columns: minmax(0, var(--reading)); }
    .article-aside { position: static; }
    .toc-card { display: block; max-height: none; }
    .footer-top { grid-template-columns: 1fr; gap: 48px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 680px) {
    body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .social-float { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; display: grid; width: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .social-float-title { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .social-float a { min-height: 54px; padding: 7px 6px; border-top: 0; border-right: 1px solid var(--line); grid-template-columns: 24px auto; justify-content: center; gap: 7px; }
    .social-float a:last-child { border-right: 0; }
    .social-float-icon { width: 24px; height: 24px; }
    .social-float-icon svg { width: 15px; height: 15px; }
    .social-float-icon strong { font-size: .75rem; }
    .social-float-copy strong { font-size: .72rem; white-space: nowrap; }
    .social-float-copy small { display: none; }

    .home-hero-copy { min-height: 0; padding: 52px 22px 42px; }
    .home-hero h1 { margin-bottom: 24px; font-size: clamp(1.8rem, 7.6vw, 1.95rem); line-height: 1.2; }
    .docket { margin-bottom: 28px; }
    .hero-lead { margin-bottom: 28px; line-height: 1.72; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .hero-contact-line { width: 100%; margin-top: 36px; flex-flow: row wrap; gap: 8px 24px; }
    .home-hero-media { min-height: 0; aspect-ratio: 3 / 2; }
    .home-hero-media figcaption { right: 20px; bottom: 20px; left: 20px; }
    .proof-ledger > div { min-height: 112px; padding: 24px 18px; }
    .home-services { gap: 46px; }
    .service-ledger a { min-height: 118px; padding-block: 24px; grid-template-columns: 38px 1fr 24px; gap: 10px; }
    .ledger-copy small { line-height: 1.55; }
    .evidence-links a { grid-template-columns: 32px 1fr 24px; }
    .evidence-links small { display: none; }
    .section-heading-row { align-items: flex-start; flex-direction: column; gap: 18px; }
    .note-feature { min-height: 480px; padding: 34px 26px; }
    .note-index { top: 22px; right: 22px; }
    .home-cta h2, .page-bottom-cta h2 { font-size: 1.85rem; }

    .page-hero, .archive-hero { min-height: 320px; padding-block: 58px 52px; }
    .page-hero h1, .archive-hero h1 { font-size: clamp(2.15rem, 9.5vw, 2.9rem); }
    .about-profile { grid-template-columns: 1fr; padding-block: 84px; }
    .about-profile figure { max-width: 430px; }
    .about-letter h2 { font-size: 1.9rem; }
    .about-belief blockquote { font-size: 1.8rem; }
    .career-ledger > div { grid-template-columns: 1fr; gap: 8px; }
    .office-info > dl { grid-template-columns: 1fr; }
    .office-info > dl > div { padding-inline: 0; }
    .service-jump-nav { grid-template-columns: repeat(5, minmax(180px, 1fr)); }
    .service-detail { padding-block: 60px; }
    .service-detail > header { grid-template-columns: 38px 1fr; margin-bottom: 42px; }
    .service-detail-body ul { grid-template-columns: 1fr; }
    .service-detail-body aside { padding: 26px 22px; }
    .case-gallery { grid-template-columns: 1fr; }
    .permit-hero-stats { grid-template-columns: 1fr 1fr; }
    .permit-index-nav { top: var(--header-height); grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .permit-index-nav a { min-height: 62px; padding: 9px 6px; gap: 5px; text-align: center; font-size: .72rem; line-height: 1.35; }
    .permit-index-nav a span { font-size: .62rem; }
    .permit-poster { padding-block: 56px; }
    .permit-poster-heading { margin-bottom: 28px; }
    .permit-poster-heading h2 { font-size: 1.7rem; }
    .permit-poster figcaption { min-height: 0; padding: 13px 14px; align-items: flex-start; flex-direction: column; gap: 5px; font-size: .78rem; }
    .permit-section { padding-block: 68px; }
    .permit-section-heading { margin-bottom: 36px; }
    .permit-section-heading h2 { font-size: 1.85rem; }
    .permit-evidence-grid { grid-template-columns: 1fr; gap: 34px; }
    .permit-document-frame { height: 430px; padding: 18px; }
    .permit-evidence-copy { min-height: 0; }
    .permit-library-ledger a { min-height: 96px; padding-block: 18px; grid-template-columns: 38px 1fr 22px; gap: 12px; }
    .case-study dl > div { grid-template-columns: 54px 1fr; }
    .contact-form-panel { padding: 34px 20px; }
    .field-row { grid-template-columns: 1fr; }
    .contact-phone { align-items: flex-start; flex-direction: column; gap: 4px; }

    .category-strip { padding-inline: 8px; }
    .category-strip a { padding: 17px 14px; font-size: .94rem; }
    .posts-archive { padding-top: 50px; }
    .post-card, .post-card-featured { min-height: 340px; padding: 28px 20px; grid-template-columns: 1fr; gap: 22px; }
    .post-card-featured { min-height: 390px; }
    .post-card-featured h2 { font-size: 1.6rem; }
    .post-card-meta { display: flex; align-items: center; gap: 12px; }
    .post-card-meta > span { margin: 0; font-size: 1.2rem; }
    .post-card-meta p { margin: 0; font-size: .84rem; }
    .post-card-copy > p:last-child { font-size: .9rem; }
    .notes-hero h1 { font-size: clamp(2.15rem, 9.5vw, 2.8rem); }
    .category-notes-hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.75rem); }
    .article-header { padding-top: 52px; padding-bottom: 48px; }
    .article-header h1 { font-size: clamp(1.95rem, 8.5vw, 2.7rem); line-height: 1.3; }
    .article-breadcrumb { margin-bottom: 32px; }
    .article-byline { flex-direction: column; gap: 5px; }
    .article-layout { width: min(calc(100% - 32px), var(--container)); padding-top: 42px; gap: 36px; }
    .article-content { font-size: 1rem; line-height: 1.78; }
    .article-content > h1:first-child { font-size: 1.6rem; }
    .article-content h2 { font-size: 1.55rem; line-height: 1.45; }
    .article-content blockquote { padding: 20px 18px; font-size: 1.04rem; }
    .article-content th, .article-content td { min-width: 120px; padding: 10px; }
    .article-content .alignwide { width: calc(100vw - 32px); }
    .article-author-note { padding: 28px 22px; grid-template-columns: 1fr; gap: 12px; }
    .related-posts article { grid-template-columns: 1fr 26px; }
    .related-posts article > span { grid-column: 1 / -1; }
    .simple-post-list article { grid-template-columns: 1fr 24px; }
    .simple-post-list article > p { grid-column: 1 / -1; }
    .footer-top, .footer-bottom { width: calc(100% - 36px); }
    .footer-top { padding-top: 70px; }
    .footer-brand-block h2 { font-size: 1.95rem; }
    .section-intro h2,
    .evidence-heading h2,
    .section-heading-row h2,
    .office-info-heading h2,
    .service-detail h2,
    .case-study h2,
    .contact-form-heading h2,
    .contact-faq h2 { font-size: 1.9rem; line-height: 1.35; }
    .footer-bottom > div { flex-direction: column; gap: 4px; }
    .legacy-library { width: calc(100% - 24px); }
    .legacy-library .elementor-col-50,
    .legacy-library .elementor-col-33,
    .legacy-library .elementor-col-25 { width: 100%; }
    .image-lightbox { width: 96vw; padding: 38px 12px 18px; }
}

@media (min-width: 681px) {
    .home-hero h1 em { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
