@font-face {
  font-family: "Noto Sans KR";
  src: url("NotoSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("NotoSansKR-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Gmarket Sans";
  src: url("GmarketSansBold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "stm";
  src: url("SUIT-Medium-Landing.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "stb";
  src: url("SUIT-Bold-Landing.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "xeicon";
  src: url("XEIcon-Lock-Landing.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.xi-lock-o {
  display: inline-block;
  font-family: "xeicon";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.xi-lock-o::before { content: "\e966"; }

:root {
  --blue: #1693f4;
  --dark: #131313;
  --panel: #1d1d1d;
  --wrap: 1200px;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #fff;
  background: var(--dark);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
html.fix { overflow: hidden; }
body, h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
body { min-width: 320px; background: var(--dark); color: #fff; -webkit-font-smoothing: antialiased; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }
.wrap { position: relative; width: var(--wrap); margin: 0 auto; }
.shd { overflow: hidden; border-radius: 16px; box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2); }
.cp { color: var(--blue); }
.mtitle { font-family: "Gmarket Sans", "Noto Sans KR", sans-serif; font-size: 36px; line-height: 1.4; }

.more {
  display: inline-flex;
  width: 180px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--blue);
  border-radius: 50px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.more:hover, .more:focus-visible { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* 기존 완성본 헤더 */
#w_header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 80px;
  overflow: hidden;
  color: #fff;
  transition: height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

#w_header.fix, #w_header.down {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(19, 19, 19, 0.98);
}

#w_header.down { height: 320px; }
#w_header .wrap { width: min(calc(100% - 40px), 1400px); height: 100%; }
.site-logo { position: absolute; top: 23px; left: 0; z-index: 2; }
.site-logo img { width: 145px; height: auto; }
.site-nav { height: 100%; }

#w_gnb {
  display: flex;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding-top: 26px;
}

#w_gnb > li { flex: 0 0 170px; text-align: center; }
#w_gnb > li > a { display: inline-block; font-size: 18px; font-weight: 700; }
#w_gnb > li > a::after {
  display: block;
  width: 100%;
  margin-top: 22px;
  border-top: 2px solid var(--blue);
  content: "";
  opacity: 0;
  transition: opacity 0.25s ease;
}

#w_gnb > li:hover > a::after,
#w_gnb > li:focus-within > a::after,
#w_gnb > li.select > a::after { opacity: 1; }
#w_gnb > li > ul { padding-top: 20px; }
#w_gnb > li > ul a { display: block; min-height: 40px; font-size: 14px; line-height: 40px; color: #d6d6d6; }
#w_gnb > li > ul a:hover, #w_gnb > li > ul a:focus-visible { color: var(--blue); }

.lang {
  position: absolute;
  top: 21px;
  right: 0;
  width: 184px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
}

.lang::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 30px;
  content: "LANGUAGE";
  font-size: 13px;
  line-height: 30px;
  text-align: center;
}

.lang::after { position: absolute; top: 0; left: 111px; height: 30px; content: "|"; font-size: 15px; line-height: 29px; }
.lang select {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 30px;
  padding: 0 18px 1px 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.lang option { background: #176fc8; color: #fff; }
#nav_btn { display: none; }

/* 기존 메인 화면에 지정 변경만 반영 */
#main {
  display: flow-root;
  min-height: 1134px;
  padding-bottom: 0;
  background-color: #0d515f;
  background-image: linear-gradient(90deg, rgba(0, 34, 45, 0.22), rgba(0, 34, 45, 0) 62%), url("../image/2367a9cae043-bg_main1.png");
  background-image: linear-gradient(90deg, rgba(0, 34, 45, 0.22), rgba(0, 34, 45, 0) 62%), image-set(
    url("bg-main-original.webp") type("image/webp"),
    url("../image/2367a9cae043-bg_main1.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
  color: #fff;
}

.hero-copy { width: min(calc(100% - 40px), 1400px); }

#main h1 {
  max-width: 680px;
  padding-top: 210px;
  font-family: "Gmarket Sans", "Noto Sans KR", sans-serif;
  font-size: 46px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

#main .hero-copy > p { margin-top: 24px; font-size: 20px; }
.hero-company { margin-top: 34px; }
.hero-company, .product-strip-heading .more { background: rgba(19, 19, 19, 0.18); }
.hero-company:hover, .hero-company:focus-visible,
.product-strip-heading .more:hover, .product-strip-heading .more:focus-visible { background: var(--blue); }
.product-strip { width: min(calc(100% - 40px), 1400px); margin-top: 100px; }
.product-strip-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.product-strip-heading .mtitle { font-size: 26px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 0; }
.product-grid > li { position: relative; height: 368px; overflow: hidden; background: #252525; }
.product-grid > li::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #36b4ff 0%, #1285dc 48%, #032f66 100%);
  content: "";
  opacity: 0;
  transition: opacity 0.45s ease;
}
.product-grid > li > a { position: relative; display: block; height: 100%; overflow: hidden; }
.product-image { position: absolute; inset: 0; }
.product-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 29, 29, 0.08) 10%, rgba(29, 29, 29, 0.82) 88%); content: ""; opacity: 1; transition: opacity 0.45s ease; }
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(-45deg) scale(1.42);
  filter: brightness(0.90) saturate(0.95);
  transition: transform 0.55s ease, filter 0.45s ease;
}

.product-grid > li:nth-child(2) .product-image img { transform: rotate(0deg) scale(1.042944); }
.product-grid > li:nth-child(3) .product-image img { transform: translateY(12px) rotate(-3deg) scale(1.12); }
.product-grid > li:nth-child(4) .product-image img { transform: rotate(-48deg) scale(1.246); }
.product-copy { position: absolute; right: 20px; bottom: 20px; left: 20px; z-index: 2; display: grid; gap: 6px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); }
.product-copy strong { font-size: 20px; }
.product-copy > span { color: #d1d1d1; font-size: 14px; line-height: 1.55; }
.product-grid > li:hover::before,
.product-grid > li:focus-within::before { opacity: 1; }
.product-grid > li:hover .product-image::after,
.product-grid > li:focus-within .product-image::after { opacity: 0; }
.product-grid > li:hover .product-image img,
.product-grid > li:focus-within .product-image img { filter: brightness(1) saturate(1); transform: rotate(-45deg) scale(1.562); }
.product-grid > li:nth-child(2):hover .product-image img,
.product-grid > li:nth-child(2):focus-within .product-image img { transform: rotate(0deg) scale(1.1472384); }
.product-grid > li:nth-child(3):hover .product-image img,
.product-grid > li:nth-child(3):focus-within .product-image img { transform: translateY(12px) rotate(-3deg) scale(1.232); }
.product-grid > li:nth-child(4):hover .product-image img,
.product-grid > li:nth-child(4):focus-within .product-image img { transform: rotate(-48deg) scale(1.3706); }

/* 기존 섹션 체계 */
#reports, #pf, #contact { background: var(--dark); color: #fff; }
#reports { padding: 144px 0 80px; }
#reports > .wrap > .cp, #pf > .wrap > .cp { margin-top: 10px; }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 60px; }
.report-grid > li:nth-child(n + 4) { display: none; }
.report-grid figure { aspect-ratio: 380 / 460; background: #fff; }
.report-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.66);
  transition: transform 0.55s ease, filter 0.45s ease;
}

.report-grid dl { display: flex; flex-direction: column; margin-top: 28px; }
.report-grid dt { min-height: 58px; font-size: 18px; font-weight: 400; line-height: 1.7; }
#pf dt::after {
  display: block;
  width: 30px;
  margin: 18px 0 10px;
  border-top: 2px solid var(--blue);
  content: "";
  transition: width 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-grid dd { order: -1; margin-bottom: 8px; color: var(--blue); font-size: 14px; }
.report-grid a:hover figure img, .report-grid a:focus-visible figure img { filter: brightness(1); transform: scale(1.035); }
#reports > .wrap > .more { width: 200px; margin-top: 60px; }

#pf { padding: 144px 0 80px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; margin-top: 60px; }
#pf figure { position: relative; overflow: hidden; aspect-ratio: 581 / 342; border-radius: 30px; background: #0b0b0b; }
#pf figure::after { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(6, 13, 20, 0.12), rgba(5, 11, 18, 0.04)); content: ""; transition: opacity 0.45s ease; }
#pf figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: brightness(0.72) saturate(0.92) contrast(1.03); transition: transform 0.55s ease, filter 0.45s ease; }
#pf dl { margin-top: 40px; }
#pf dt { font-size: 20px; font-weight: 700; }
#pf .pf-card:hover figure::after, #pf .pf-card:focus-visible figure::after { opacity: 0; }
#pf .pf-card:hover figure img, #pf .pf-card:focus-visible figure img { transform: scale(1.08); filter: none; }
#pf .pf-card:hover dt::after, #pf .pf-card:focus-visible dt::after { width: 48px; }
#pf > .wrap > .more { margin-top: 60px; }

#contact { padding: 144px 0 160px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.contact-grid > li { position: relative; height: 340px; padding: 30px 20px; background: var(--panel); }
.contact-grid > li > .cp { margin-top: 10px; }
.contact-grid > li > .more { position: absolute; bottom: 30px; left: 20px; }
.contact-details { position: absolute; right: 20px; bottom: 30px; left: 20px; padding-left: 88px; font-size: 14px; line-height: 1.8; }
.contact-details li { position: relative; }
.contact-details .cp { position: absolute; left: -88px; font-weight: 700; }
html[lang="ko"] .contact-details li:last-child { line-height: 1.45; }

#w_footer { padding: 60px 0; background: #000; color: #999; }
#w_footer .wrap { width: min(calc(100% - 40px), 1400px); }
#w_footer img { position: absolute; top: 0; left: 0; width: 145px; }
#w_footer address { padding-left: 240px; font-style: normal; font-size: 14px; line-height: 1.8; }

@keyframes product-arrive {
  from { clip-path: inset(0 100% 0 0 round 16px); filter: blur(4px); }
  to { clip-path: inset(0 0 0 0 round 16px); filter: blur(0); }
}

.is-ready .product-grid { animation: product-arrive 0.76s cubic-bezier(.16, 1, .3, 1) both; }

@media (max-width: 1240px) {
  .wrap { width: calc(100% - 48px); }
}

@media (max-width: 800px) {
  .wrap { width: 94%; }
  .mtitle { font-size: 24px; }
  #w_header { height: 60px; }
  #w_header.down { height: 100dvh; overflow-y: auto; }
  #w_header .wrap { width: 94%; }
  .site-logo { top: 17px; }
  .site-logo img { width: auto; height: 26px; }
  .site-nav { width: 100vw; margin-left: -3vw; }
  #w_gnb { display: block; width: 260px; height: auto; margin: 60px auto 0; padding-top: 0; }
  #w_gnb > li { width: 220px; margin: 0 auto; border-bottom: 1px solid #ddd; }
  #w_gnb > li > a { position: relative; display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; font-size: 20px; }
  #w_gnb > li:not(.single-item) > a::after {
    position: absolute;
    top: 18px;
    left: calc(50% + 44px);
    width: 7px;
    height: 7px;
    margin: 0;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 1;
  }
  #w_gnb > li.select > a::after { transform: rotate(-135deg); }
  #w_gnb > li > ul { display: none; padding: 0 0 14px; }
  #w_gnb > li > ul a { min-height: 40px; line-height: 40px; }
  .lang { position: relative; top: auto; right: auto; width: 230px; height: 34px; margin: 18px auto 24px; border-radius: 17px; }
  .lang::before { width: 137px; height: 32px; line-height: 32px; }
  .lang::after { left: 136px; height: 32px; line-height: 31px; }
  .lang select { width: 93px; height: 32px; }
  #nav_btn { position: absolute; top: 12px; right: 0; display: block; width: 42px; height: 42px; padding: 3px 6px; border: 0; background: transparent; cursor: pointer; }
  #nav_btn .line { display: block; width: 30px; height: 2px; margin: 8px auto; background: #fff; transition: transform 0.3s ease, opacity 0.3s ease; }
  #nav_btn.act .line:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  #nav_btn.act .line:nth-child(2) { opacity: 0; }
  #nav_btn.act .line:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  #main {
    min-height: 960px;
    padding-bottom: 30px;
    background-image: url("../image/2367a9cae043-bg_main1.png");
    background-image: image-set(
      url("bg-main-mobile.webp") type("image/webp"),
      url("../image/2367a9cae043-bg_main1.png") type("image/png")
    );
    background-position: 57% top;
    background-size: auto 100%;
  }
  #main .hero-copy { text-align: center; }
  #main h1 { padding-top: 150px; font-size: 26px; }
  #main .hero-copy > p { margin-top: 14px; font-size: 16px; }
  .hero-company { width: 126px; margin-top: 16px; }
  .product-strip { margin-top: 78px; }
  .product-strip-heading { align-items: center; transform: translateY(4px); }
  .product-strip-heading .mtitle { font-size: 18px; }
  .product-strip-heading .more { width: 126px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
  .product-grid > li { height: 220px; }
  .product-grid > li::before { opacity: 1; }
  .product-image::after { opacity: 0; }
  .product-image img { filter: brightness(1) saturate(1); transform: rotate(-45deg) scale(1.562); }
  .product-grid > li:nth-child(2) .product-image img { transform: rotate(0deg) scale(1.1018); }
  .product-grid > li:nth-child(3) .product-image img { transform: translateY(12px) rotate(-3deg) scale(1.232); }
  .product-grid > li:nth-child(4) .product-image img { transform: rotate(-48deg) scale(1.2630); }
  .product-copy { right: 12px; bottom: 13px; left: 12px; }
  .product-copy strong { font-size: 16px; }
  .product-copy > span { font-size: 11px; }
  #reports, #pf { padding: 60px 0; }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; margin-top: 40px; }
  .report-grid > li:nth-child(4) { display: block; }
  .report-grid figure { width: min(100%, 460px); margin: 0 auto; }
  .report-grid figure img { filter: brightness(1); transform: scale(1.035); }
  #reports > .wrap > .more,
  #pf > .wrap > .more { display: flex; margin-right: auto; margin-left: auto; }
  .report-grid dt { min-height: 0; font-size: 17px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  #pf figure { border-radius: 14px; }
  #pf figure::after { opacity: 0; }
  #pf figure img { filter: brightness(1) saturate(1.03) contrast(1.02); }
  #pf dl { margin-top: 20px; }
  #pf dt { font-size: 16px; }
  #contact { padding: 60px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid > li { height: auto; min-height: 0; padding: 20px 10px; font-size: 13px; line-height: 1.6; }
  .contact-grid > li > .more { position: static; margin-top: 20px; }
  .contact-details { position: relative; right: auto; bottom: auto; left: 0; margin-top: 20px; padding-left: 60px; font-size: 13px; line-height: 1.6; }
  .contact-details .cp { left: -60px; }
  #w_footer { padding: 60px 0 40px; }
  #w_footer .wrap { width: 94%; }
  #w_footer img { display: none; }
  #w_footer address { padding: 0; font-size: 12px; line-height: 2; text-align: center; }
}

@media (max-width: 390px) {
  .product-grid > li { height: 260px; }
  .product-copy strong { font-size: 14px; }
  .product-copy > span { font-size: 10px; }
}

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

  .product-grid > li::before,
  .product-image::after {
    transition: opacity 0.45s ease !important;
  }

  .product-image img {
    transition: transform 0.55s ease, filter 0.45s ease !important;
  }

  .report-grid figure img,
  #pf figure img {
    transition: transform 0.55s ease, filter 0.45s ease !important;
  }

  #pf figure::after {
    transition: opacity 0.45s ease !important;
  }

  #pf dt::after {
    transition: width 0.48s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

