/* ============================================================
 * Sustainability — high-end B2B hub.
 * Left 40% dark frosted glass hero · Right 60% asymmetric
 * vibrant color-graded tile grid (2 + 3 stagger).
 * Pretendard 폰트 시스템 (Vision 페이지와 동일).
 * ========================================================== */

.sus-page {
  --sus-ink:    #0a0a0a;
  --sus-stage:  #0a0a0d;
  --sus-red:    #E30D2E;
  --sus-amber:  #F59E0B;

  /* GS Global 참조 팔레트 — 반투명 컬러 (뒤 배경 이미지가 살짝 비침).
     rgba 형식으로 opacity 컨트롤. */
  --pg-ethics-a:        rgba(239, 108, 0, 0.82);   /* Deep Vibrant Orange */
  --pg-environmental-a: rgba(255, 176, 80, 0.78);  /* Softer Amber — lighter
                                                       + slightly less opaque
                                                       so it reads as a
                                                       distinct sibling next
                                                       to the deep orange
                                                       Ethics tile. */
  --pg-compliance-a:    rgba(0, 191, 165, 0.82);   /* Emerald Teal */
  --pg-social-a:        rgba(2, 136, 209, 0.82);   /* Corporate Blue */
  --pg-educational-a:   rgba(3, 169, 244, 0.82);   /* Bright Sky Blue */

  min-height: 100vh;
  background: var(--sus-stage);
  color: #f5f2ec;
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Pretendard 전역 스코프 강제 */
.sus-page,
.sus-page h1, .sus-page h2, .sus-page h3, .sus-page h4, .sus-page h5, .sus-page h6,
.sus-page p, .sus-page span, .sus-page button, .sus-page a, .sus-page div,
.sus-page li, .sus-page ul, .sus-page section {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
}
.sus-page .mono {
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
}

/* ─── HERO ─────────────────────────────────────────────────
   GS Global 참조 이미지 그대로: full-screen 블러 배경 + 중앙에
   좌 다크카드 + 우 컬러 그리드가 하나의 unit 으로 붙어있음. */
.sus-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(120px, 15vh, 160px) clamp(20px, 4vw, 48px) clamp(48px, 6vh, 72px);
  isolation: isolate;
  background: #0a0a0a;
}

/* Full-bleed background — 이미지 최대한 쨍하게 유지.
   블러/다크닝 없이 원본 그대로. */
.sus-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0a0a;   /* 이미지 없을 때 fallback */
}
.sus-hero__bg img,
.sus-hero__bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.08) contrast(1.03);   /* 색상 살짝 강조, 블러 없음 */
  transform: none;
}
/* 오버레이 최소화 — 배경이 쨍하게 살아 있게. 텍스트 대비는
   좌측 카드 자체의 반투명 다크로 확보. */
.sus-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
  pointer-events: none;
}

/* Main centered unit — 좌 다크카드 + 우 컬러그리드가 하나. */
.sus-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 480px;
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.65);
}

/* ─── LEFT: Dark card (GS Global 참조) ────────────────────
   #1A1A1A 90% opacity, 우측 타일과 붙어있는 사각형. */
.sus-card {
  flex: 0 0 42%;
  padding: clamp(32px, 3vw, 48px);
  /* 반투명 다크 — 뒤 배경이 은은하게 비쳐 보임. */
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  color: #ffffff;
}
/* GS Global 스타일: SUSTAINABILITY 대문자 대형 + 짧은 흰 라인 + 부제. */
.sus-card__eyebrow {
  display: block;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 24px;
  line-height: 1;
}
/* 짧은 흰 라인 (SUSTAINABILITY 아래) */
.sus-card__rule {
  display: block;
  width: 48px;
  height: 2px;
  background: #ffffff;
  margin: 0 0 32px;
  border-radius: 1px;
}
.sus-card__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 20px;
  text-wrap: balance;
}
.sus-card__body {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.65;
  color: rgba(240, 240, 240, 0.85);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
}
/* GS Global 톤 — 하단 푸터는 제거 */
.sus-card__foot { display: none; }

/* ─── RIGHT: GS Global 타일 그리드 ─────────────────────
   상단 행 (50% 높이, 2 균등: Ethics / Environmental)
   하단 행 (50% 높이, 3 균등: Compliance / Social / Educational)
   gap 0, 라운드 0, solid 컬러. */
