/* 쓰리원 멀티페이지 정적 사이트 확장 스타일 v2 */
body.nav-open,
body.modal-open { overflow: hidden; }

section[id],
article[id],
.anchor-target { scroll-margin-top: calc(var(--header-h) + 64px); }

.site-header { isolation: isolate; }
.brand { display: inline-flex; align-items: center; }
.gnb a[aria-current="page"] { color: var(--teal-600); background: var(--gray-50); }
.nav-toggle { border-radius: 8px; }

.contact-lines { display: grid; gap: 6px; color: #d5e0ea; font-size: 14px; }
.contact-lines a { color: #fff; }

.section-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--teal-600); font-weight: 700;
}
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(3px); }
.strength-card { display: flex; flex-direction: column; }
.strength-card .text-link { margin-top: auto; padding-top: 18px; }

.page-hero.has-photo {
  background-image: linear-gradient(100deg, rgba(8,28,51,.88), rgba(8,28,51,.58)), var(--page-image);
  background-size: cover; background-position: center;
}
.page-hero.has-photo::before { opacity: .42; }
.page-hero.has-photo::after { background: linear-gradient(180deg, rgba(8,28,51,.18), rgba(8,28,51,.62)); }
.page-kicker { color: var(--teal-200); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-intro { max-width: 760px; }
.page-intro .lead { color: var(--muted); font-size: 17px; }

.anchor-nav a[aria-current="location"] { color: var(--teal-600); border-color: var(--teal-600); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; margin: 28px 0 0; }
.fact-item { border-top: 1px solid var(--line); padding: 18px 0; }
.fact-item dt { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.fact-item dd { margin: 0; font-weight: 700; }
.patent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.patent-item { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.patent-item span { color: var(--muted); font-size: 14px; }
.company-wide-photo { margin: 46px 0 0; position: relative; height: min(68vw, 680px); min-height: 420px; overflow: hidden; border-radius: var(--radius); }
.company-wide-photo img { width: 100%; height: 100%; object-fit: contain; background: var(--gray-100); }
.company-wide-photo figcaption { position: absolute; left: 20px; bottom: 18px; padding: 8px 12px; border-radius: 6px; background: rgba(8,28,51,.8); color: #fff; font-size: 12px; }
.editorial-timeline li { padding: 24px 0; }
.editorial-timeline h3 { margin-bottom: 8px; }
.editorial-timeline p { color: var(--muted); margin: 0; }

button.card {
  appearance: none; width: 100%; padding: 0; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}
button.card:hover,
button.card:focus-visible { box-shadow: var(--shadow); transform: translateY(-3px); }
button.card:hover .card-thumb img,
button.card:focus-visible .card-thumb img { transform: scale(1.04); }
.card-body { min-height: 116px; }
.card-cta { display: inline-flex; margin-top: 14px; color: var(--teal-600); font-size: 14px; font-weight: 700; }
.card-cta::after { content: " +"; }
.photo-grid .card-thumb { aspect-ratio: 4 / 3; }
.home-grid .card-body { min-height: 102px; }
.home-grid .card { height: 100%; }

.dialog-trigger-note { color: var(--muted); font-size: 14px; margin: -24px 0 32px; }
dialog.media-dialog {
  width: min(980px, calc(100vw - 40px)); max-height: min(840px, calc(100vh - 40px));
  padding: 0; border: 0; border-radius: 18px; color: var(--text); background: #fff;
  box-shadow: 0 28px 90px rgba(8,28,51,.34); overflow: auto;
}
dialog.media-dialog::backdrop { background: rgba(8,28,51,.72); backdrop-filter: blur(3px); }
.dialog-inner { position: relative; padding: 30px; }
.dialog-close {
  position: sticky; z-index: 3; top: 12px; margin-left: auto; display: grid; place-items: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,255,255,.96); color: var(--text); font: inherit; font-size: 25px; cursor: pointer;
}
.dialog-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 32px; align-items: start; margin-top: -36px; }
.dialog-media { min-height: 280px; display: grid; place-items: center; border-radius: var(--radius); background: var(--gray-50); overflow: hidden; }
.dialog-media img { width: 100%; height: 100%; max-height: 68vh; object-fit: contain; }
.dialog-copy { padding-top: 48px; }
.dialog-copy h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.dialog-copy h3 { font-size: 16px; margin-top: 24px; }
.dialog-copy p, .dialog-copy li { color: var(--muted); }
.dialog-copy ul, .dialog-copy ol { padding-left: 20px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dialog-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-nav button { min-width: 112px; }

.filter-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.filter-button {
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--text);
  padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.filter-button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.result-count { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
[hidden] { display: none !important; }
.solution-card { margin-top: 40px; padding: 26px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray-50); }
.solution-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; }

.facility-grid .card-body { min-height: 126px; }
.process-explorer { display: grid; grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr); gap: 30px; align-items: start; }
.process-nav { display: grid; gap: 8px; counter-reset: process; }
.process-button {
  counter-increment: process; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center;
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.process-button::before { content: "0" counter(process); color: var(--teal-600); font-size: 12px; letter-spacing: .08em; }
.process-button[aria-pressed="true"] { border-color: var(--teal-600); background: rgba(15,168,160,.08); }
.process-panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.process-panel-media { height: 360px; display: grid; place-items: center; background: var(--gray-100); }
.process-panel-media img { width: 100%; height: 100%; object-fit: contain; }
.process-panel-copy { padding: 26px; }
.process-panel-copy p { color: var(--muted); margin-bottom: 0; }

.contact-overview { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.contact-list { margin: 0; display: grid; }
.contact-list div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-weight: 700; }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: var(--teal-600); }
.map-card { border-radius: var(--radius); background: var(--navy-950); color: #fff; padding: 30px; }
.map-card p { color: var(--on-navy); }
.map-card .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 32px; align-items: start; }
.quote-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.quote-form textarea { min-height: 132px; }
.quote-step { border: 0; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.quote-step:last-of-type { margin-bottom: 0; }
.quote-step legend { width: 100%; padding: 0; margin: 0 0 18px; font-size: 17px; font-weight: 800; }
.quote-step legend span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 9px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 11px; letter-spacing: .06em; }
.privacy-note { margin: 20px 0 0; padding: 14px 16px; border-left: 3px solid var(--teal-500); background: var(--gray-50); color: var(--muted); font-size: 14px; }
.quote-summary { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); padding: 28px; background: var(--navy-950); color: #fff; }
.quote-summary h3 { color: #fff; }
.quote-summary pre { margin: 18px 0 0; white-space: pre-wrap; color: var(--on-navy); font: 14px/1.75 var(--font); }
.quote-actions { display: grid; gap: 10px; margin-top: 24px; }
.quote-status { min-height: 24px; margin: 12px 0 0; color: var(--teal-200); font-size: 13px; }
.faq-native { max-width: 880px; }
.faq-native details { border-bottom: 1px solid var(--line); }
.faq-native summary { list-style: none; cursor: pointer; padding: 20px 42px 20px 4px; font-weight: 700; position: relative; }
.faq-native summary::-webkit-details-marker { display: none; }
.faq-native summary::after { content: "+"; position: absolute; right: 10px; top: 13px; font-size: 26px; color: var(--teal-600); }
.faq-native details[open] summary::after { content: "−"; }
.faq-native details p { padding: 0 40px 20px 4px; color: var(--muted); }

.home-contact .detail-media img { aspect-ratio: 4/3; object-fit: cover; }

/* 홈 에디토리얼 흐름 */
.hero-v2 .hero-slide { min-height: min(760px, calc(100vh - var(--header-h))); }
.hero-v2 .hero-bg { background-position: center 38%; opacity: .58; }
.hero-v2 .hero-content { max-width: 830px; padding: 116px 0 132px; }
.hero-v2 .hero-title { max-width: 800px; font-size: clamp(2.25rem, 5.2vw, 4.35rem); letter-spacing: -.045em; }
.hero-v2 .hero-sub { max-width: 680px; }
.hero-caption { position: absolute; right: 24px; bottom: 26px; z-index: 3; color: rgba(255,255,255,.78); font-size: 12px; letter-spacing: .04em; }
.proof-strip { background: var(--navy-950); color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
.proof-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); }
.proof-intro, .proof-item { padding: 28px 30px; border-right: 1px solid rgba(255,255,255,.12); }
.proof-intro { padding-left: 0; color: var(--on-navy); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 28px; letter-spacing: -.03em; }
.proof-item span { color: var(--on-navy); font-size: 13px; }
.editorial-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: end; margin-bottom: 54px; }
.editorial-head h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); letter-spacing: -.045em; }
.editorial-head .lead { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.editorial-products { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, minmax(240px, 1fr)); gap: 18px; }
.editorial-card { position: relative; min-height: 250px; overflow: hidden; border-radius: var(--radius); color: #fff; isolation: isolate; }
.editorial-card:first-child { grid-row: 1 / 3; min-height: 520px; }
.editorial-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.editorial-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 32%, rgba(8,28,51,.9)); }
.editorial-card-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px; }
.editorial-card-copy h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
.editorial-card-copy p { color: rgba(255,255,255,.8); margin: 0; }
.editorial-card:hover img, .editorial-card:focus-visible img { transform: scale(1.035); }
.product-rail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.product-rail a { display: flex; justify-content: space-between; gap: 12px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; background: #fff; }
.product-rail a::after { content: "↗"; color: var(--teal-600); }
.story-section { background: var(--navy-950); color: #fff; overflow: hidden; }
.story-layout { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 610px; }
.story-image { position: relative; margin-left: calc((100vw - min(100vw, var(--container))) / -2 - 24px); }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-image figcaption { position: absolute; left: 28px; bottom: 24px; padding: 8px 12px; border-radius: 6px; background: rgba(8,28,51,.78); font-size: 12px; }
.story-copy { align-self: center; padding: 74px 0 74px 68px; }
.story-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.story-copy p { color: var(--on-navy); }
.story-facts { display: grid; gap: 18px; margin: 32px 0; }
.story-facts div { border-left: 2px solid var(--teal-500); padding-left: 18px; }
.story-facts strong { display: block; }
.story-facts span { color: var(--on-navy); font-size: 14px; }
.facility-editorial { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: stretch; }
.facility-copy-block { padding: 48px; background: var(--gray-50); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; }
.facility-copy-block h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.facility-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.facility-mosaic figure { margin: 0; position: relative; min-height: 230px; overflow: hidden; border-radius: var(--radius); }
.facility-mosaic figure:first-child { grid-column: 1 / -1; min-height: 340px; }
.facility-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.facility-mosaic figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 5px; background: rgba(8,28,51,.82); color: #fff; font-size: 12px; }
.mobile-quote-bar { display: none; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy-900); box-shadow: var(--shadow); cursor: pointer; font-size: 18px; }
.not-found { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 80px 24px; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: #fff; text-align: center; }
.not-found strong { display: block; color: var(--teal-200); font-size: clamp(4rem, 16vw, 9rem); line-height: .9; letter-spacing: -.06em; }
.not-found h1 { font-size: clamp(1.7rem, 4vw, 3rem); margin: 24px 0 12px; }
.not-found p { color: var(--on-navy); }
.not-found .hero-actions { justify-content: center; margin-top: 28px; }

/* 에디토리얼 목록 */
.editorial-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.editorial-gallery .card { grid-column: span 4; }
.editorial-gallery .card:nth-child(1), .editorial-gallery .card:nth-child(4) { grid-column: span 7; }
.editorial-gallery .card:nth-child(2), .editorial-gallery .card:nth-child(5) { grid-column: span 5; }
.editorial-gallery .card-thumb { aspect-ratio: 16/10; }
.editorial-gallery .card:nth-child(1) .card-thumb, .editorial-gallery .card:nth-child(4) .card-thumb { aspect-ratio: 16/9; }
.product-selector { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 32px; }
.product-tab { border: 1px solid var(--line); border-radius: 10px; padding: 15px 12px; background: #fff; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.product-tab[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.product-stage { min-height: 570px; border-radius: 18px; overflow: hidden; background: var(--gray-50); }
.product-stage .dialog-grid { margin: 0; grid-template-columns: 1.18fr .82fr; gap: 0; min-height: 570px; }
.product-stage .dialog-media { border-radius: 0; min-height: 570px; }
.product-stage .dialog-copy { padding: 54px; align-self: center; }
.product-stage .dialog-media img { max-height: none; object-fit: contain; }

@media (max-width: 1024px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-intro { grid-column: 1 / -1; border-right: 0; padding-left: 0; padding-bottom: 10px; }
  .story-copy { padding-left: 42px; }
  .product-selector { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 900px) {
  .dialog-grid, .contact-overview, .quote-layout { grid-template-columns: 1fr; }
  .dialog-grid { margin-top: -36px; }
  .dialog-copy { padding-top: 0; }
  .process-explorer { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .editorial-head, .story-layout, .facility-editorial { grid-template-columns: 1fr; }
  .editorial-head { gap: 22px; }
  .story-image { margin: 0; min-height: 460px; }
  .story-copy { padding: 54px 0 72px; }
  .product-stage .dialog-grid { grid-template-columns: 1fr; }
  .product-stage .dialog-media { min-height: 400px; }
  .product-stage .dialog-copy { padding: 38px; }
}

@media (max-width: 768px) {
  .gnb[aria-hidden="true"] { visibility: hidden; }
  body.nav-open .gnb { visibility: visible; }
  .fact-grid, .patent-list { grid-template-columns: 1fr; }
  .solution-card { grid-template-columns: 1fr; }
  .solution-card img { height: 210px; }
  .process-panel-media { height: 300px; }
  .page-hero { padding: 72px 0 62px; }
  .anchor-nav { top: var(--header-h); }
  dialog.media-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .dialog-inner { padding: 18px; }
  .dialog-media { min-height: 220px; }
  body { padding-bottom: 68px; }
  .mobile-quote-bar { display: flex; position: fixed; z-index: 85; left: 0; right: 0; bottom: 0; min-height: 60px; padding: 9px 18px; background: rgba(8,28,51,.97); color: #fff; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 -8px 24px rgba(8,28,51,.16); }
  .mobile-quote-bar span { font-size: 13px; color: var(--on-navy); }
  .mobile-quote-bar .btn { flex: none; }
  .back-to-top { right: 16px; bottom: 82px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-top: 1px solid rgba(255,255,255,.12); padding-left: 0; }
  .editorial-products { grid-template-columns: 1fr; grid-template-rows: auto; }
  .editorial-card:first-child { grid-row: auto; min-height: 420px; }
  .editorial-card { min-height: 270px; }
  .product-rail { grid-template-columns: 1fr; }
  .editorial-gallery .card, .editorial-gallery .card:nth-child(n) { grid-column: 1 / -1; }
  .facility-copy-block { padding: 36px; }
  .product-selector { grid-template-columns: 1fr 1fr; }
  .product-stage .dialog-media { min-height: 320px; }
}

@media (max-width: 560px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section-actions, .hero-actions { align-items: stretch; }
  .section-actions .btn, .hero-actions .btn { width: 100%; }
  .filter-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-button:first-child { grid-column: 1 / -1; }
  .contact-list div { grid-template-columns: 76px 1fr; }
  .quote-form, .quote-summary { padding: 22px; }
  .process-panel-media { height: 250px; }
  .dialog-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-v2 .hero-content { padding: 88px 0 102px; }
  .hero-v2 .hero-title { font-size: 2.35rem; }
  .hero-caption { left: 18px; right: 18px; }
  .facility-mosaic { grid-template-columns: 1fr; }
  .facility-mosaic figure:first-child { grid-column: auto; }
  .facility-mosaic figure, .facility-mosaic figure:first-child { min-height: 260px; }
  .product-selector { grid-template-columns: 1fr; }
  .product-stage .dialog-copy { padding: 26px; }
}
