:root{
  --navy:#1b2d6b; --navy-2:#13204f; --blue:#2a6fdb; --teal:#2bb3c0; --red:#d8343a;
  --ink:#1c2230; --muted:#5b6474; --line:#e3e7ef; --bg:#f5f7fb; --white:#fff;
  --radius:14px; --shadow:0 10px 30px rgba(19,32,79,.08);
  --font:"Pretendard","Noto Sans KR","Noto Sans SC","Noto Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.65;font-size:16px;word-break:keep-all}
html[lang="zh-CN"] body{word-break:normal}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1200px,92%);margin:0 auto}
section{padding:96px 0}
.eyebrow{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--teal);margin-bottom:12px}
.eyebrow::after{content:"";display:block;width:36px;height:3px;background:var(--red);margin-top:8px}
h2.title{font-size:clamp(26px,3.2vw,38px);line-height:1.3;color:var(--navy);font-weight:800;margin-bottom:16px}
.lead{color:var(--muted);font-size:17px;max-width:820px}

/* Header */
header{position:fixed;inset:0 0 auto 0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px;gap:24px}
.brand img{height:34px;width:auto}
.menu{display:flex;gap:28px;font-weight:600;font-size:15px}
.menu a{color:var(--ink);opacity:.85}
.menu a:hover{color:var(--blue);opacity:1}
.menu a.active{color:var(--blue);opacity:1;font-weight:700}
.lang{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;font-size:13px;font-weight:700}
.lang button{border:0;background:none;padding:7px 12px;cursor:pointer;color:var(--muted);font:inherit}
.lang button.on{background:var(--navy);color:#fff}
.burger{display:none;background:none;border:0;font-size:26px;cursor:pointer;color:var(--navy)}

/* Hero */
.hero{position:relative;min-height:92vh;display:flex;align-items:center;color:#fff;padding:140px 0 80px;
  background:linear-gradient(100deg,rgba(13,22,56,.94) 0%,rgba(19,32,79,.82) 45%,rgba(19,32,79,.35) 100%),url(../img/hero.jpg) center/cover no-repeat}
.hero h1{font-size:clamp(32px,5vw,60px);line-height:1.15;font-weight:800;letter-spacing:-.01em;max-width:820px}
.hero h1 em{font-style:normal;color:var(--teal)}
.hero p{font-size:clamp(16px,1.6vw,19px);opacity:.88;max-width:640px;margin:22px 0 34px}
.btns{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 24px;border-radius:999px;font-weight:700;font-size:15px;border:2px solid transparent;cursor:pointer;transition:.2s}
.btn.primary{background:var(--teal);color:#fff}
.btn.primary:hover{background:#229aa6}
.btn.ghost{border-color:rgba(255,255,255,.6);color:#fff}
.btn.ghost:hover{background:rgba(255,255,255,.12)}
.btn.dark{background:var(--navy);color:#fff}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-top:56px;background:rgba(255,255,255,.18);border-radius:var(--radius);overflow:hidden;max-width:980px}
.stat{background:rgba(13,22,56,.55);padding:18px 20px;min-width:0}
.stat b{display:block;font-size:clamp(17px,1.7vw,25px);font-weight:800;color:#fff;line-height:1.2;letter-spacing:-.01em;white-space:nowrap}
.stat b i{font-style:normal;font-size:.6em;font-weight:700;opacity:.85;letter-spacing:0;vertical-align:.14em}
.stat span{display:block;font-size:12.5px;line-height:1.4;opacity:.82;margin-top:5px}

/* Single-view mode: only the section for the current menu is shown (JS only; the
   static HTML keeps every section for crawlers and no-JS visitors) */
body.spa-mode main>section{display:none}
body.spa-mode main>section.view-active{display:block}
body.spa-mode main>section[data-view]:not([data-view="home"]){padding-top:118px}

/* About */
.about{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:center}
.about-img{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);position:relative}
.about-img img{width:100%;height:440px;object-fit:cover}
.about-img .quote{position:absolute;left:28px;bottom:26px;color:#fff;font:italic 700 clamp(22px,2.4vw,30px)/1.25 Georgia,serif;text-shadow:0 2px 14px rgba(0,0,0,.5)}
.about p{color:var(--muted);margin-bottom:14px}
.sign{margin-top:22px;font-weight:700;color:var(--navy)}
.sign small{display:block;font-weight:500;color:var(--muted);font-size:13px}

/* Timeline */
.bg-soft{background:var(--bg)}
.timeline{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;margin-top:44px}
.tl{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.tl img{height:120px;width:100%;object-fit:cover}
.tl .yr{font-size:22px;font-weight:800;color:var(--navy);padding:14px 16px 4px}
.tl ul{list-style:none;padding:0 16px 18px;font-size:13.5px;color:var(--muted)}
.tl li{padding-left:12px;position:relative;margin-top:6px;line-height:1.45}
.tl li::before{content:"";position:absolute;left:0;top:8px;width:5px;height:5px;border-radius:50%;background:var(--teal)}

/* Certifications */
.certs{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:44px}
.cert{border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;gap:16px;align-items:flex-start;background:#fff}
.cert .ic{flex:0 0 52px;height:52px;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--navy));color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px}
.cert small{color:var(--teal);font-weight:700;font-size:12px;letter-spacing:.05em}
.cert h3{font-size:18px;color:var(--navy);margin:2px 0 4px}
.cert p{font-size:14px;color:var(--muted);line-height:1.5}
.cert-gallery{display:grid;grid-template-columns:repeat(8,1fr);gap:14px;margin-top:30px}
.cert-gallery figure{background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px;cursor:zoom-in}
.cert-gallery img{aspect-ratio:.7;object-fit:cover;width:100%}
.cert-gallery figcaption{font-size:11.5px;color:var(--muted);text-align:center;margin-top:6px;line-height:1.35}

/* Global */
.global{background:linear-gradient(180deg,rgba(234,244,250,.92),rgba(234,244,250,.97)),url(../img/handshake.jpg) center/cover}
.sites{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:40px}
.site{background:#fff;border-radius:var(--radius);padding:22px 20px;box-shadow:var(--shadow);border-top:4px solid var(--teal)}
.site .cc{font-size:12px;font-weight:800;color:var(--blue);letter-spacing:.08em}
.site h3{font-size:17px;color:var(--navy);margin:4px 0 6px;line-height:1.35}
.site p{font-size:13.5px;color:var(--muted);line-height:1.5}
.partners{margin-top:40px}
.partners h4{font-size:14px;color:var(--navy);margin-bottom:12px;letter-spacing:.05em}
.plist{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.plist span{background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;display:grid;place-items:center;height:76px}
.plist img{max-height:62px;width:auto;object-fit:contain}

/* Products */
.matrix-wrap{overflow-x:auto;margin-top:36px;border:1px solid var(--line);border-radius:var(--radius)}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:center;white-space:nowrap}
thead th{background:var(--navy);color:#fff;font-weight:700;font-size:13px}
.matrix td:first-child,.matrix th:first-child{text-align:left;white-space:normal;min-width:260px}
.matrix td:first-child b{display:block;color:var(--navy)}
.matrix td:first-child small{color:var(--muted)}
.matrix tbody tr{cursor:pointer}
.matrix tbody tr:hover{background:#eef4ff}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--navy)}
.grid-products{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;margin-top:44px}
.pcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;cursor:pointer;transition:.2s;display:flex;flex-direction:column}
.pcard:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#c9d6ef}
.pcard img{height:150px;width:100%;object-fit:cover;background:#eef1f6}
.pcard div{padding:16px 18px 20px}
.pcard small{color:var(--teal);font-weight:700;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase}
.pcard h3{font-size:17px;color:var(--navy);margin:4px 0 6px;line-height:1.3}
.pcard p{font-size:13.5px;color:var(--muted);line-height:1.5}
.pcard .more{margin-top:auto;padding:0 18px 18px;font-size:13px;font-weight:700;color:var(--blue)}

/* Modal */
dialog{margin:auto;border:0;border-radius:18px;width:min(1100px,94vw);max-height:90vh;padding:0;box-shadow:0 30px 80px rgba(0,0,0,.35)}
dialog::backdrop{background:rgba(10,16,40,.6)}
.m-head{position:sticky;top:0;background:#fff;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:18px 28px;border-bottom:1px solid var(--line)}
.m-head h3{font-size:22px;color:var(--navy)}
.m-head .m-sub{font-weight:600;color:var(--blue);font-size:13px;margin-top:4px;line-height:1.45}
.m-close{border:0;background:var(--bg);width:38px;height:38px;border-radius:50%;font-size:20px;cursor:pointer;flex:0 0 auto}
.m-tabs{display:flex;gap:4px;padding:14px 20px 0;background:#fff;border-bottom:1px solid var(--line)}
.m-tabs button{border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--muted);padding:10px 18px;border-radius:10px 10px 0 0;cursor:pointer;border-bottom:3px solid transparent}
.m-tabs button:hover{color:var(--navy);background:var(--bg)}
.m-tabs button.on{color:var(--navy);border-bottom-color:var(--teal);background:var(--bg)}
.m-panel{display:none;padding:0}
#modal[data-tab="spec"] .m-panel[data-panel="spec"],#modal[data-tab="info"] .m-panel[data-panel="info"]{display:block}
.m-panel[data-panel="spec"]>h4:first-child{margin-top:0}
.m-body{padding:26px 28px 32px}
.m-top{display:grid;grid-template-columns:1.1fr 1fr;gap:28px}
.m-gal{display:grid;align-content:start;grid-template-columns:repeat(3,1fr);gap:8px}
.m-gal img{border-radius:10px;width:100%;height:110px;object-fit:cover;background:#eef1f6}
.m-gal img:first-child{grid-column:1/-1;height:280px}
.m-sub{font-weight:700;color:var(--blue);margin-bottom:8px}
.m-desc{color:var(--muted);margin-bottom:16px;font-size:15px}
.m-body h4{font-size:14px;color:var(--navy);letter-spacing:.06em;text-transform:uppercase;margin:18px 0 8px}
.m-body ul{padding-left:18px;color:var(--ink);font-size:14.5px}
.m-body li{margin:3px 0}
.spec-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;margin-top:8px}
.spec th{background:var(--blue)}
.spec td:first-child,.spec th:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:1;font-weight:600;color:var(--navy)}
.spec th:first-child{background:var(--blue);color:#fff}
.spec tbody tr:nth-child(even) td{background:#f8f9fc}
.note{font-size:12.5px;color:var(--muted);margin-top:8px}
.suppliers{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.suppliers table th{background:var(--navy)}

/* Vision */
.vision{position:relative;color:#fff;background:linear-gradient(90deg,rgba(10,16,40,.95),rgba(10,16,40,.6)),url(../img/future.jpg) center/cover}
.vision h2{font:italic 700 clamp(26px,3.4vw,42px)/1.3 Georgia,"Noto Serif KR",serif;max-width:760px}
.vision p{opacity:.85;max-width:640px;margin-top:20px}
.pillars{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;margin-top:48px;background:rgba(255,255,255,.2);border-radius:var(--radius);overflow:hidden}
.pillars div{background:rgba(10,16,40,.55);padding:22px 18px}
.pillars b{display:block;font-size:17px}
.pillars span{font-size:13px;opacity:.75}

/* Contact */
.contact{display:grid;grid-template-columns:1fr 1fr;gap:48px}
.cinfo dl{display:grid;grid-template-columns:110px 1fr;gap:14px 10px;margin-top:24px;font-size:15px}
.cinfo dt{font-weight:700;color:var(--navy)}
.cinfo dd{color:var(--muted)}
form.inq{background:var(--bg);border-radius:var(--radius);padding:28px;display:grid;gap:12px}
form.inq label{font-size:13px;font-weight:700;color:var(--navy)}
form.inq input,form.inq select,form.inq textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:15px;background:#fff}
form.inq .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

footer{background:var(--navy-2);color:rgba(255,255,255,.7);padding:40px 0;font-size:13.5px}
footer .container{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}
footer img{height:30px;opacity:.9}

.zoom{cursor:zoom-out}
.zoom img{max-height:86vh;margin:auto}

@media (max-width:1080px){
  .timeline{grid-template-columns:repeat(3,1fr)}
  .grid-products{grid-template-columns:repeat(3,1fr)}
  .sites{grid-template-columns:repeat(3,1fr)}
  .cert-gallery{grid-template-columns:repeat(4,1fr)}
  .suppliers{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:820px){
  section{padding:72px 0}
  .menu{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;flex-direction:column;gap:0;border-bottom:1px solid var(--line)}
  .menu.open{display:flex}
  .menu a{padding:14px 5%;border-top:1px solid var(--line)}
  .burger{display:block}
  .about,.contact{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{padding:14px 16px}
  body.spa-mode main>section[data-view]:not([data-view="home"]){padding-top:88px}
  .certs{grid-template-columns:1fr}
  .grid-products{grid-template-columns:repeat(2,1fr)}
  .timeline,.sites{grid-template-columns:1fr 1fr}
  .plist{grid-template-columns:repeat(3,1fr)}
  .pillars{grid-template-columns:1fr 1fr}
  .about-img img{height:300px}
}
@media (max-width:520px){
  .brand img{height:24px}
  .nav{gap:10px}
  .grid-products,.timeline,.sites,.suppliers{grid-template-columns:1fr}
  .cert-gallery{grid-template-columns:repeat(2,1fr)}
  form.inq .row{grid-template-columns:1fr}
  .lang button{padding:6px 9px}
  .stat b{font-size:16px;white-space:normal;line-height:1.25}
  .stat span{font-size:11.5px}
  .m-head{padding:14px 18px}
  .m-head h3{font-size:19px}
  .m-tabs{padding:10px 12px 0}
  .m-tabs button{padding:9px 12px;font-size:13px}
  .m-body{padding:18px 18px 24px}
}

/* Language switcher as real links (/ , /en/ , /zh/) */
.lang a{display:inline-block;padding:7px 12px;color:var(--muted);font:inherit;line-height:1.2}
.lang a:hover{color:var(--blue)}
.lang a.on{background:var(--navy);color:#fff}

@media (max-width:520px){
  .lang a{padding:6px 9px}
}

/* ===== Mobile: product spec modal readability (2026-12-06) ==================
   On a phone the spec table must show the item name, test method, unit AND the
   grade columns at once. The item column wraps (max 112px) instead of pushing
   the values off-screen; only tables with many grade columns (JP Series) still
   scroll sideways, with the item column frozen on the left. */
@media (max-width:720px){
  dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 24px);border-radius:16px}
  /* header + tabs stay put, only the body scrolls, so the tabs never scroll away */
  #modal[open]{display:flex;flex-direction:column;overflow:hidden}
  #modal .m-head{flex:0 0 auto;padding:14px 14px 12px;gap:10px;align-items:flex-start}
  #modal .m-head h3{font-size:18px;line-height:1.25}
  #modal .m-head .m-sub{font-size:12px;line-height:1.4;margin-top:3px}
  #modal .m-close{width:32px;height:32px;font-size:17px;line-height:1}
  #modal .m-tabs{flex:0 0 auto;padding:6px 10px 0;gap:4px}
  #modal .m-tabs button{flex:1 1 0;padding:9px 6px;font-size:13px;letter-spacing:0}
  #modal .m-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 12px 22px;scrollbar-width:thin}
  #modal .m-body::-webkit-scrollbar{width:6px;height:6px}
  #modal .m-body::-webkit-scrollbar-thumb{background:#c9d2e2;border-radius:3px}
  #modal .m-body h4{font-size:12px;letter-spacing:.05em;margin:14px 0 6px}
  .spec-wrap{margin-top:6px;border-radius:10px}
  .spec th,.spec td{padding:7px 7px;font-size:12px;line-height:1.35}
  .spec thead th{font-size:11px;letter-spacing:0;white-space:normal}
  .spec td{white-space:nowrap}
  .spec th:first-child,.spec td:first-child{white-space:normal;word-break:keep-all;min-width:96px;max-width:112px;width:112px;padding-left:9px}
  /* many grade columns (JP Series etc.): tighter cells so several grade columns
     are visible at once and the rest scrolls sideways under a frozen item column */
  .spec.wide th,.spec.wide td{padding:6px 5px;font-size:11px}
  .spec.wide thead th{font-size:10px;line-height:1.2}
  .spec.wide td{white-space:normal}
  .spec.wide th:nth-child(2),.spec.wide td:nth-child(2){width:64px;min-width:52px;max-width:72px}
  .spec.wide th:nth-child(3),.spec.wide td:nth-child(3){width:46px;min-width:38px;max-width:56px}
  .spec.wide th:first-child,.spec.wide td:first-child{width:96px;min-width:92px;max-width:104px;padding-left:7px}
  .note{font-size:11.5px;line-height:1.5}
  .m-desc{font-size:14px;margin-bottom:12px}
  .m-body ul{font-size:13.5px}
  .suppliers{grid-template-columns:1fr}
  .m-gal img{height:88px}
  .m-gal img:first-child{height:180px}
}
