@charset "utf-8";
/* 마이크로발란스 통합 포털 — mabals.com */

:root {
    --agri: #8cc869;
    --agri-deep: #4f8f36;
    --bio: #00816c;
    --bio-deep: #00604f;
    --ink: #16191a;
    --ink-soft: #5b6360;
    --line: #e4e7e6;
    --paper: #ffffff;
    --paper-alt: #f6f8f7;
    --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 폼 요소는 폰트를 상속하지 않아 그냥 두면 혼자 Arial 이 된다 */
button, input, select, textarea { font: inherit; color: inherit; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    padding: 10px 18px; background: var(--bio); color: #fff; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--agri); outline-offset: 3px; }

.pt-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 헤더 ---------- */
.pt-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1240px) / 2));
    transition: background .35s ease, box-shadow .35s ease;
}
.pt-logo img { width: 178px; height: auto; }
.pt-header-nav { display: flex; gap: 10px; }
.pt-header-nav a {
    display: inline-flex; align-items: center;
    height: 40px; padding: 0 20px; border-radius: 999px;
    font-size: 15px; font-weight: 600; color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(12, 20, 16, .38);
    backdrop-filter: blur(6px);
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.pt-header-nav .nav-agri:hover { background: var(--agri); border-color: var(--agri); color: #16260c; }
.pt-header-nav .nav-bio:hover { background: var(--bio); border-color: var(--bio); }

/* 스크롤 후 헤더 반전 */
.pt-header.is-solid { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }
.pt-header.is-solid .pt-logo img { filter: invert(1) grayscale(1) contrast(1.4); }
.pt-header.is-solid .pt-header-nav a { color: var(--ink); border-color: var(--line); }
.pt-header.is-solid .pt-header-nav .nav-bio:hover { color: #fff; }

/* ---------- 사업부 스플릿 ---------- */
/* 화면 전체를 채우면 큰 모니터에서 1300px 넘게 늘어나 여백만 남는다.
   내용물(가운데 문구 + 패널 본문)은 700px 안팎이라 상한을 둔다. */
.pt-split {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    height: min(90svh, 880px); min-height: 560px;
    background: #0b0d0c;
}

.pt-panel {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
    color: #fff;
    isolation: isolate;
}
/* 사업부별 브랜드 그라디언트를 바탕에 깔고, 사진은 그 위에 텍스처로 얹는다.
   덕분에 원본 사진 해상도가 낮아도 흐릿해 보이지 않고 두 패널의 색 구분이 또렷해진다. */
.panel-agri { background: linear-gradient(165deg, #4a7b2a 0%, #24501a 52%, #12280c 100%); }
.panel-bio { background: linear-gradient(165deg, #00655f 0%, #01383c 52%, #011c24 100%); }

.panel-bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    transform: scale(1.06);
    transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
    mix-blend-mode: soft-light;
    opacity: .78;
}
.panel-bio .panel-bg { mix-blend-mode: overlay; opacity: .6; }

.panel-veil { position: absolute; inset: 0; z-index: -1; transition: opacity .5s ease; }
.panel-agri .panel-veil {
    background: linear-gradient(180deg, rgba(10, 26, 6, .12) 0%, rgba(10, 26, 6, .42) 48%, rgba(8, 20, 5, .84) 100%);
}
.panel-bio .panel-veil {
    background: linear-gradient(180deg, rgba(0, 30, 25, .12) 0%, rgba(0, 30, 25, .44) 48%, rgba(0, 22, 18, .86) 100%);
}
.pt-panel:hover .panel-bg { transform: scale(1); opacity: .92; }
.panel-bio:hover .panel-bg { opacity: .74; }

.panel-body {
    position: relative;
    width: 100%;
    padding: 0 clamp(28px, 4.4vw, 66px) clamp(56px, 6vw, 86px);
    display: flex; flex-direction: column; align-items: flex-start;
}
.panel-eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: .22em;
    padding-bottom: 14px;
    color: rgba(255, 255, 255, .82);
}
.panel-agri .panel-eyebrow { color: var(--agri); }
.panel-bio .panel-eyebrow { color: #6fd8bf; }

.panel-title {
    font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; line-height: 1.2;
    padding-bottom: 18px;
}
.panel-desc {
    font-size: clamp(15px, 1.15vw, 17px); font-weight: 400;
    color: rgba(255, 255, 255, .82); line-height: 1.72;
    max-width: 30em;
}
.panel-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; }
.panel-tags em {
    font-size: 13px; font-weight: 500;
    padding: 6px 13px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .32);
    color: rgba(255, 255, 255, .88);
}
.panel-go {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 30px; padding: 13px 24px; border-radius: 999px;
    font-size: 14px; font-weight: 600; letter-spacing: .02em;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .34);
    transition: background .3s ease, border-color .3s ease, color .3s ease, gap .3s ease;
}
.panel-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-agri:hover .panel-go { background: var(--agri); border-color: var(--agri); color: #16260c; gap: 16px; }
.panel-bio:hover .panel-go { background: var(--bio); border-color: var(--bio); color: #fff; gap: 16px; }

/* 가운데 브랜드 문구 */
/* 높이를 880px 로 묶었으므로 46% 에 두면 아래 패널 본문과 겹친다 */
.pt-center {
    position: absolute; left: 50%; top: 36%;
    transform: translate(-50%, -50%);
    width: min(760px, calc(100% - 56px));
    text-align: center; color: #fff; pointer-events: none;
    z-index: 3;
}
.pt-statement {
    font-size: clamp(28px, 4vw, 56px); font-weight: 800; line-height: 1.24;
    text-shadow: 0 4px 34px rgba(0, 0, 0, .42);
}
.pt-statement-sub {
    padding-top: 20px;
    font-size: clamp(14px, 1.2vw, 17px); font-weight: 400; line-height: 1.75;
    color: rgba(255, 255, 255, .84);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
/* SCROLL 표시 — 첫 화면 하단 중앙 (transform 걸린 .pt-center 밖에 두어야 위치가 어긋나지 않는다) */
.pt-scroll {
    position: absolute; left: 50%; bottom: 26px;
    transform: translateX(-50%);
    z-index: 4;
    padding: 8px 14px;
    font-size: 11px; font-weight: 600; letter-spacing: .3em;
    color: rgba(255, 255, 255, .72);
    background: none; border: 0; cursor: pointer;
}
.pt-scroll span { animation: ptFloat 1.9s ease-in-out infinite; display: inline-block; }
@keyframes ptFloat { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(7px); opacity: 1; } }

/* 노트북처럼 세로가 짧은 화면(1366×660 등)에서는 가운데 문구와 패널 본문이 겹친다.
   좌우 분할이 유지되는 921px 이상에서만, 여백과 글자를 눌러 자리를 만든다. */
@media (min-width: 921px) and (max-height: 820px) {
    .pt-statement { font-size: clamp(24px, 2.8vw, 38px); }
    .pt-statement-sub { padding-top: 12px; font-size: clamp(13px, 1vw, 15px); }
    .panel-body { padding-bottom: clamp(26px, 3vw, 44px); }
    .panel-title { padding-bottom: 12px; }
    .panel-tags { padding-top: 14px; }
    .panel-go { margin-top: 18px; padding: 11px 20px; }
    .pt-scroll { bottom: 12px; }
}

/* 한쪽 패널에 마우스를 올리면 반대편이 물러난다 */
@media (hover: hover) and (min-width: 921px) {
    .pt-split.hover-agri .panel-bio .panel-veil { opacity: 1.18; }
    .pt-split.hover-bio .panel-agri .panel-veil { opacity: 1.18; }
    .pt-split.is-hovering .pt-center { opacity: .18; transition: opacity .45s ease; }
    .pt-center { transition: opacity .45s ease; }
}

/* ---------- 회사 개요 ---------- */
.sec-eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: .2em;
    color: var(--bio);
    padding-bottom: 18px;
}
.sec-title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; line-height: 1.32; }
.sec-desc { padding-top: 24px; font-size: clamp(15px, 1.1vw, 17px); color: var(--ink-soft); line-height: 1.85; }

.pt-about { padding: clamp(84px, 9vw, 140px) 0; }
.pt-about .sec-desc { max-width: 62em; }

/* ---------- 핵심 기술 : SSD-Tech ---------- */
.pt-ssd { padding: clamp(84px, 9vw, 140px) 0; background: var(--paper-alt); }
.pt-ssd .sec-desc { max-width: 62em; }

/* 두 그룹을 나란히 두어 카드 4장이 한 줄에 들어온다 (원본 소개서 슬라이드와 같은 배열).
   좁은 폭에서는 도식 라벨이 뭉개지므로 920px 이하에서 단을 접는다. */
.ssd-groups {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 2.4vw, 36px);
    margin-top: clamp(48px, 5vw, 72px);
}
.ssd-group { display: flex; flex-direction: column; gap: 18px; }
.ssd-group-name {
    font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; letter-spacing: .04em;
    color: var(--ink-soft);
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.ssd-group-name b { font-weight: 800; color: var(--bio); }

/* flex:1 이라야 두 그룹의 카드 네 장이 같은 높이로 맞는다 */
.ssd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.4vw, 18px); align-items: stretch; flex: 1; }
/* 4열에서는 카드가 좁아지므로, 도식은 여백 없이 카드 폭을 그대로 쓴다 */
.ssd-card {
    display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden;
}
/* 도식마다 원본 비율이 조금씩 달라 비율을 고정하고 안에서 맞춘다 */
.ssd-fig {
    margin: 0; background: #fff;
    border-bottom: 1px solid var(--line); aspect-ratio: 806 / 413;
}
.ssd-fig img { display: block; width: 100%; height: 100%; object-fit: contain; }

.ssd-body {
    display: flex; flex-direction: column; gap: 10px;
    padding: clamp(16px, 1.5vw, 22px) clamp(16px, 1.5vw, 22px) clamp(20px, 1.8vw, 26px);
}
.ssd-num { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--bio); }
.ssd-card-title {
    font-size: clamp(14.5px, 1.1vw, 16.5px); font-weight: 600; line-height: 1.45;
    color: var(--ink);
}
.ssd-list { display: flex; flex-direction: column; gap: 6px; }
.ssd-list li {
    position: relative; padding-left: 12px;
    font-size: 13.5px; line-height: 1.65; color: var(--ink-soft);
}
.ssd-list li::before {
    content: ''; position: absolute; left: 0; top: .66em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--agri);
}

