/* =========================================================
   DNSOFT 사이니지 — 화면 디자인
   - 색상은 회사 브랜드 가이드 값을 그대로 씁니다.
   - 1rem = 1920×1080 화면에서 16px. 4K(3840×2160)에서는 자동으로 2배가 됩니다.
   ========================================================= */

:root {
  --blue: #4482F0;        /* 메인 파랑 */
  --navy: #181734;        /* 진한 남색 배경 */
  --gold: #FFAC0A;        /* 숫자·성과 강조 */
  --red: #FF4E4E;         /* 긴급 공지 전용 */
  --blue-light: #EEF4FD;  /* 밝은 카드 배경 */
  --text: #171717;
  --text-sub: #484850;
  --white: #FFFFFF;

  --font-body: "Noto Sans KR", sans-serif;
  --font-display: "Noto Sans KR", sans-serif;
  --font-number: "Grandstander", "Noto Sans KR", sans-serif;
}

/* 화면 크기에 맞춰 글자 크기 기준을 자동 조절 (가로 화면) */
html { font-size: min(0.8333vw, 1.4815vh); }
/* 세로로 돌렸을 때 */
@media (orientation: portrait) {
  html { font-size: min(1.4815vw, 0.8333vh); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  cursor: none;            /* 마우스 커서 숨김 */
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#stage { position: fixed; inset: 0; }

/* ---------- 슬라이드 공통 ---------- */
.slide {
  position: absolute;
  inset: 0;
  padding: 6rem 7rem 8rem;
  display: flex;
  opacity: 0;
  transition: opacity 0.9s ease;
  overflow: hidden;
}
.slide.show { opacity: 1; }
.slide.dark  { background: var(--navy); color: var(--white); }
.slide.light { background: var(--white); color: var(--text); }
.slide.soft  { background: var(--blue-light); color: var(--text); }

/* 등장 애니메이션 (글자가 아래에서 살짝 올라옴) */
.rise { opacity: 0; transform: translateY(2rem); }
.slide.show .rise { animation: rise 0.8s ease forwards; }
.slide.show .rise.d1 { animation-delay: 0.15s; }
.slide.show .rise.d2 { animation-delay: 0.3s; }
.slide.show .rise.d3 { animation-delay: 0.45s; }
.slide.show .rise.d4 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 캐릭터가 둥실둥실 */
.float { animation: float 4s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5rem); }
}

.eyebrow {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin-bottom: 2rem;
}
.dark .eyebrow { color: var(--gold); }

.headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: keep-all;
  white-space: pre-line;
}
.body-text {
  font-size: 2.4rem;
  line-height: 1.6;
  margin-top: 2.5rem;
  word-break: keep-all;
  white-space: pre-line;   /* 내용에서 줄바꿈(\n)을 그대로 표시 */
}
.dark .body-text { color: rgba(255, 255, 255, 0.78); }
.light .body-text, .soft .body-text { color: var(--text-sub); }

/* 글 + 캐릭터 2단 배치 */
.split { display: flex; align-items: center; width: 100%; gap: 4rem; }
.split .text { flex: 1 1 0; min-width: 0; }
.split .art  { flex: 0 0 34%; display: flex; justify-content: center; }
.split .art img { width: 100%; max-height: 62vh; object-fit: contain; }

/* ---------- 1. 컬쳐덱 ---------- */
.culture .accent-bar {
  width: 8rem; height: 0.8rem; background: var(--blue); border-radius: 1rem;
  margin-bottom: 3rem;
}
.culture .headline { font-size: 7rem; }

/* ---------- 2. 공지 ---------- */
.notice .badge {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 10rem;
  background: var(--blue);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
}
.notice.urgent { background: var(--navy); }
.notice.urgent .badge { background: var(--red); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.55; } }
.notice .period { margin-top: 3rem; font-size: 1.8rem; color: var(--text-sub); }
.notice.urgent .period { color: rgba(255, 255, 255, 0.6); }