/* Existing site shell override: preserve the original header and footer design. */
.mob { display: none !important; }
/* header & footer */
#w_header { position: fixed; left: 0; top: 0; width: 100%; z-index: 99; transition:0.3s; height: 80px; overflow: hidden; color:#fff; }
#w_header .wrap { width: 1400px; }
#w_header.fix, #w_header.down { background:#131313; border-bottom:1px solid #ddd; }
#w_header.down { height: 320px; }

#w_header h1, #w_header .site-logo { position: absolute; left: 0; top:23px; z-index:1; }
#w_header .site-logo { margin:0; }

#w_header #w_gnb { align-items: flex-start; text-align: center; padding-top: 26px; }
#w_header #w_gnb > li:first-child { margin-left: 40px; }
#w_header #w_gnb > li > a { padding:0 40px; font-size:18px; font-family: stb; display: inline-block; }
#w_header #w_gnb > li > a:after { content:""; border-top:2px solid #1693f4; width:100%; display: block; margin-top:22px; opacity: 0; }
#w_header #w_gnb > li.select > a:after { opacity: 1; }
#w_header #w_gnb ul { padding-top: 20px; }
#w_header #w_gnb ul li { line-height: 40px; }

#w_header .lang { position:absolute; right:calc((1400px - 100vw) / 4 + 12px); top:21px; z-index:1; width:184px; height:32px; box-sizing:border-box; border:1px solid rgba(255,255,255,0.9); border-radius:16px; }
#w_header .lang:before { content:"LANGUAGE"; position:absolute; left:0; top:0; width:112px; height:30px; color:#fff; font:13px/30px stm; letter-spacing:0; text-align:center; }
#w_header .lang:after { content:"|"; position:absolute; left:111px; top:0; height:30px; color:#fff; font:15px/29px stm; }
#w_header .lang select { position:absolute; right:0; top:0; width:72px; height:30px; border:0; border-radius:0; appearance:none; -webkit-appearance:none; background:transparent url("data:image/svg+xml,%3Csvg width=%2210%22 height=%226%22 viewBox=%220 0 10 6%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M1 1l4 4 4-4%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.5%22/%3E%3C/svg%3E") no-repeat right 10px center; color:#fff; outline:none; box-sizing:border-box; padding:0 20px 1px 0; font:13px/30px stm; text-align:center; text-align-last:center; cursor:pointer; }#w_header .lang select option { background:#176fc8; color:#fff; }

