/* =========================================================
   POSCO TOWER SONGDO — common styles
   Foundations: Pretendard(KR) / Jost(EN·숫자)
   Breakpoints: 1920(기준) · 1280 · 1024 · 768 · 375
   ========================================================= */
/* Jost: app/assets/fonts/jost (@fontsource-variable/jost 5.2.8, SIL OFL 1.1). 외부 글꼴 서버를 쓰지 않으려고 직접 제공한다 */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/jost/jost-latin-ext-wght-normal-92e36b28.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/jost/jost-latin-wght-normal-cf30ff04.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --blue: #05507d;
  --navy: #003a5d;
  --sand: #f2f1ed;
  --text: #1d2224;
  --muted: #4b5151;
  --border: #dcdcd8;
  --silver: #8a8d8f;
  --light-blue: #00a5e5;
  --white: #fff;

  --font-kr: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-en: "Jost", var(--font-kr);

  /* layout */
  --inner: 1260px;
  --gutter: 330px;            /* 1920 기준 좌우 여백 */
  --sec-pad: 120px;           /* 섹션 상하 패딩 */
  --sec-pad-s: 90px;
  --header-h: 112px;
  --menu-box-w: 168px;

  /* type */
  --fs-hero: 45px;
  --fs-h2: 42px;              /* 섹션 타이틀 */
  --fs-h3: 30px;              /* 카드 타이틀 */
  --fs-eyebrow: 20px;
  --fs-fact: 36px;
}