/* ---------- 3. 생일 ---------- */
.birthday { background: linear-gradient(135deg, #4482F0 0%, #2B5FC7 100%); color: var(--white); }
.birthday .eyebrow { color: var(--white); opacity: 0.85; }
.birthday .names {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 8rem;
  line-height: 1.15;
  word-break: keep-all;
}
.birthday .names .team { display: block; font-size: 2.4rem; font-weight: 500; opacity: 0.8; margin-top: 0.6rem; }
.birthday .names .person + .person { margin-top: 2rem; }
.birthday .body-text { color: rgba(255, 255, 255, 0.9); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -5%;
  width: 1.2rem; height: 2rem; border-radius: 0.3rem;
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(115vh) rotate(720deg); }
}

/* ---------- 4. 신규 입사자 ---------- */
.newmember .cards {
  display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 4rem;
}
.newmember .card {
  flex: 1 1 30rem; max-width: 52rem;
  background: var(--white);
  border-radius: 2.4rem;
  padding: 3.5rem;
  display: flex; align-items: center; gap: 3rem;
  box-shadow: 0 1.5rem 4rem rgba(24, 23, 52, 0.08);
}
.newmember .avatar {
  flex: 0 0 12rem; height: 12rem; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; font-weight: 900; overflow: hidden;
}
.newmember .avatar img { width: 100%; height: 100%; object-fit: cover; }
.newmember .name { font-size: 3.6rem; font-weight: 900; color: var(--navy); }
.newmember .team { font-size: 2rem; color: var(--blue); font-weight: 700; margin-top: 0.4rem; }
.newmember .intro { font-size: 2rem; color: var(--text-sub); margin-top: 1.2rem; line-height: 1.5; word-break: keep-all; }

/* ---------- 5. 카운트다운 ---------- */
.countdown { align-items: center; justify-content: center; text-align: center; flex-direction: column; }
.countdown .dday {
  font-family: var(--font-number);
  font-weight: 900;
  font-size: 22rem;
  line-height: 1;
  color: var(--gold);
  margin: 2rem 0 3rem;
}
.countdown .date { font-size: 2.4rem; color: rgba(255, 255, 255, 0.7); margin-top: 1.5rem; }

/* ---------- 6. 숫자로 보는 회사 ---------- */
.numbers { flex-direction: column; justify-content: center; }
.numbers .grid {
  display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 5rem;
}
.numbers .item {
  flex: 1 1 28rem;
  border-left: 0.6rem solid var(--blue);
  padding: 1rem 0 1rem 3rem;
}
.numbers .value {
  font-family: var(--font-number);
  font-weight: 900;
  font-size: 8.5rem;
  line-height: 1.1;
  color: var(--gold);
  white-space: nowrap;
}
.numbers .unit { font-family: var(--font-body); font-size: 3rem; font-weight: 700; margin-left: 0.6rem; color: var(--white); }
.numbers .label { font-size: 2.2rem; color: rgba(255, 255, 255, 0.75); margin-top: 1rem; }

/* ---------- 7. 브랜드 화면 (콘텐츠가 없거나 오류일 때) ---------- */
.brand { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.brand .logo { width: 34rem; margin-bottom: 4rem; }
.brand .char { width: 26rem; margin-bottom: 4rem; }
.brand .slogan { font-size: 3.2rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

/* ---------- 방문객 환영 ---------- */
.welcome.dark { background: linear-gradient(135deg, #181734 0%, #22265E 55%, #2B3A8C 100%); }
.wl-orb { position: absolute; border-radius: 50%; filter: blur(6rem); opacity: 0.55; animation: orb 14s ease-in-out infinite alternate; }
.wl-orb.o1 { width: 50rem; height: 50rem; right: -10rem; top: -14rem; background: #4482F0; }
.wl-orb.o2 { width: 36rem; height: 36rem; left: -10rem; bottom: -16rem; background: #FFAC0A; opacity: 0.28; animation-duration: 18s; }
@keyframes orb { to { transform: translate(-6rem, 5rem) scale(1.12); } }
.wl-logo { position: absolute; left: 7rem; bottom: 4.5rem; height: 3.2rem; }
.wl-name {
  font-size: 9rem; font-weight: 900; line-height: 1.15;
  letter-spacing: -0.02em; word-break: keep-all;
}
.wl-line { font-size: 3.4rem; font-weight: 700; margin-top: 2.4rem; line-height: 1.45; word-break: keep-all; color: rgba(255, 255, 255, 0.92); }
.wl-when {
  display: inline-block; margin-top: 4rem;
  padding: 1.2rem 2.8rem; border-radius: 10rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 2.2rem; font-weight: 700; color: var(--gold);
}
@media (orientation: portrait) {
  .wl-name { font-size: 7rem; }
  .wl-logo { left: 6rem; }
}

/* ---------- 오늘의 미팅 (방문객 미팅 중) ---------- */
.mt-wrap { display: flex; align-items: center; gap: 6rem; width: 100%; }
.mt-left { flex: 1 1 0; min-width: 0; }
.mt-name { font-size: 6rem; font-weight: 900; color: var(--navy); line-height: 1.15; word-break: keep-all; }
.mt-sub { font-size: 2.6rem; font-weight: 700; color: var(--blue); margin-top: 1.2rem; }
.mt-rows { margin-top: 2.4rem; }
.mt-row { display: flex; align-items: baseline; gap: 3rem; padding: 1.1rem 0; border-bottom: 1px solid #DCE4F2; }
.mt-row:last-child { border-bottom: 0; }
.mt-k { flex: 0 0 8rem; font-size: 2rem; font-weight: 700; color: var(--text-sub); }
.mt-v { font-size: 2.8rem; font-weight: 900; color: var(--navy); }
.mt-right { flex: 0 0 44%; display: flex; justify-content: center; }
.mt-card {
  width: 100%;
  background: var(--white); border-radius: 3rem;
  padding: 4rem 4.4rem;
  box-shadow: 0 2rem 5rem rgba(24, 23, 52, 0.1);
}
.mt-card-title { font-size: 2.2rem; font-weight: 900; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 2rem; }
.mt-agenda { list-style: none; }
.mt-agenda li {
  display: flex; align-items: center; gap: 2.4rem;
  padding: 2rem 0; border-bottom: 1px solid #EEF1F7;
  font-size: 2.8rem; font-weight: 700; color: var(--navy); word-break: keep-all;
}
.mt-agenda li:last-child { border-bottom: 0; }
.mt-n {
  flex: 0 0 5.6rem; height: 5.6rem; border-radius: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue);
  font-family: var(--font-number); font-weight: 900; font-size: 2.4rem;
}
/* 한 줄 주제(프로젝트명) 카드 */
.mt-topic { position: relative; overflow: hidden; padding-bottom: 5rem; }
.mt-topic-text { font-size: 4.4rem; font-weight: 900; line-height: 1.3; color: var(--navy); word-break: keep-all; max-width: 78%; }
.mt-topic img { position: absolute; right: 2.4rem; bottom: 1.6rem; width: 11rem; }
/* 아무것도 안 적었을 때 감사 카드 */
.mt-thanks { text-align: center; background: linear-gradient(160deg, #4482F0 0%, #2B5FC7 100%); color: var(--white); }
.mt-thanks img { width: 16rem; margin-bottom: 2rem; }
.mt-thanks-text { font-size: 4rem; font-weight: 900; line-height: 1.3; }
.mt-thanks-sub { font-size: 2rem; margin-top: 1.4rem; opacity: 0.85; }
@media (orientation: portrait) {
  .mt-wrap { flex-direction: column; align-items: stretch; gap: 4rem; }
  .mt-name { font-size: 5.6rem; }
}

/* ---------- 박람회·페어 일정 ---------- */
.schedule.dark { background: radial-gradient(ellipse at 85% 20%, #2B3A8C 0%, #181734 60%); }
.schedule .headline { font-size: 5.6rem; }
.ev-list { list-style: none; margin-top: 3.6rem; }
.ev-row {
  display: flex; align-items: center; gap: 3.2rem;
  padding: 2.4rem 3.2rem;
  margin-bottom: 1.6rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ev-date {
  flex: 0 0 30rem;
  font-family: var(--font-number); font-weight: 700;
  font-size: 2.6rem; color: var(--gold); white-space: nowrap;
}
.ev-main { flex: 1 1 auto; min-width: 0; }
.ev-name { font-size: 2.8rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-place { font-size: 1.9rem; color: rgba(255, 255, 255, 0.65); margin-top: 0.4rem; }
.ev-badge {
  flex: 0 0 auto;
  padding: 0.8rem 2rem; border-radius: 10rem;
  background: rgba(68, 130, 240, 0.2); color: #9DBEFF;
  font-family: var(--font-number); font-weight: 900; font-size: 2.2rem;
}
.ev-badge.live { background: var(--gold); color: var(--navy); font-family: var(--font-body); }
.ev-foot { margin-top: 2.4rem; font-size: 2.4rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
@media (orientation: portrait) {
  .ev-row { flex-wrap: wrap; gap: 1rem 2rem; }
  .ev-date { flex-basis: 100%; }
}

/* =========================================================
   [시안] 카드 연출 3종
   ========================================================= */

/* 브랜드 색 기반 그라데이션 (천천히 흐름) */
.g-blue, .g-gold, .g-violet, .g-teal {
  background-size: 220% 220%;
  animation: gradFlow 9s ease-in-out infinite alternate;
}
.g-blue   { background-image: linear-gradient(135deg, #4482F0 0%, #2B3A8C 45%, #181734 70%, #4482F0 100%); }
.g-gold   { background-image: linear-gradient(135deg, #FFAC0A 0%, #E08A00 40%, #AB6700 70%, #FFAC0A 100%); }
.g-violet { background-image: linear-gradient(135deg, #7448A9 0%, #4482F0 50%, #181734 80%, #7448A9 100%); }
.g-teal   { background-image: linear-gradient(135deg, #1D7DAE 0%, #257568 50%, #181734 80%, #1D7DAE 100%); }
@keyframes gradFlow { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* ---------- ① 핵심가치 카드 ---------- */
.valuecards { flex-direction: column; justify-content: center; }
.vwrap { width: 100%; }
.vwrap .headline { font-size: 5.6rem; }
.vcards { display: flex; gap: 3.2rem; margin-top: 3.6rem; perspective: 160rem; }
.vcard {
  flex: 1 1 0; min-width: 0;
  opacity: 0;
  transform: translateY(8rem) rotateX(22deg) rotateY(-16deg);
}
.slide.show .vcard { animation: vcardIn 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes vcardIn { to { opacity: 1; transform: none; } }
.vin {
  background: var(--white);
  border-radius: 2.8rem;
  overflow: hidden;
  box-shadow: 0 1.6rem 4rem rgba(24, 23, 52, 0.08);
  transition: transform 0.7s cubic-bezier(.2, .8, .2, 1), box-shadow 0.7s;
}
.vcard.focus .vin {
  transform: translateY(-2.4rem) scale(1.03);
  box-shadow: 0 3.6rem 7rem rgba(68, 130, 240, 0.28);
}
.vtop { position: relative; height: 19rem; overflow: hidden; }
.vtop img { position: absolute; right: 2rem; bottom: 1rem; height: 78%; }
.vnum {
  position: absolute; left: 3rem; bottom: 2.2rem;
  font-family: var(--font-number); font-weight: 900;
  font-size: 7.5rem; line-height: 1; color: var(--white);
}
.vbody { padding: 3rem 3rem 3.6rem; }
.vtitle { font-size: 3.2rem; font-weight: 900; color: var(--navy); line-height: 1.3; word-break: keep-all; }
.vdesc { font-size: 2rem; color: var(--text-sub); margin-top: 1.2rem; line-height: 1.55; word-break: keep-all; white-space: pre-line; }

/* ---------- ④ 원형 회전 카드 ---------- */
.ringslide.dark {
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 75%, #2B3A8C 0%, #181734 65%);
  color: var(--white);
}
.rhead { text-align: center; position: relative; z-index: 2; }
.rhead .headline { font-size: 5.6rem; }
.rstage {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  perspective: 150rem;
  margin-top: 2rem;
}
.ring { position: relative; width: 36rem; height: 24rem; transform-style: preserve-3d; }
.rcard {
  position: absolute; left: 0; top: 0;
  width: 36rem; height: 24rem;
  padding: 3rem 3.2rem;
  border-radius: 2.4rem;
  background: var(--white);
  color: var(--navy);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.25);
}
.rquote { font-size: 2.2rem; font-weight: 500; line-height: 1.5; word-break: keep-all; }
.rquote:before {
  content: "\201C"; display: block;
  font-family: var(--font-number); font-weight: 900;
  font-size: 6rem; line-height: 0.6; color: var(--gold); margin-bottom: 1rem;
}
.rmeta { display: flex; align-items: center; gap: 1.4rem; }
.ravatar {
  flex: 0 0 5rem; height: 5rem; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 900;
}
.rwho { font-size: 1.9rem; line-height: 1.3; }
.rwho b { font-weight: 900; }
.rto { color: var(--blue); font-weight: 700; }
.rwho small { display: block; font-size: 1.5rem; color: var(--text-sub); }

/* ---------- ⑤ 가운데 강조 카드 ---------- */
.spotslide { flex-direction: column; }
.shead { text-align: center; }
.shead .headline { font-size: 5.6rem; }
.sstage { position: relative; flex: 1 1 auto; margin-top: 2.4rem; }
.scard {
  position: absolute; left: 50%; top: 0;
  width: 38rem;
  background: var(--white);
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: 0 2.4rem 6rem rgba(24, 23, 52, 0.14);
  transform-origin: 50% 40%;
  transition: transform 0.9s cubic-bezier(.2, .8, .2, 1), opacity 0.9s;
}
.spic {
  height: 22rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.spic img { width: 100%; height: 100%; object-fit: cover; }
.spic span { font-size: 12rem; font-weight: 900; color: rgba(255, 255, 255, 0.92); }
.sinfo { padding: 2.8rem 3rem 3.2rem; text-align: center; }
.sname { font-size: 4rem; font-weight: 900; color: var(--navy); }
.steam { font-size: 2rem; font-weight: 700; color: var(--blue); margin-top: 0.4rem; }
.smsg {
  font-size: 2rem; line-height: 1.5; color: var(--text-sub);
  margin-top: 1.4rem; word-break: keep-all;
  max-height: 0; opacity: 0;
  transition: opacity 0.6s 0.3s, max-height 0.6s;
}
.scard.on .smsg { max-height: 12rem; opacity: 1; }

@media (orientation: portrait) {
  .vcards { flex-direction: column; gap: 2.4rem; }
  .vcard { flex: 0 0 auto; }
  .vin { display: flex; }
  .vtop { flex: 0 0 22rem; height: auto; min-height: 16rem; }
  .vnum { font-size: 5.5rem; left: 2.2rem; bottom: 1.6rem; }
  .vtop img { height: 60%; right: 1rem; }
  .ring, .rcard { width: 30rem; height: 22rem; }
  .scard { width: 34rem; }
  .sstage { margin-top: 10rem; }
}

/* ---------- 하단 로고 / 진행 표시 ---------- */
#footer {
  position: fixed; left: 7rem; right: 7rem; bottom: 3rem;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 10; pointer-events: none;
}
#footer-logo { height: 2.6rem; opacity: 0.9; }
#dots { display: flex; gap: 0.8rem; }
#dots span {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: currentColor; opacity: 0.25; transition: opacity 0.3s, width 0.3s;
}
#dots span.on { opacity: 0.9; width: 3rem; border-radius: 1rem; }
#footer.on-dark  { color: var(--white); }
#footer.on-light { color: var(--navy); }

#progress { position: fixed; left: 0; right: 0; bottom: 0; height: 0.5rem; z-index: 10; }
#progress-bar { height: 100%; width: 0; background: var(--blue); }
.birthday-active #progress-bar { background: var(--gold); }

/* ---------- 세로 화면일 때 배치 바꾸기 ---------- */
@media (orientation: portrait) {
  .slide { padding: 9rem 6rem 10rem; }
  .split { flex-direction: column-reverse; align-items: flex-start; justify-content: center; }
  .split .art { flex: 0 0 auto; width: 55%; align-self: center; }
  .split .art img { max-height: 32vh; }
  .headline, .culture .headline { font-size: 6rem; }
  .countdown .dday { font-size: 18rem; }
  #footer { left: 6rem; right: 6rem; }
}