#w_footer { background: #000; color:#999; padding:60px 0; }
#w_footer .wrap { width: 1400px; }
#w_footer img { position: absolute; left: 0; top: 0; }
#w_footer address { padding-left: 240px; font-style: normal; font-size:14px; }
#w_footer .footer-policy { display:inline-block; margin-left:12px; }
#w_footer .footer-policy:before { content:"|"; margin-right:12px; color:#666; }
#w_footer .footer-policy a { color:#bbb; text-decoration:none; }
#w_footer .footer-policy a:hover { color:#fff; text-decoration:underline; }
#w_footer .w_adm { position:absolute; right:0; bottom:0; color:#666; }
#w_footer .w_adm:hover { color:#fff; }

@media (max-width: 800px) {
  .pc { display: none !important; }
  .mob { display: block !important; }
/* header & footer */
#w_header { height: 60px; }
#w_header .wrap { width: 94%; }
#w_header.down { height: 100vh; height: 100dvh; overflow-y:auto; overscroll-behavior:contain; }
#w_header.down .wrap { min-height:100%; padding-bottom:max(24px, env(safe-area-inset-bottom)); box-sizing:border-box; }

#w_header h1, #w_header .site-logo { position: static; padding-top: 17px; }
#w_header h1 img, #w_header .site-logo img { height: 26px;}

#w_header #w_gnb { display: block; width: 260px; margin:60px auto 0; padding-top: 0;  }
#w_header .site-nav { width:100vw; margin-left:-3vw; }
#w_header #w_gnb > li { width:220px; margin:0 auto; border-top:0; border-bottom:1px solid #ddd; }
#w_header #w_gnb > li:first-child { margin-left:auto; border-top:0; }
#w_header #w_gnb > li:last-child { border-bottom:0; }
#w_header #w_gnb > li > a { position:relative; display:flex; width:100%; padding:0; align-items:center; justify-content:center; font-size:20px; line-height:50px; text-align:center; }
#w_header #w_gnb > li > a:after { position:absolute; top:20px; left:calc(50% + 44px); content:""; display:inline-block; width:7px; height:7px; margin:0; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); opacity:1; transition:transform .2s ease; }
html[lang="en"] #w_header #w_gnb > li > a:after { left:auto; right:0; top:20px; }
#w_header #w_gnb > li.single-item > a { display:flex; width:100%; align-items:center; justify-content:center; text-align:center; }
#w_header #w_gnb > li.single-item > a:after { display:none; }
#w_header #w_gnb > li > a[href*="bo_table=testreport"],
#w_header #w_gnb > li > a[href*="board-test"] { display:flex !important; width:100%; align-items:center; justify-content:center; text-align:center; }
#w_header #w_gnb > li > a[href*="bo_table=testreport"]:after,
#w_header #w_gnb > li > a[href*="board-test"]:after { display:none !important; }
#w_header #w_gnb > li > a[href*="bo_table=testreport"] + ul,
#w_header #w_gnb > li > a[href*="board-test"] + ul { display:none !important; }
#w_header #w_gnb > li.select > a { color:#1693f4;  }
#w_header #w_gnb > li.select > a:after { transform:rotate(-135deg); }
#w_header #w_gnb ul { padding:0 0 14px; display: none; }
#w_header #w_gnb ul li { line-height:40px; border-top:0; font-size:16px;}
#w_header #w_gnb ul li a { display:flex; width:100%; min-height:40px; align-items:center; justify-content:center; text-align:center; }
    
#w_header .lang { position:relative; right:auto; top:auto; width:230px; height:34px; margin:18px auto 0; border:1px solid rgba(255,255,255,0.9); border-radius:17px; background:transparent; }
#w_header .lang:before { content:"LANGUAGE"; position:absolute; left:0; top:0; width:137px; height:32px; color:#fff; font:13px/32px stm; text-align:center; }
#w_header .lang:after { content:"|"; position:absolute; left:136px; top:0; height:32px; color:#fff; font:16px/31px stm; }
#w_header .lang select { position:absolute; right:0; top:0; width:93px; height:32px; box-sizing:border-box; border:0; border-radius:17px; background:transparent url("data:image/svg+xml,%3Csvg width=%2210%22 height=%226%22 viewBox=%220 0 10 6%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M1 1l4 4 4-4%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%221.5%22/%3E%3C/svg%3E") no-repeat right 18px center; color:#fff; padding:0 28px 1px 0; appearance:none; -webkit-appearance:none; font:13px/32px stm; text-align:center; text-align-last:center; cursor:pointer; }
#w_header .lang:focus-within { border-color:#1693f4; box-shadow:0 0 0 2px rgba(22,147,244,0.2); }
#w_header .menu-contact { width:260px; margin:38px auto 0; padding:0 8px; box-sizing:border-box; color:#fff; font:14px/1.8 stm; text-align:center; }
#w_header .menu-contact p { display:flex; align-items:baseline; justify-content:center; gap:8px; margin:0; }
#w_header .menu-contact p span { display:inline-block; width:auto; min-width:42px; color:#bdbdbd; font:13px/1.8 stm; text-align:right; }
#w_header .menu-contact a { display:inline-block; min-height:28px; color:#fff; }
#w_header .menu-contact a:focus-visible { outline:2px solid #1693f4; outline-offset:3px; }

#nav_btn { position:absolute; right:0; top:12px; padding:0; border:0; background:transparent; }
#nav_btn .line{  width: 30px; height: 2px; background-color: #fff; display: block; margin: 8px auto; transition: all 0.3s ease-in-out;}
#nav_btn:hover{ cursor: pointer;}
#nav_btn:focus-visible { outline:2px solid #1693f4; outline-offset:4px; }
#nav_btn.act .line:nth-child(2){ opacity: 0;}
#nav_btn.act .line:nth-child(1){ transform: translateY(10px) rotate(45deg);}
#nav_btn.act .line:nth-child(3){ transform: translateY(-10px) rotate(-45deg);} 
    
#w_footer .wrap { width: 94%; }    
#w_footer { padding:60px 0 40px; }
#w_footer address { padding:0 0 24px; font-size:12px; text-align: center; line-height:2; }
#w_footer .footer-policy { display:inline-block; margin-left:8px; }
#w_footer .footer-policy:before { display:inline; content:"|"; margin-right:8px; }
}