/* ---------- 소식 ---------- */
.pt-news { padding: clamp(84px, 9vw, 140px) 0; }
.pt-news-head { padding-bottom: clamp(34px, 4vw, 52px); }

.pt-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pt-news-list li { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.pt-news-list a {
    display: flex; flex-direction: column; height: 100%;
    padding: clamp(24px, 2.4vw, 34px);
    transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.pt-news-list li:hover { border-color: var(--bio); }
.pt-news-list li:hover a { background: var(--paper-alt); }
.news-meta { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; }
.news-cat {
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    padding: 4px 11px; border-radius: 999px;
    background: rgba(0, 129, 108, .1); color: var(--bio-deep);
}
/* 13px 본문이라 AA 4.5:1 이 필요하다. 예전 값 #9aa3a0 은 흰 배경에서 2.59:1 이었다. */
.news-date { font-size: 13px; color: #6b7370; }
.news-title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.news-summary {
    padding-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 푸터 ---------- */
.pt-footer { background: #14201c; color: rgba(255, 255, 255, .72); padding: clamp(56px, 6vw, 82px) 0 clamp(34px, 3vw, 46px); }
.ft-logo img { width: 168px; opacity: .92; }
.ft-cols {
    display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
    padding: clamp(30px, 3vw, 44px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.ft-info li { display: flex; gap: 12px; font-size: 14.5px; line-height: 2.05; }
.ft-info em { min-width: 52px; color: rgba(255, 255, 255, .64); font-size: 13px; }
.ft-links { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.ft-links a { font-size: 14.5px; transition: color .25s ease; }
.ft-links a:hover { color: var(--agri); }
.ft-copy { padding-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .62); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
    .pt-news-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
    :root { --header-h: 68px; }
    /* 2열로는 도식 라벨이 읽히지 않는 폭 */
    .ssd-cards { grid-template-columns: 1fr; }
    .pt-logo img { width: 148px; }
    .pt-header-nav a { height: 36px; padding: 0 15px; font-size: 14px; }

    .pt-split { grid-template-columns: 1fr; height: auto; min-height: 0; padding-top: var(--header-h); }
    .pt-panel { min-height: 66svh; }
    .panel-body { padding: clamp(80px, 12vw, 110px) 26px 44px; }
    .panel-desc br { display: none; }

    /* 모바일에서는 가운데 문구를 별도 블록으로 내려 겹침을 없앤다 */
    .pt-center {
        position: static; transform: none; width: 100%;
        order: -1; padding: 44px 26px 40px;
        background: #101815; text-align: left;
        grid-column: 1 / -1;
    }
    .pt-statement { text-shadow: none; }
    .pt-statement-sub { text-shadow: none; }
    .pt-scroll { display: none; }
    .pt-header.is-solid .pt-logo img { filter: invert(1) grayscale(1) contrast(1.4); }
}

@media (max-width: 640px) {
    .pt-inner { width: calc(100% - 40px); }
    /* 여기부터는 그룹을 나란히 둘 폭이 안 나온다 */
    .ssd-groups { grid-template-columns: 1fr; gap: clamp(30px, 5vw, 40px); }
    .pt-news-list { grid-template-columns: 1fr; }
    .pt-header { padding: 0 18px; gap: 10px; }
    .pt-logo img { width: 118px; }
    .pt-header-nav { gap: 6px; }
    .pt-header-nav a { height: 32px; padding: 0 11px; font-size: 12.5px; }
    .ft-cols { flex-direction: column; gap: 26px; }
    .ft-info li { flex-direction: column; gap: 0; line-height: 1.55; padding-bottom: 12px; }
    .ft-info em { min-width: 0; }
}

@media (max-width: 400px) {
    .pt-logo img { width: 104px; }
    .pt-header-nav a { padding: 0 9px; font-size: 12px; letter-spacing: -0.03em; }
}

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