@media (max-width: 1919px) { :root { --gutter: max(80px, calc((100vw - var(--inner)) / 2)); } }
@media (max-width: 1420px) { :root { --gutter: 80px; --sec-pad: 90px; --sec-pad-s: 72px; --header-h: 96px; --menu-box-w: 120px; --fs-hero: 34px; --fs-h2: 38px; } }
@media (max-width: 1279px) { :root { --gutter: 64px; --fs-hero: 38px; --fs-h2: 36px; --fs-h3: 26px; --fs-fact: 32px; } }
@media (max-width: 1023px) { :root { --gutter: 48px; --sec-pad: 80px; --sec-pad-s: 64px; --header-h: 72px; --menu-box-w: 72px; --fs-hero: 34px; --fs-h2: 36px; --fs-h3: 24px; --fs-eyebrow: 16px; } }
@media (max-width: 767px)  { :root { --gutter: 24px; --sec-pad: 64px; --sec-pad-s: 48px; --header-h: 60px; --menu-box-w: 60px; --fs-hero: 22px; --fs-h2: 24px; --fs-h3: 20px; --fs-eyebrow: 14px; --fs-fact: 24px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: var(--font-kr); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; word-break: keep-all; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
.en { font-family: var(--font-en); }
.blind { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--blue); color: #fff; padding: 12px 20px; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 2px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; }

.inner { width: min(var(--inner), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.br-pc { display: inline; }
@media (max-width: 767px) { .br-pc { display: none; } }

/* ---------- typography helpers ---------- */
.eyebrow { font-family: var(--font-en); font-weight: 500; font-size: var(--fs-eyebrow); line-height: 1.6; color: var(--blue); text-transform: none; }
.sec-title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.sec-title.bold { font-weight: 700; }
.desc { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- buttons ---------- */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 32px; border-radius: 9999px;
  border: 1px solid var(--silver); color: var(--text); font-size: 16px; font-weight: 500;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-line:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-line.sm { height: 44px; padding: 0 24px; }
.btn-glass {
  display: inline-flex; align-items: center; height: 48px; padding: 0 28px; border-radius: 9999px;
  background: rgba(255,255,255,.5); color: #fff; font-weight: 500;
  backdrop-filter: blur(6px); transition: background .25s, color .25s;
}
.btn-glass:hover { background: #fff; color: var(--blue); }
.btn-circle {
  width: 48px; height: 48px; border-radius: 9999px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 18px;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-circle.is-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-circle:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-circle:disabled { opacity: .35; cursor: default; }

/* =========================================================
   HEADER / GNB  (Type=Overlay → 스크롤 시 Solid)
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: stretch; padding-left: 64px;
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.22); }
.header__logo { display: flex; align-items: center; flex: none; }
.header__logo img { width: 155px; height: auto; }
.header__logo .logo-color { display: none; }
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb__list { display: flex; gap: 43px; height: 100%; }
.gnb__item { position: relative; display: flex; align-items: center; }
.gnb__link {
  position: relative; display: flex; align-items: center; height: 100%;
  font-family: var(--font-en); font-weight: 500; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.9); transition: color .2s;
}
.gnb__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.gnb__item.is-current .gnb__link { color: #fff; }
.gnb__item.is-current .gnb__link::after { transform: scaleX(1); }
.header.is-section:not(.is-solid):not(.is-open) .gnb__item:not(.is-current) .gnb__link { color: rgba(255,255,255,.72); }

/* 서브메뉴 (mega bar) */
.gnb__sub {
  position: fixed; left: 0; right: 0; top: var(--header-h); height: 72px; background: #fff;
  border-top: 1px solid var(--border); display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.gnb__sub ul { position: absolute; display: flex; gap: 44px; height: 100%; }
.gnb__sub a { position: relative; display: flex; align-items: center; height: 100%; font-size: 17px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.gnb__sub a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.gnb__sub a:hover, .gnb__sub a:focus-visible, .gnb__sub a.is-current { color: var(--blue); font-weight: 600; }
.gnb__sub a:hover::after, .gnb__sub a:focus-visible::after { transform: scaleX(1); }
.gnb__item.is-open .gnb__sub { opacity: 1; visibility: visible; }

.header__dim { position: fixed; inset: var(--header-h) 0 0 0; background: transparent; /* 서브메뉴 열릴 때 깔리던 블루 레이어 제거 (마우스가 내려오면 메뉴를 닫는 영역 역할만 유지) */ opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: -1; }
.header.is-open .header__dim { opacity: 1; visibility: visible; }

.menu-box { flex: none; width: var(--menu-box-w); background: #fff; display: grid; place-items: center; color: var(--text); transition: background .3s, color .3s; }
.menu-box__icon { width: 32px; height: 24px; position: relative; }
.menu-box__icon i { position: absolute; left: 1px; height: 3px; background: currentColor; transition: width .25s; }
.menu-box__icon i:nth-child(1) { top: 3px; width: 30px; }
.menu-box__icon i:nth-child(2) { top: 11px; width: 20px; }
.menu-box__icon i:nth-child(3) { top: 19px; width: 30px; }
.menu-box:hover .menu-box__icon i:nth-child(2) { width: 30px; }

/* solid 상태: 스크롤 / 마우스오버 */
.header.is-solid, .header.is-open { background: #fff; color: var(--text); }
.header.is-solid::after, .header.is-open::after { background: var(--border); }
.header.is-solid .logo-white, .header.is-open .logo-white { display: none; }
.header.is-solid .logo-color, .header.is-open .logo-color { display: block; }
.header.is-solid .gnb__link, .header.is-open .gnb__link { color: var(--text); }
.header.is-solid .gnb__item.is-current .gnb__link, .header.is-open .gnb__item.is-open .gnb__link { color: var(--blue); }
.header.is-open .gnb__item.is-open .gnb__link::after { transform: scaleX(1); }
.header.is-open .gnb__item:not(.is-open) .gnb__link::after { transform: scaleX(0); }
.header.is-solid .menu-box, .header.is-open .menu-box { background: var(--blue); color: #fff; }

@media (max-width: 1420px) {
  .header { padding-left: 48px; }
  .header__logo img { width: 130px; }
  .gnb__list { gap: 32px; }
  .gnb__link { font-size: 18px; }
}
@media (max-width: 1023px) {
  .header { padding-left: var(--gutter); }
  .header__logo img { width: 110px; }
  .gnb, .header__dim { display: none; }
  .header__logo { margin-right: auto; }
  .menu-box__icon { transform: scale(.8); }
}
@media (max-width: 767px) { .header__logo img { width: 92px; } .menu-box__icon { transform: scale(.7); } }

/* =========================================================
   SITEMAP (전체메뉴)
   ========================================================= */
.sitemap {
  position: fixed; inset: 0; z-index: 200; background: var(--navy); color: #fff;
  display: grid; grid-template-columns: 640px 1fr; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.sitemap.is-open { opacity: 1; visibility: visible; }
.sitemap__visual { position: relative; overflow: hidden; background: var(--navy); }
.sitemap__slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 6s linear; }
.sitemap__slide.is-active { opacity: 1; transform: scale(1); }
.sitemap__dots { position: absolute; z-index: 1; left: 64px; bottom: 56px; display: flex; gap: 6px; }
.sitemap__dots i { width: 24px; height: 2px; background: rgba(255,255,255,.35); transition: background .4s, width .4s; }
.sitemap__dots i.is-active { width: 40px; background: #fff; }
.sitemap__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,58,93,.45) 0%, rgba(0,58,93,0) 22%, rgba(0,58,93,0) 70%, rgba(0,58,93,.6) 100%); }
.sitemap__logo { position: absolute; z-index: 1; left: 64px; top: 31px; width: 155px; }
.sitemap__close { position: absolute; z-index: 3; right: 0; top: 0; width: var(--menu-box-w); height: var(--header-h); background: #fff; color: var(--text); display: grid; place-items: center; font-size: 32px; transition: background .25s, color .25s; }
.sitemap__close:hover { background: var(--blue); color: #fff; }
.sitemap__body { display: flex; flex-direction: column; justify-content: center; padding: 120px 64px 64px 80px; overflow-y: auto; }
.sitemap__nav { border-top: 1px solid rgba(255,255,255,1); max-width: 1136px; }
.sitemap__row { display: grid; grid-template-columns: 64px 440px 1fr; align-items: center; min-height: 150px; padding: 40px 0; border-bottom: 1px solid #fff; transform: translateY(20px); opacity: 0; transition: transform .5s, opacity .5s; }
.sitemap.is-open .sitemap__row { transform: none; opacity: 1; }
.sitemap.is-open .sitemap__row:nth-child(2) { transition-delay: .06s; }
.sitemap.is-open .sitemap__row:nth-child(3) { transition-delay: .12s; }
.sitemap.is-open .sitemap__row:nth-child(4) { transition-delay: .18s; }
.sitemap__num { font-family: var(--font-en); font-weight: 500; font-size: 17px; color: var(--light-blue); }
.sitemap__title { font-family: var(--font-en); font-size: 48px; line-height: 1.4; font-weight: 400; }
.sitemap__title:hover { color: var(--light-blue); }
.sitemap__sub { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.sitemap__sub a { font-size: 18px; color: rgba(255,255,255,.72); transition: color .2s; }
.sitemap__sub a:hover, .sitemap__sub a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.sitemap__foot { display: flex; gap: 40px; margin-top: 64px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); }
.sitemap__foot a:hover { color: #fff; }
body.is-locked { overflow: hidden; }
@media (max-width: 1420px) {
  .sitemap { grid-template-columns: 420px 1fr; }
  .sitemap__row { grid-template-columns: 56px 320px 1fr; min-height: 120px; padding: 28px 0; }
  .sitemap__title { font-size: 40px; }
}
@media (max-width: 1023px) {
  .sitemap { grid-template-columns: 1fr; }
  .sitemap__visual { display: none; }
  .sitemap__body { justify-content: flex-start; padding: calc(var(--header-h) + 32px) var(--gutter) 48px; }
  .sitemap__row { grid-template-columns: 48px 1fr; min-height: 0; padding: 24px 0; row-gap: 12px; }
  .sitemap__sub { grid-column: 2; gap: 8px 24px; }
  .sitemap__title { font-size: 32px; }
  .sitemap__sub a { font-size: 16px; }
}
@media (max-width: 767px) { .sitemap__title { font-size: 26px; } .sitemap__row { grid-template-columns: 36px 1fr; } .sitemap__num { font-size: 14px; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: #fff; }
.footer__inner { min-height: 240px; padding: 48px 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.footer__links { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__left { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer__leed { width: 64px; height: 64px; opacity: .9; } /* LEED Platinum 인증 로고 */
.footer__logo img { width: 186px; }
.footer__info { justify-self: end; width: 360px; text-align: right; font-size: 14px; line-height: 1.2; color: rgba(255,255,255,.78); display: grid; gap: 6px; }
.footer__info a { color: inherit; }
@media (max-width: 1420px) { .footer__inner { padding: 48px var(--gutter); } }
@media (max-width: 1023px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 24px; padding: 48px var(--gutter); }
  .footer__logo { order: -1; justify-self: center; } /* 타블렛: 로고만 가운데 */
  .footer__logo img { width: 150px; }
  .footer__info { justify-self: start; width: auto; text-align: left; line-height: 1.5; gap: 2px; }
  .footer__links { flex-direction: row; gap: 24px; }
}
/* 모바일: 피그마 Footer / Mobile처럼 로고·링크·주소 모두 가운데 정렬 */
@media (max-width: 767px) {
  .footer__inner { justify-items: center; text-align: center; gap: 20px; padding: 40px var(--gutter) 48px; }
  .footer__logo img { width: 140px; }
  .footer__links { justify-content: center; gap: 20px; font-size: 14px; font-weight: 600; }
  .footer__links a + a { font-weight: 400; }
  .footer__info { justify-self: center; text-align: center; font-size: 13px; }
  .footer__left { align-items: center; gap: 16px; }
  .footer__leed { width: 56px; height: 56px; }
}

/* top button */
.btn-top {
  position: fixed; right: 48px; bottom: 48px; z-index: 90; width: 56px; height: 56px; border-radius: 9999px;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background .2s;
  box-shadow: 0 8px 24px rgba(0,58,93,.25);
}
.btn-top.is-show { opacity: 1; visibility: visible; transform: none; }
.btn-top:hover { background: var(--navy); }
@media (max-width: 767px) { .btn-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* video modal (공통) */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,20,38,.88); display: grid; place-items: center; padding: 64px var(--gutter); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(1260px, 100%); aspect-ratio: 16/9; background: #000; }
.modal__box video, .modal__box img { width: 100%; height: 100%; object-fit: cover; }
.modal__close { position: absolute; right: 0; top: -56px; width: 44px; height: 44px; color: #fff; font-size: 28px; display: grid; place-items: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (min-width: 1024px) {
  .sitemap__body { position: relative; }
  .sitemap__foot { position: absolute; left: 80px; bottom: 64px; margin: 0; }
}
[hidden] { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 400; transform: translate(-50%, 20px); padding: 14px 24px; background: var(--text); color: #fff; border-radius: 9999px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