/* Exact subpage shell isolation: landing globals must not alter header/footer. */
#w_header,
#w_footer {
  font-size: 12px;
  font-family: "Malgun Gothic", dotum, sans-serif;
  line-height: normal;
}
#w_header .wrap,
#w_footer .wrap {
  height: auto;
  font: 16px/1.6 stm;
}
#w_header .wrap *,
#w_footer .wrap * { word-break: keep-all; }
#w_header .site-logo img {
  display: inline;
  width: auto;
  height: auto;
  max-width: none;
}
#w_header #w_gnb { height: auto; }
#w_header #w_gnb > li {
  flex: 0 0 170px;
  min-width: 0;
}
#w_header #w_gnb > li > a {
  box-sizing: border-box;
  width: auto;
  padding: 0;
  font: 18px/1.6 stb;
  text-align: center;
}
#w_footer img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}
#w_footer address { font: 14px/1.6 stm; }

@media (max-width: 800px) {
  #w_header,
  #w_footer { font-size: 12px; }
  #w_header .wrap,
  #w_footer .wrap { font: 16px/1.6 stm; }
  #w_header .site-logo img {
    display: inline;
    width: auto;
    height: 26px;
  }
  #w_header #w_gnb > li {
    flex: none;
    width: 220px;
  }
  #w_header #w_gnb > li > a {
    width: 100%;
    font: 20px/50px stb;
  }
  #w_footer address { font: 12px/2 stm; }
}


