/* ============================================================
   CFM page.css — sub-page hero, sub-nav, common blocks, forms
============================================================ */

/* --- Page hero -------------------------------------------- */
.phero {
    position: relative;
    min-height: 420px;
    padding: calc(var(--nav-h) + 80px) 0 80px;
    background: var(--cfm-bg-dark);
    color: #fff;
    overflow: hidden;
    display: flex; align-items: center;
}
.phero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .35;
    z-index: 0;
}
.phero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,12,15,.4) 0%, rgba(11,12,15,.85) 100%);
}
.phero__inner {
    position: relative; z-index: 1;
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    width: 100%;
}
.phero .kicker { color: var(--cfm-orange-light); }
.phero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    letter-spacing: -.03em;
    margin: 16px 0 14px;
}
.phero p { color: rgba(255,255,255,.75); max-width: 720px; font-size: 1.02rem; }

.crumbs {
    font-size: .82rem; letter-spacing: .12em;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
}
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--cfm-orange-light); }
.crumbs .sep { margin: 0 10px; color: rgba(255,255,255,.25); }

/* --- Sticky sub-nav --------------------------------------- */
.subnav {
    position: sticky; top: var(--nav-h);
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--cfm-line);
}
.subnav__inner {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex; gap: 6px; overflow-x: auto;
}
.subnav a {
    position: relative;
    padding: 20px 18px;
    font-size: .94rem; font-weight: 500;
    color: var(--cfm-muted);
    white-space: nowrap;
    transition: color .25s var(--ease);
}
.subnav a::after {
    content: ''; position: absolute; left: 18px; right: 18px; bottom: 0;
    height: 2px; background: var(--cfm-orange);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.subnav a:hover { color: var(--cfm-ink); }
.subnav a.is-active { color: var(--cfm-orange); }
.subnav a.is-active::after,
.subnav a:hover::after { transform: scaleX(1); }

/* --- Content block: text + image alternating -------------- */
.block {
    padding: clamp(80px, 11vw, 140px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
}
.block--alt { background: var(--cfm-bg-soft); }
.block__grid {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px); align-items: center;
}
.block__grid--reverse .block__text { order: 2; }
.block__text .kicker + h2 { margin: 14px 0 20px; }
.block__text p { color: var(--cfm-ink-2); line-height: 1.85; font-size: 1.02rem; }
.block__text p + p { margin-top: 16px; }
.block__media img {
    width: 100%; height: 100%; max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* --- CEO block -------------------------------------------- */
.ceo {
    background: linear-gradient(180deg, #fff 0%, var(--cfm-bg-soft) 100%);
    padding: clamp(80px, 11vw, 140px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
}
.ceo__inner {
    max-width: 1080px; margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid; grid-template-columns: .9fr 1.3fr;
    gap: clamp(40px, 6vw, 80px); align-items: center;
}
.ceo__photo {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--cfm-bg-soft);
}
.ceo__photo img { width: 100%; height: 100%; object-fit: cover; }
.ceo__msg h2 { margin: 14px 0 24px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.ceo__msg p  { color: var(--cfm-ink-2); line-height: 1.9; font-size: 1rem; margin-bottom: 14px; }
.ceo__sign  {
    margin-top: 36px;
    display: flex; align-items: center; gap: 16px;
    color: var(--cfm-muted); font-size: .95rem;
}
.ceo__sign strong { color: var(--cfm-ink); font-size: 1.05rem; font-weight: 700; }

/* --- Lawyer block (Legal Counsel) ------------------------- */
.lawyer {
    background: #fff;
    padding: clamp(80px, 11vw, 140px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
    position: relative;
    overflow: hidden;
}
.lawyer::before {
    content: '';
    position: absolute;
    inset: auto -8% -25% auto;
    width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
    background: radial-gradient(circle at center, rgba(241,90,36,.06), transparent 60%);
    pointer-events: none;
}
.lawyer__inner {
    max-width: 1080px; margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid; grid-template-columns: 1.3fr .9fr;       /* 메시지 | 사진 (CEO 와 반전) */
    gap: clamp(40px, 6vw, 80px); align-items: start;
    position: relative;
    z-index: 1;
}
.lawyer__msg .kicker { margin-bottom: 8px; }
.lawyer__msg h2 {
    margin: 14px 0 24px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -.02em;
}
.lawyer__msg p {
    color: var(--cfm-ink-2);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 14px;
}
.lawyer__photo {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--cfm-bg-soft);
    position: sticky;
    top: calc(var(--nav-h) + 32px);
}
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Credential card */
.lawyer__card {
    margin-top: 28px;
    padding: 24px 28px;
    background: var(--cfm-bg-soft);
    border-left: 4px solid var(--cfm-orange);
    border-radius: 8px;
    display: grid;
    gap: 14px;
}
.lawyer__card-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: baseline;
    font-size: .95rem;
    line-height: 1.7;
}
.lawyer__card-row--col {
    grid-template-columns: 110px 1fr;
    align-items: start;
}
.lawyer__card-label {
    color: var(--cfm-orange);
    font-weight: 700;
    letter-spacing: .04em;
    font-size: .82rem;
    text-transform: uppercase;
}
.lawyer__card-value {
    color: var(--cfm-ink);
    font-weight: 500;
}
.lawyer__career {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.lawyer__career li {
    position: relative;
    padding-left: 14px;
    color: var(--cfm-ink-2);
    line-height: 1.6;
}
.lawyer__career li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 5px; height: 5px;
    background: var(--cfm-orange);
    border-radius: 50%;
}

/* --- CI block --------------------------------------------- */
.ci {
    background: var(--cfm-bg-dark);
    color: rgba(255,255,255,.82);
    padding: clamp(80px, 11vw, 140px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
}
.ci__inner {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px); align-items: center;
}
.ci__logo {
    background: #fff;
    padding: 72px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    min-height: 320px;
}
.ci__logo img { max-width: 100%; max-height: 240px; height: auto; }
.ci__text .kicker { color: var(--cfm-orange-light); }
.ci__text h2 { color: #fff; margin: 14px 0 22px; }
.ci__text p { color: rgba(255,255,255,.72); line-height: 1.85; margin-bottom: 14px; }

/* --- Gallery ---------------------------------------------- */
.gfilter {
    max-width: var(--container); margin: 56px auto 24px;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.gfilter button {
    padding: 10px 22px;
    font-size: .92rem; font-weight: 600;
    border: 1px solid var(--cfm-line);
    border-radius: 999px;
    color: var(--cfm-muted);
    background: #fff;
    transition: all .25s var(--ease);
}
.gfilter button:hover { color: var(--cfm-ink); border-color: var(--cfm-ink); }
.gfilter button.is-active {
    background: var(--cfm-ink); color: #fff; border-color: var(--cfm-ink);
}

.ggrid {
    max-width: var(--container); margin: 0 auto 100px;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gcard {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--cfm-bg-soft);
    transition: transform .4s var(--ease);
}
.gcard img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.gcard::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65) 100%);
    opacity: 0; transition: opacity .35s var(--ease);
}
.gcard__label {
    position: absolute; left: 20px; bottom: 18px; right: 20px;
    color: #fff; font-size: .92rem; font-weight: 600;
    transform: translateY(10px); opacity: 0;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    z-index: 1;
}
.gcard:hover img { transform: scale(1.06); }
.gcard:hover::after { opacity: 1; }
.gcard:hover .gcard__label { transform: none; opacity: 1; }
.gcard.is-hidden { display: none; }

/* Video card ---------------------------------------------- */
.gcard--video { cursor: pointer; }
.gcard__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; height: 68px;
    border-radius: 50%;
    background: rgba(241, 90, 36, .92);
    color: #fff;
    font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 0 0 4px rgba(255,255,255,.14);
    padding-left: 6px;
    z-index: 2;
    transition: transform .3s var(--ease), background .25s var(--ease);
}
.gcard--video:hover .gcard__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--cfm-orange);
}

