/* DESIGN KOREA 2026 Hero Styles (Responsive Layered Key Visual) */
:root {
  --lime: #acff82;
}

/* PC/Desktop Default: 100svh Fixed Key Visual Only (No Scroll, Primary Nav in Header) */
body.page-root {
  background: var(--lime);
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  margin: 0;
}

body.page-root .site-wrap {
  background: var(--lime);
  height: 100svh;
  overflow: hidden;
}

body.page-root .page-shell {
  height: 100svh;
  overflow: hidden;
  position: relative;
}

body.page-root header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
}

body.page-root .site-header {
  background: transparent;
  width: 100%;
}

body.page-root .home-link {
  background: none !important;
  display: flex;
  align-items: center;
  height: 40px;
  width: auto;
  min-width: 140px;
  text-decoration: none;
}

body.page-root .home-link::after {
  display: none !important;
}

body.page-root .home-link img {
  display: block;
  height: 40px;
  width: auto;
  aspect-ratio: 693 / 199;
  object-fit: contain;
}

html {
  scroll-behavior: smooth;
}

body.page-root .main-area {
  height: 100svh;
  position: relative;
  overflow: hidden;
}

/* PC에서는 상단 헤더에 primary-nav가 있으므로 하단 메뉴 섹션과 푸터를 완전히 숨김 */
.home-directory-section {
  display: none !important;
}

body.page-root .site-footer {
  display: none !important;
}

.hero {
  box-sizing: border-box;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 360px;
  overflow: hidden;
  background: var(--lime);
}

.hero-art {
  position: absolute;
  top: clamp(100px, 14svh, 160px);
  right: 0;
  width: min(100%, 150svh);
  aspect-ratio: 16 / 9;
  pointer-events: none;
}

.hero-pill {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  transform: rotate(7deg);
  z-index: 1;
}

.hero-pill-code {
  left: 32.0%;
  top: -64.5%;
  width: 66%;
}

.hero-pill-log {
  left: 19.6%;
  top: -20.6%;
  width: 66%;
}

.hero-pill-typology {
  left: 42.5%;
  top: -29.9%;
  width: 83.1%;
}

.hero-pill-ax {
  left: 67%;
  top: 18%;
  width: 60%;
  z-index: 2;
}

/* Show the compact event lockup at (76, 594, 968, 432) in the supplied PNG. */
.hero-type {
  position: absolute;
  left: clamp(24px, 2.6vw, 64px);
  bottom: clamp(24px, 4.4svh, 72px);
  width: clamp(280px, 31vw, 600px);
  aspect-ratio: 968 / 432;
  overflow: hidden;
  z-index: 3;
}

.hero-type-image {
  position: absolute;
  left: -7.85124%;
  top: -137.5%;
  display: block;
  width: 198.347107%;
  height: auto;
  max-width: none;
}

@media (max-aspect-ratio: 4 / 5) {
  .hero {
    --hero-type-width: min(calc(100vw - 48px), 440px);
    --hero-type-height: calc(var(--hero-type-width) * 0.446281);
    min-height: 540px;
  }

  .hero-art {
    top: 160px;
    width: min(200vw, calc((100svh - var(--hero-type-height) - 200px) * 1.42));
  }

  .hero-pill-code {
    left: 45.6%;
    top: -47%;
  }

  .hero-pill-log {
    left: 41.7%;
    top: -12%;
  }

  .hero-pill-typology {
    top: -5%;
  }

  .hero-pill-ax {
    top: 42.5%;
  }

  .hero-type {
    left: 24px;
    bottom: 24px;
    width: min(var(--hero-type-width), calc(100% - 48px));
  }
}

@media (max-width: 680px) and (max-aspect-ratio: 4 / 5) {
  .hero-pill-log {
    top: -13%;
  }

  .hero-pill-typology {
    top: -6.5%;
  }

  .hero-pill-ax {
    top: 41.5%;
  }
}

@media (max-width: 1024px) {
  body.page-root .home-link {
    height: 36px;
    min-width: 125px;
  }

  body.page-root .home-link img {
    height: 36px;
  }
}

@media (max-width: 680px) {
  body.page-root .home-link {
    height: 30px;
    min-width: 105px;
  }

  body.page-root .home-link img {
    height: 30px;
  }
}

@media (max-width: 380px) {
  body.page-root .site-header {
    padding-inline: 12px;
  }

  body.page-root .home-link {
    min-width: 92px;
    height: 26px;
  }

  body.page-root .home-link img {
    height: 26px;
  }

  body.page-root .hdr-end {
    gap: 4px;
  }

  body.page-root .hdr-btn a.btn-pad {
    padding: 0 8px !important;
  }

  body.page-root .ticket-link {
    padding-inline: 8px;
  }
}

/* ==========================================================================
   Home Navigation Directory (Clean Editorial Cards)
   ========================================================================== */

/* Home Directory Section */
.home-directory-section {
  position: relative;
  background: #0c0d10;
  color: #ffffff;
  padding: 40px 24px 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.directory-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* 5th Card spans full width in 2-column layout */
.directory-grid .directory-card:nth-child(5) {
  grid-column: span 2;
}

/* Directory Card */
.directory-card {
  background: #14161a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
}

.directory-card:hover {
  background: #181b20;
  border-color: rgba(172, 255, 130, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.directory-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.directory-card-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.directory-card-eng {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Card Main Link */
.directory-card-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.directory-card-title {
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  transition: color 0.18s ease;
}

.directory-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.directory-card:hover .directory-card-title,
.directory-card-main-link:hover .directory-card-title {
  color: var(--lime);
}

.directory-card:hover .directory-card-arrow,
.directory-card-main-link:hover .directory-card-arrow {
  background: var(--lime);
  color: #0c0d10;
  transform: translate(2px, -2px);
}

/* Sub-menu Chips */
.directory-card-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.directory-sub-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  min-height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.directory-sub-chip:hover,
.directory-sub-chip:active {
  background: var(--lime);
  color: #0c0d10;
  font-weight: 700;
  border-color: var(--lime);
  transform: translateY(-1px);
}

/* Footer Action */
.directory-footer-action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.directory-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.18s ease;
}

.directory-top-link:hover {
  background: var(--lime);
  color: #0c0d10;
  border-color: var(--lime);
}

.directory-top-icon {
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   Hamburger Menu Active Viewports (<= 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  body.page-root {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.page-root .site-wrap {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  body.page-root .page-shell {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  body.page-root .main-area {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: visible;
  }

  /* 햄버거 메뉴가 노출되는 모바일/태블릿에서는 하단 디렉토리 메뉴 및 푸터 노출 */
  .home-directory-section {
    display: block !important;
  }

  body.page-root .site-footer {
    display: flex !important;
  }
}

/* Smartphone Specific Adjustments (<= 768px) */
@media screen and (max-width: 768px) {
  .home-directory-section {
    padding: 24px 16px 48px;
  }

  .directory-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .directory-grid .directory-card:nth-child(5) {
    grid-column: span 1;
  }

  .directory-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .directory-card-main-link {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .directory-card-title {
    font-size: 20px;
  }

  .directory-card-arrow {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .directory-card-subs {
    gap: 6px;
  }

  .directory-sub-chip {
    padding: 7px 13px;
    min-height: 36px;
    font-size: 12.5px;
  }

  .directory-footer-action {
    margin-top: 36px;
  }
}