/* Final subpage header parity fixes. */
#w_header .site-logo { height: 34px; }
#w_header *::before,
#w_header *::after { box-sizing: border-box; }
@media (min-width: 801px) {
  #w_header #w_gnb > li > a::after { transition: all 0s ease 0s; }
}
#w_header #w_gnb ul li a {
  display: inline;
  color: #fff;
  font-size: 16px;
  line-height: 40px;
}

@media (max-width: 800px) {
  #w_header .wrap,
  #w_footer .wrap { font: 13px/1.6 stm; }
  #w_header .site-logo { height: 43px; }
  #w_header #w_gnb ul li a {
    display: flex;
    color: #fff;
    font-size: 16px;
  }
  #nav_btn {
    width: 30px;
    height: 38px;
  }
  #nav_btn .line { margin: 8px 0; }
}


/* English desktop alignment: preserve Korean hero coordinates and equalize menu gaps. */
@media (min-width: 801px) {
  html[lang="en"] #w_header #w_gnb { gap: 68px; }
  html[lang="en"] #w_header #w_gnb > li { min-width: 0; }
  html[lang="en"] #w_header #w_gnb > li:nth-child(1) { flex: 0 0 82px; margin-left: 80px; }
  html[lang="en"] #w_header #w_gnb > li:nth-child(2) { flex: 0 0 77px; }
  html[lang="en"] #w_header #w_gnb > li:nth-child(3) { flex: 0 0 109px; }
  html[lang="en"] #w_header #w_gnb > li:nth-child(4) { flex: 0 0 110px; }
  html[lang="en"] #w_header #w_gnb > li:nth-child(5) { flex: 0 0 154px; }
  html[lang="en"] #w_header #w_gnb > li > ul {
    width: 170px;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  html[lang="en"] #main h1 {
    white-space: nowrap;
    font-size: 40px;
    line-height: 64.4px;
  }
}