/* 기본 포스터 (업로드된 포스터 없을 때) */
.gcard--noposter { background: var(--cfm-bg-dark); }
.gcard__noposter {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(241,90,36,.35), transparent 55%),
        linear-gradient(135deg, #1a1d22 0%, #0b0c0f 100%);
}
.gcard__noposter img {
    width: auto; height: auto;
    max-width: 55%; max-height: 45%;
    opacity: .85;
    transition: none;
}
.gcard--noposter:hover .gcard__noposter img { transform: none; }

/* Lightbox video */
.lbox video {
    max-width: 100%; max-height: 100%;
    border-radius: 6px;
    background: #000;
    outline: none;
}
.lbox img[hidden], .lbox video[hidden] { display: none; }

/* --- Lightbox --------------------------------------------- */
.lbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lbox.is-open { opacity: 1; visibility: visible; }
.lbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lbox__close {
    position: absolute; top: 24px; right: 28px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s var(--ease);
}
.lbox__close:hover { background: rgba(255,255,255,.22); }

/* --- Contact form ----------------------------------------- */
.cform-wrap {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px) 120px;
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 5vw, 80px);
}
.cinfo h3 { font-size: 1.3rem; margin-bottom: 18px; }
.cinfo__item {
    padding: 20px 0;
    border-top: 1px solid var(--cfm-line);
    display: grid; grid-template-columns: 100px 1fr; gap: 16px;
    font-size: .96rem;
}
.cinfo__item:last-child { border-bottom: 1px solid var(--cfm-line); }
.cinfo__item dt { font-weight: 700; color: var(--cfm-ink); letter-spacing: .06em; }
.cinfo__item dd { color: var(--cfm-ink-2); }
.cinfo__item a:hover { color: var(--cfm-orange); }