.sus-grid {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  align-self: stretch;
}
/* 상단/하단 행 wrapper — flex 로 각 셀 균등 분배 */
.sus-grid__row {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
}
.sus-tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(20px, 1.8vw, 32px);
  border-radius: 0;
  color: #ffffff;
  border: none;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  text-decoration: none;
  transition:
    filter 250ms ease,
    background 250ms ease,
    box-shadow 250ms ease;
  isolation: isolate;
  font-family: inherit;
  /* 반투명 컬러 + 배경 블렌드 */
  background: var(--pg-a, rgba(239, 108, 0, 0.82));
  backdrop-filter: saturate(1.05);
  -webkit-backdrop-filter: saturate(1.05);
}
.sus-tile:hover,
.sus-tile:focus-visible {
  filter: brightness(1.08);
  z-index: 2;
}
.sus-tile:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -6px;
}
/* 하단 3-column 타일은 상단보다 작으므로 폰트/패딩 축소 */
.sus-grid__row--bottom .sus-tile {
  padding: clamp(16px, 1.4vw, 24px);
}

.sus-tile__num { display: none; }

.sus-tile__body {
  position: relative;
  z-index: 1;
  margin-top: 0;   /* 참조: 텍스트 상단 좌측 */
}
.sus-tile__title {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  max-width: 90%;
  text-wrap: balance;
}
.sus-grid__row--bottom .sus-tile__title {
  font-size: clamp(14px, 1.15vw, 17px);
}
.sus-tile__sub { display: none; }

/* Arrow — GS Global 참조: 우하단 얇은 → 라인 아트 */
.sus-tile__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  color: #ffffff;
  opacity: 0.9;
  transition: transform 250ms ease, opacity 250ms ease;
  z-index: 1;
}
.sus-tile__arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.sus-tile:hover .sus-tile__arrow,
.sus-tile:focus-visible .sus-tile__arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Per-tile colors */
.sus-tile--1 { --pg-a: var(--pg-ethics-a); }
.sus-tile--2 { --pg-a: var(--pg-environmental-a); }
.sus-tile--3 { --pg-a: var(--pg-compliance-a); }
.sus-tile--4 { --pg-a: var(--pg-social-a); }
.sus-tile--5 { --pg-a: var(--pg-educational-a); }

/* ─── MODAL ───────────────────────────────────────────────── */
.sus-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.sus-modal.is-open { pointer-events: auto; }

.sus-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 400ms ease;
  cursor: pointer;
}
.sus-modal.is-open .sus-modal__scrim {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.sus-modal__panel {
  position: relative;
  width: min(680px, 96vw);
  height: 100vh;
  background: #0b0d13;
  color: #f5f2ec;
  padding: clamp(80px, 10vh, 120px) clamp(28px, 4vw, 56px) clamp(40px, 6vh, 72px);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -30px 0 100px -24px rgba(0, 0, 0, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.sus-modal.is-open .sus-modal__panel {
  transform: translateX(0);
}

.sus-modal__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 300ms ease;
}
.sus-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}
.sus-modal__close svg { width: 16px; height: 16px; }

.sus-modal__accent {
  display: inline-block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.sus-modal__eyebrow {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
  font-weight: 500;
  margin: 0 0 14px;
}
.sus-modal__title {
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 10px;
  text-wrap: balance;
}
.sus-modal__sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(245, 242, 236, 0.75);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}
.sus-modal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sus-modal__list li {
  padding-left: 22px;
  position: relative;
}
.sus-modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.sus-modal__list h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.sus-modal__list p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.7);
  margin: 0;
  font-weight: 400;
}

.sus-modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.sus-modal__cta:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.sus-modal__cta svg { width: 14px; height: 14px; }

/* Body scroll lock when modal open */
body.sus-modal-open {
  overflow: hidden;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sus-hero {
    padding-top: clamp(96px, 14vh, 130px);
    padding-bottom: clamp(32px, 5vh, 56px);
  }
  .sus-hero__inner {
    flex-direction: column;
    max-width: none;
    min-height: 0;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  }
  .sus-card {
    flex: 0 0 auto;
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .sus-card__eyebrow { font-size: 32px; margin-bottom: 20px; }
  .sus-card__rule { margin-bottom: 24px; }
  .sus-card__title { font-size: 18px; margin-bottom: 16px; }
  .sus-card__body { font-size: 13.5px; }

  /* Mobile: 상하 스택. Top 행 2 등분, Bottom 행 3 등분 유지. */
  .sus-grid {
    min-height: 0;
  }
  .sus-grid__row {
    flex: 0 0 auto;
    min-height: 120px;
  }
  .sus-tile {
    min-height: 100px;
    padding: 18px 16px;
  }
  .sus-tile__title { font-size: 14px; }
  .sus-grid__row--bottom .sus-tile__title { font-size: 12.5px; }
  .sus-tile__arrow svg { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .sus-card__eyebrow { font-size: 26px; }
  .sus-card__title { font-size: 16px; }
  .sus-tile__title { font-size: 13px; }
  .sus-grid__row--bottom .sus-tile__title { font-size: 11.5px; }
}