/* English mobile hero: two lines at the same vertical rhythm as Korean. */
@media (max-width: 800px) {
  html[lang="en"] #main h1 {
    white-space: nowrap;
    font-size: clamp(18px, 5.18vw, 22px);
    line-height: 36.4px;
    letter-spacing: -0.04em;
  }
}
/* Tablet header: keep the desktop content layout while preventing the fixed
   desktop navigation from overflowing before the mobile breakpoint. */
@media (min-width: 801px) and (max-width: 1100px) {
  .mob { display: block !important; }

  #w_header { height: 60px; }
  #w_header .wrap { width: calc(100% - 48px); }
  #w_header.down { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  #w_header.down .wrap { min-height: 100%; padding-bottom: max(24px, env(safe-area-inset-bottom)); box-sizing: border-box; }
  #w_header h1,
  #w_header .site-logo { position: static; padding-top: 17px; }
  #w_header .site-logo { height: 43px; }
  #w_header h1 img,
  #w_header .site-logo img { width: auto; height: 26px; }

  #w_header .site-nav { width: 100vw; margin-left: -24px; }
  #w_header #w_gnb { display: block; width: 260px; margin: 60px auto 0; padding-top: 0; gap: 0; }
  #w_header #w_gnb > li,
  html[lang="en"] #w_header #w_gnb > li { flex: none; width: 220px; margin: 0 auto; border-top: 0; border-bottom: 1px solid #ddd; }
  #w_header #w_gnb > li:first-child,
  html[lang="en"] #w_header #w_gnb > li:first-child { margin-left: auto; border-top: 0; }
  #w_header #w_gnb > li:last-child { border-bottom: 0; }
  #w_header #w_gnb > li > a { position: relative; display: flex; width: 100%; padding: 0; align-items: center; justify-content: center; font: 20px/50px stb; text-align: center; }
  #w_header #w_gnb > li > a::after { position: absolute; top: 20px; left: calc(50% + 44px); display: inline-block; width: 7px; height: 7px; margin: 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 1; }
  html[lang="en"] #w_header #w_gnb > li > a::after { right: 0; left: auto; }
  #w_header #w_gnb > li.single-item > a::after,
  #w_header #w_gnb > li > a[href*="bo_table=testreport"]::after { display: none; }
  #w_header #w_gnb > li > a[href*="bo_table=testreport"] + ul { display: none !important; }
  #w_header #w_gnb > li.select > a { color: #1693f4; }
  #w_header #w_gnb > li.select > a::after { transform: rotate(-135deg); }
  #w_header #w_gnb ul { display: none; padding: 0 0 14px; }
  #w_header #w_gnb ul li { line-height: 40px; font-size: 16px; }
  #w_header #w_gnb ul li a { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; color: #fff; font-size: 16px; text-align: center; }

  #w_header .lang { position: relative; top: auto; right: auto; width: 230px; height: 34px; margin: 18px auto 0; border-radius: 17px; background: transparent; }
  #w_header .lang::before { width: 137px; height: 32px; font: 13px/32px stm; }
  #w_header .lang::after { left: 136px; height: 32px; font: 16px/31px stm; }
  #w_header .lang select { width: 93px; height: 32px; padding: 0 28px 1px 0; background-position: right 18px center; font: 13px/32px stm; }
  #w_header .menu-contact { width: 260px; margin: 38px auto 0; padding: 0 8px; box-sizing: border-box; color: #fff; font: 14px/1.8 stm; text-align: center; }
  #w_header .menu-contact p { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0; }
  #w_header .menu-contact p span { min-width: 42px; color: #bdbdbd; font: 13px/1.8 stm; text-align: right; }
  #w_header .menu-contact a { display: inline-block; min-height: 28px; color: #fff; }

  #nav_btn { position: absolute; top: 12px; right: 0; width: 30px; height: 38px; padding: 0; border: 0; background: transparent; }
  #nav_btn .line { display: block; width: 30px; height: 2px; margin: 8px 0; background-color: #fff; transition: all 0.3s ease-in-out; }
  #nav_btn.act .line:nth-child(2) { opacity: 0; }
  #nav_btn.act .line:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  #nav_btn.act .line:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  #w_footer .wrap { width: calc(100% - 48px); }
}