.cform-box {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(241, 90, 36, .45);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(241, 90, 36, .06);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

/* --- News -------------------------------------------------- */
.news-list, .news-detail {
    padding: clamp(60px, 9vw, 120px) 0;
}
.news-list__inner, .news-detail__inner {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}
.news-detail__inner { max-width: 860px; }
.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}
.news-grid .news-card {
    flex: 0 0 auto;
    width: 360px;
    max-width: 100%;
    min-width: 0;
}
.news-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--cfm-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--cfm-orange);
}
.news-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--cfm-bg-soft);
}
.news-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease);
}
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__img--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #F15A24, #D1481A);
}
.news-card__img--placeholder span {
    color: rgba(255,255,255,.4);
    font-size: 2.4rem; font-weight: 900; letter-spacing: .08em;
}
.news-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.news-card__pin {
    display: inline-block;
    background: var(--cfm-orange);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    width: fit-content;
}
.news-card__date {
    font-size: .78rem; letter-spacing: .1em;
    color: var(--cfm-muted);
    font-weight: 600;
}
.news-card__title {
    font-size: 1.1rem; font-weight: 700;
    line-height: 1.4; letter-spacing: -.01em;
    color: var(--cfm-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__snippet {
    color: var(--cfm-muted);
    font-size: .92rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card.is-pinned {
    border-color: var(--cfm-orange);
    box-shadow: 0 4px 14px rgba(241, 90, 36, .12);
}
.news-empty {
    padding: 80px 24px; text-align: center;
    color: var(--cfm-muted);
    background: var(--cfm-bg-soft);
    border-radius: 12px;
}

.news-detail__hero {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-lg);
}
.news-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.news-detail__body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--cfm-ink-2);
    letter-spacing: -.005em;
}

/* Home 최신 뉴스 */
.home-news {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--cfm-bg-soft);
}
.home-news__head {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 44px;
    gap: 24px; flex-wrap: wrap;
}
.home-news__head h2 { margin-top: 12px; }
.home-news__more {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cfm-ink);
    font-weight: 600; font-size: .92rem;
    letter-spacing: .08em;
    transition: color .2s var(--ease);
}
.home-news__more:hover { color: var(--cfm-orange); }
.home-news__grid {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

@media (max-width: 600px) {
    .news-grid .news-card { flex: 1 1 100%; max-width: 420px; }
    .home-news__head { flex-direction: column; align-items: flex-start; }
}

/* --- Legal (privacy/terms) --------------------------------- */
.legal-doc {
    padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 12vw, 140px);
    background: #fff;
}
.legal-doc__inner {
    max-width: 860px; margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    color: var(--cfm-ink-2);
    line-height: 1.85;
}
.legal-doc__lead {
    font-size: 1.02rem;
    padding: 20px 24px;
    background: var(--cfm-bg-soft);
    border-left: 4px solid var(--cfm-orange);
    border-radius: 6px;
    margin-bottom: 40px;
    color: var(--cfm-ink);
}
.legal-doc__section {
    margin-bottom: 44px;
}
.legal-doc__section h2 {
    font-size: 1.15rem;
    color: var(--cfm-ink);
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--cfm-line);
    letter-spacing: -.01em;
}
.legal-doc__section p { margin-bottom: 12px; color: var(--cfm-ink-2); }
.legal-doc__section ul {
    list-style: none;
    margin: 12px 0 16px;
    padding-left: 0;
}
.legal-doc__section ul li {
    position: relative;
    padding: 4px 0 4px 18px;
    color: var(--cfm-ink-2);
}
.legal-doc__section ul li::before {
    content: '';
    position: absolute; left: 4px; top: 14px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cfm-orange);
}
.legal-doc__section strong { color: var(--cfm-ink); font-weight: 700; }
.legal-doc__section a {
    color: var(--cfm-orange);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.legal-doc__section a:hover { border-color: var(--cfm-orange); }
.legal-doc__card {
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--cfm-bg-soft);
    border-radius: 10px;
}
.legal-doc__card dl {
    display: grid; grid-template-columns: 100px 1fr; gap: 8px 18px;
    font-size: .96rem;
    margin: 0;
}
.legal-doc__card dt { font-weight: 700; color: var(--cfm-ink); }
.legal-doc__card dd { color: var(--cfm-ink-2); margin: 0; }
@media (max-width: 600px) {
    .legal-doc__card dl { grid-template-columns: 80px 1fr; }
}

