/* KM WEEK 2026 E-Poster — matched to assets/mockups */

@font-face {
  font-family: "DB Heavent";
  src: url("../assets/fonts/DBHeavent-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DB Heavent";
  src: url("../assets/fonts/DBHeavent-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DB Heavent";
  src: url("../assets/fonts/DBHeavent-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DB Heavent";
  src: url("../assets/fonts/DBHeavent-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --stage-w: 2160px;
  --stage-h: 3840px;
  --bg: #050b1b;
  --bg-top: #0b1628;
  --panel: #c9e6ee;
  --cyan: #5cefff;
  --cyan-text: #7fd4ef;
  --energy: #91c676;
  --security: #80cbe2;
  --btn-a: #3a7aef;
  --btn-b: #1e4fc8;
  --btn-c: #0d2f9c;
  --font: "DB Heavent";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

#stage-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform-origin: center center;
  overflow: hidden;
  background: var(--bg) url("../assets/images/BG.webp") center / 100% 100% no-repeat;
}

.bg-glow,
.bg-edges {
  display: none;
}

/* —— Header —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 90px 120px 0;
  pointer-events: none;
  min-height: 280px;
}

.brand {
  display: none;
}

.brand-logo {
  width: 200px;
  height: 190px;
  display: block;
  object-fit: fill;
}

.brand-divider {
  width: 4px;
  height: 178px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  flex: 0 0 auto;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 0.9;
  color: #fff;
}

.brand-km {
  font-size: 250px;
  font-weight: 900;
  letter-spacing: -3px;
}

.brand-week {
  display: flex;
  flex-direction: column;
  font-size: 140px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 0.78;
}

.header-context {
  text-align: right;
  max-width: 1100px;
  white-space: nowrap;
}

.header-context-title {
  font-size: 118px;
  font-weight: 400;
  color: #73f2ff;
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(80, 220, 255, 0.35);
}

.header-context-sub {
  font-size: 118px;
  font-weight: 400;
  color: #73f2ff;
  line-height: 0.95;
  margin-top: 14px;
  text-shadow: 0 0 18px rgba(80, 220, 255, 0.3);
}

.header-context[hidden] {
  display: none;
}

.header-context-title sup,
.menu-btn__line sup,
.header-context-sub sup {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
}

/* —— Main panel (mockup ratios ≈ top 14%, sides 7%, bottom 4%) —— */
.stage-main {
  position: absolute;
  top: 455px;
  left: 120px;
  right: 100px;
  bottom: 610px;
  z-index: 4;
}

.tech-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.tech-frame-svg {
  display: none;
}

.tech-frame-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.page {
  display: none;
  width: 100%;
  height: 100%;
  padding: 88px 72px;
}

.page.is-active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  animation: pageFadeIn 0.3s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* —— Menu buttons —— */
.menu-stack {
  display: flex;
  flex-direction: column;
  gap: 202px;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  justify-content: center;
  flex: 1;
  transform: translateY(-40px);
}

.menu-stack--pair {
  gap: 200px;
  max-width: 1620px;
  padding: 0;
}

.menu-btn {
  appearance: none;
  border: none;
  width: 100%;
  min-height: 560px;
  aspect-ratio: auto;
  border-radius: 0;
  padding: 48px 72px;
  cursor: pointer;
  font-family: var(--font);
  color: #fff;
  text-align: center;
  background: url("../assets/images/Button.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.menu-btn:hover {
  transform: translateY(-4px) scale(1.01);
  filter: brightness(1.12);
}

.menu-btn:active {
  transform: translateY(5px) scale(0.995);
  filter: brightness(1.08);
}

.menu-btn__line {
  display: block;
  font-size: 150px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.2px;
}

.menu-stack--pair .menu-btn {
  min-height: 560px;
  border-radius: 0;
}

.menu-stack--pair .menu-btn__line {
  font-size: 210px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* —— Document list —— */
#page-3.is-active {
  justify-content: flex-start;
  padding: 270px 68px 300px;
}

.doc-list-shell {
  position: relative;
  width: 100%;
  max-width: 1760px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}

.doc-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 40px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 64px 32px 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.doc-list::-webkit-scrollbar {
  display: none;
}

.doc-scrollbar {
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 32px;
  width: 32px;
  border-radius: 999px;
  background: rgba(105, 145, 165, 0.24);
  overflow: hidden;
  pointer-events: none;
}

.doc-scrollbar[hidden] {
  display: none;
}

.doc-scrollbar__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 150px;
  background: rgba(36, 96, 180, 0.72);
  border: 6px solid rgba(198, 230, 239, 0.9);
  border-radius: 999px;
  background-clip: padding-box;
  will-change: transform;
}

.doc-item {
  appearance: none;
  border: none;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 44px;
  width: 100%;
  height: 420px;
  aspect-ratio: auto;
  padding: 48px 90px;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: #fff;
  background: url("../assets/images/Button2.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.doc-item:hover {
  transform: translateY(-3px) scale(1.008);
  filter: brightness(1.1);
}

.doc-item:active {
  transform: translateY(4px) scale(0.997);
  filter: brightness(1.08);
}

.doc-item__code {
  flex: 0 0 auto;
  font-size: 120px;
  font-weight: 500;
  letter-spacing: 1px;
  min-width: 220px;
}

.doc-item__title {
  flex: 1;
  min-width: 0;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.14;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: justify;
}

/* —— PDF —— */
#page-4.is-active {
  position: relative;
  justify-content: stretch;
  padding: 200px 150px 250px;
}

.app-nav {
  position: absolute;
  right: 70px;
  bottom: 120px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: min(700px, calc(100% - 180px));
}

.app-nav[hidden] {
  display: none;
}

.app-nav__button {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 118px;
  padding: 8px 34px 14px;
  overflow: hidden;
  border: 8px solid rgba(220, 224, 224, 0.9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(180deg, #2292ff 0%, #0069ee 48%, #1459d5 100%);
  box-shadow:
    0 13px 0 rgba(164, 169, 171, 0.9),
    0 21px 24px rgba(0, 0, 0, 0.34),
    inset 0 0 0 3px rgba(255, 255, 255, 0.44),
    inset 0 -8px 12px rgba(0, 20, 92, 0.25);
  color: #fff;
  font-family: var(--font);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 0 3px 4px rgba(0, 25, 80, 0.48);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.app-nav__button:hover:not(:disabled) {
  transform: translateY(-3px);
  filter: brightness(1.12);
}

.app-nav__button[hidden] {
  display: none;
}

.app-nav__button--home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #11b625 0%, #07951a 50%, #087d16 100%);
  box-shadow:
    0 13px 0 rgba(164, 169, 171, 0.9),
    0 21px 24px rgba(0, 0, 0, 0.34),
    inset 0 0 0 3px rgba(255, 255, 255, 0.42),
    inset 0 -8px 12px rgba(0, 73, 15, 0.3);
}

.app-nav__home-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.app-nav__button:active:not(:disabled) {
  transform: translateY(8px);
  box-shadow:
    0 5px 0 rgba(164, 169, 171, 0.9),
    0 10px 14px rgba(0, 0, 0, 0.3),
    inset 0 0 0 3px rgba(255, 255, 255, 0.44);
}

.app-nav__button:disabled {
  cursor: default;
  filter: grayscale(0.48);
  opacity: 0.46;
}

.pdf-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 40, 80, 0.08);
}

.pdf-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 400;
  color: #445;
  background: #fff;
  z-index: 2;
}

.pdf-status[hidden] {
  display: none;
}

.pdf-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--panel);
  padding: 12px 64px 12px 12px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.pdf-scroll::-webkit-scrollbar {
  display: none;
}

.pdf-scroll--single {
  padding: 8px;
}

.pdf-scroll--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-scroll canvas {
  display: block;
  margin: 0 auto 28px;
  height: auto;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 28, 52, 0.16);
  will-change: transform;
}

.pdf-scroll--single canvas {
  margin-bottom: 0;
}

.pdf-scrollbar {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 32px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(105, 145, 165, 0.28);
  pointer-events: none;
}

.pdf-scrollbar[hidden] {
  display: none;
}

.pdf-scrollbar__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 150px;
  border: 6px solid rgba(238, 243, 245, 0.92);
  border-radius: 999px;
  background: rgba(36, 96, 180, 0.76);
  background-clip: padding-box;
  will-change: transform;
}

.pdf-page-img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

/* —— Footer —— */
.site-footer {
  display: none;
}

.globe {
  position: absolute;
  left: -215px;
  bottom: -580px;
  width: 1450px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(40, 190, 255, 0.45));
}

.tagline {
  position: absolute;
  right: 250px;
  bottom: 152px;
  text-align: right;
  line-height: 0.72;
}

.tagline-energy,
.tagline-security {
  font-size: 220px;
  font-weight: 900;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 16px rgba(126, 204, 226, 0.2));
}

.tagline-energy {
  font-size: 175px;
  color: #80cbe2;
  margin-right: 220px;
  transform: scaleX(1.05);
  transform-origin: right center;
}

.tagline-security {
  margin-top: 18px;
  font-size: 215px;
  color: #91c676;
}

.tagline-era {
  margin-top: 8px;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 5px;
  color: #f4f8ff;
}

.tagline-global {
  margin-top: 16px;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
}