/* --- 404 ------------------------------------------------- */
.err-hero {
    min-height: 80vh;
    padding: calc(var(--nav-h) + 80px) 0 80px;
    display: flex; align-items: center;
    background: linear-gradient(180deg, #fff 0%, var(--cfm-bg-soft) 100%);
    position: relative; overflow: hidden;
}
.err-hero::before {
    content: '';
    position: absolute; right: -10%; top: 10%;
    width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
    background: radial-gradient(circle at center, rgba(241,90,36,.12), transparent 60%);
    pointer-events: none;
}
.err-hero__inner {
    position: relative; z-index: 1;
    max-width: 880px; margin: 0 auto; text-align: center;
    padding: 0 clamp(20px, 4vw, 48px);
}
.err-hero__code {
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 900;
    line-height: .9;
    color: var(--cfm-orange);
    opacity: .16;
    letter-spacing: -.05em;
    margin-bottom: -28px;
}
.err-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin: 16px 0 14px;
}
.err-hero p {
    color: var(--cfm-muted);
    max-width: 560px; margin: 0 auto 34px;
    line-height: 1.8;
}
.err-hero__actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 40px;
}
.err-hero__links {
    display: flex; gap: 6px 24px; justify-content: center; flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--cfm-line);
    font-size: .92rem;
}
.err-hero__links a {
    color: var(--cfm-muted);
    padding: 6px 2px;
    transition: color .2s var(--ease);
}
.err-hero__links a:hover { color: var(--cfm-orange); }
.cform-box:focus-within {
    border-color: var(--cfm-orange);
    box-shadow: 0 12px 36px rgba(241, 90, 36, .14);
}
.cform { display: grid; gap: 18px; }
.cform__hp {
    position: absolute !important;
    left: -9999px !important; top: auto !important;
    width: 1px !important; height: 1px !important;
    overflow: hidden !important;
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cfield label {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--cfm-muted); letter-spacing: .08em;
    text-transform: uppercase; margin-bottom: 8px;
}
.cfield input, .cfield textarea, .cfield select {
    width: 100%;
    padding: 14px 16px;
    background: var(--cfm-bg-soft);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .98rem;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.cfield input:focus, .cfield textarea:focus, .cfield select:focus {
    outline: none;
    border-color: var(--cfm-orange);
    background: #fff;
}
.cfield textarea { min-height: 160px; resize: vertical; }
.cform__submit {
    margin-top: 12px;
    display: flex; align-items: center; gap: 16px;
    justify-content: flex-end; flex-wrap: wrap;
}
.cform__note { color: var(--cfm-muted); font-size: .86rem; flex: 1; }
.cform__flash {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: .95rem;
    margin-bottom: 16px;
}
.cform__flash.is-ok   { background: #E8F5ED; color: #1F7F43; border: 1px solid #BFE3CC; }
.cform__flash.is-err  { background: #FDECEC; color: #B42020; border: 1px solid #F0BCBC; }

/* --- Map -------------------------------------------------- */
.mapbox {
    max-width: var(--container); margin: 0 auto 100px;
    padding: 0 clamp(20px, 4vw, 48px);
}
.mapbox__frame {
    position: relative; width: 100%; aspect-ratio: 21 / 9;
    background: var(--cfm-bg-soft);
    border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--cfm-muted);
}
.mapbox__frame--live { aspect-ratio: 21 / 9; padding: 0; }
.mapbox__frame--live iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.mapbox__caption {
    margin-top: 16px;
    color: var(--cfm-muted);
    font-size: .92rem;
    text-align: center;
}

/* --- Downloads -------------------------------------------- */
.dl-section {
    padding: clamp(70px, 9vw, 120px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
}
.dl-section--alt { background: var(--cfm-bg-soft); }
.dl-grid {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.dl-card {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 24px; align-items: center;
    padding: 28px 28px;
    background: #fff;
    border: 1px solid var(--cfm-line);
    border-radius: 12px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.dl-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--cfm-orange);
}
.dl-card__icon { flex: 0 0 auto; }
.dl-card__title {
    font-size: 1.05rem; font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 6px;
    color: var(--cfm-ink);
}
.dl-card__desc {
    color: var(--cfm-muted);
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 12px;
}
.dl-card__meta {
    display: flex; gap: 10px; align-items: center;
    font-size: .78rem;
    letter-spacing: .08em;
}
.dl-card__badge {
    padding: 3px 8px;
    background: var(--cfm-orange);
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
}
.dl-card__size { color: var(--cfm-muted); font-weight: 600; }
.dl-card__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    background: var(--cfm-ink);
    color: #fff;
    border-radius: 999px;
    font-size: .9rem; font-weight: 600;
    transition: background .25s var(--ease), transform .25s var(--ease);
    white-space: nowrap;
}
.dl-card__btn:hover {
    background: var(--cfm-orange);
    transform: translateY(-1px);
}
@media (max-width: 760px) {
    .dl-grid  { grid-template-columns: 1fr; }
    .dl-card  { grid-template-columns: auto 1fr; row-gap: 16px; }
    .dl-card__btn { grid-column: 1 / -1; justify-content: center; }
}

/* --- Process (production timeline) ------------------------ */
.proc {
    padding: clamp(80px, 11vw, 140px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
    background: #fff;
}
.proc__wrap {
    max-width: 1080px; margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}
.proc-timeline {
    position: relative;
    display: grid;
    gap: 40px;
    margin-top: 56px;
}
.proc-timeline::before {
    content: '';
    position: absolute; left: 40px; top: 40px; bottom: 40px;
    width: 2px; background: linear-gradient(180deg, var(--cfm-orange) 0%, rgba(241,90,36,.2) 100%);
    z-index: 0;
}
.proc-step {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 80px 1fr 1.1fr;
    gap: 28px; align-items: center;
    background: var(--cfm-bg-soft);
    border-radius: 14px;
    padding: 28px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.proc-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proc-step__num {
    width: 80px; height: 80px; border-radius: 50%;
    background: #fff;
    border: 2px solid var(--cfm-orange);
    color: var(--cfm-orange);
    font-size: 1.2rem; font-weight: 800;
    letter-spacing: .06em;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 1;
}
.proc-step__num .lbl { font-size: .58rem; font-weight: 700; margin-bottom: 2px; color: var(--cfm-muted); letter-spacing: .18em; }
.proc-step__num .val { font-size: 1.4rem; font-weight: 800; }

.proc-step__body {
    display: flex; flex-direction: column; justify-content: center;
}
.proc-step__icon {
    width: 54px; height: 54px;
    background: rgba(241,90,36,.08);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    color: var(--cfm-orange);
}
.proc-step__title {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.proc-step__desc {
    color: var(--cfm-muted);
    font-size: .94rem;
    line-height: 1.7;
}
.proc-step__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.proc-step__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.proc-step:hover .proc-step__img img { transform: scale(1.05); }

/* --- Construction steps (icon grid, no images) ------------ */
.cons {
    padding: clamp(80px, 11vw, 140px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
    background: var(--cfm-bg-soft);
}
.cons__grid {
    max-width: var(--container); margin: 56px auto 0;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cons-step {
    position: relative;
    padding: 32px 28px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--cfm-line);
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
    display: flex; flex-direction: column; gap: 14px;
}
.cons-step:hover {
    border-color: var(--cfm-orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.cons-step__num {
    position: absolute; top: 20px; right: 24px;
    font-size: 2.4rem; font-weight: 800;
    color: rgba(241,90,36,.15);
    letter-spacing: -.04em; line-height: 1;
}
.cons-step__icon {
    width: 56px; height: 56px;
    background: var(--cfm-ink);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--cfm-orange);
    transition: background .3s var(--ease);
}
.cons-step:hover .cons-step__icon { background: var(--cfm-orange); color: #fff; }
.cons-step__title {
    font-size: 1.05rem; font-weight: 700;
    letter-spacing: -.01em;
    margin-top: 8px;
}
.cons-step__desc {
    color: var(--cfm-muted);
    font-size: .88rem;
    line-height: 1.65;
}

.cons-note {
    max-width: var(--container); margin: 48px auto 0;
    padding: 0 clamp(20px, 4vw, 48px);
}
.cons-note__box {
    background: #fff;
    border-left: 4px solid var(--cfm-orange);
    border-radius: 4px;
    padding: 22px 28px;
    color: var(--cfm-ink-2);
    font-size: .94rem;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.cons-note__box strong { color: var(--cfm-ink); font-weight: 700; }

/* --- Specifications --------------------------------------- */
.spec {
    padding: clamp(80px, 11vw, 140px) 0;
    scroll-margin-top: calc(var(--nav-h) + 64px);
    background: var(--cfm-bg-dark);
    color: rgba(255,255,255,.85);
}
.spec__inner {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}
.spec__inner .section__head h2 { color: #fff; }
.spec__inner .section__head p  { color: rgba(255,255,255,.7); }
.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}
.spec-card {
    padding: 32px 26px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    text-align: left;
}
.spec-card__label {
    font-size: .78rem;
    letter-spacing: .18em;
    color: var(--cfm-orange-light);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.spec-card__value {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 6px;
    line-height: 1.15;
}
.spec-card__unit {
    font-size: .9rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
}

.spec-table-wrap {
    background: rgba(255,255,255,.04);
    border-radius: 14px;
    overflow-x: auto;              /* 모바일에서 넓은 표 가로 스크롤 */
    overflow-y: hidden;
    border: 1px solid rgba(255,255,255,.08);
    -webkit-overflow-scrolling: touch;
}
.spec-table {
    width: 100%; border-collapse: collapse;
    min-width: 480px;              /* 너무 좁아지면 스크롤 발생 */
}
.spec-table th, .spec-table td {
    padding: 16px 22px;
    text-align: center;
    font-size: .94rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.spec-table thead th {
    background: rgba(255,255,255,.06);
    color: var(--cfm-orange-light);
    font-weight: 700;
    letter-spacing: .06em;
    font-size: .82rem;
    text-transform: uppercase;
}
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody td:first-child { color: var(--cfm-orange-light); font-weight: 700; }
.spec-table tbody td { color: rgba(255,255,255,.85); }

/* --- Responsive ------------------------------------------- */
@media (max-width: 960px) {
    .block__grid, .ceo__inner, .ci__inner, .cform-wrap {
        grid-template-columns: 1fr;
    }
    .lawyer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lawyer__photo {
        position: static;                  /* 모바일에선 sticky 해제 */
        max-width: 420px;
        margin: 0 auto;
        order: -1;                          /* 사진을 메시지 위로 */
        width: 100%;
    }
    .lawyer__card-row,
    .lawyer__card-row--col { grid-template-columns: 1fr; gap: 4px; }
    .block__grid--reverse .block__text { order: 0; }
    .ci__logo { min-height: 240px; padding: 48px; }
    .ggrid { grid-template-columns: repeat(2, 1fr); }
    .cform__row { grid-template-columns: 1fr; }
    .cinfo__item { grid-template-columns: 90px 1fr; }

    .proc-timeline::before { left: 30px; }
    .proc-step { grid-template-columns: 60px 1fr; }
    .proc-step__num { width: 60px; height: 60px; }
    .proc-step__num .val { font-size: 1.1rem; }
    .proc-step__img { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

    .cons__grid { grid-template-columns: repeat(2, 1fr); }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ggrid { grid-template-columns: 1fr; }
    .phero { min-height: 340px; padding: calc(var(--nav-h) + 56px) 0 56px; }
    .cons__grid { grid-template-columns: 1fr; }
    .spec-grid { grid-template-columns: 1fr; }
    .spec-table th, .spec-table td { padding: 10px 8px; font-size: .82rem; }
}
