* {
  box-sizing: border-box;
}

:root {
  --text: #ffffff;
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.14);
  --glass: rgba(12,15,27,.48);
  --glass-strong: rgba(255,255,255,.08);
  --accent: #9be7ff;
  --accent2: #b89cff;
  --shadow: 0 30px 90px rgba(0,0,0,.55);
}

html, body {
  min-height: 100%;
  margin: 0;
  background: #080a12;
  color: var(--text);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
}


/* ---------- Intro / loading screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(79, 108, 255, .12), transparent 30%),
    #070910;
  opacity: 1;
  visibility: visible;
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1), visibility .65s;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, #000 15%, transparent 72%);
}

.loader-inner {
  width: min(88vw, 390px);
  position: relative;
  text-align: center;
}

.loader-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 25px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 0 50px rgba(155,231,255,.07);
  transform: rotate(45deg);
  animation: loaderFloat 2.1s ease-in-out infinite;
}

.loader-mark span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(155,231,255,.85);
}

.loader-mark span:nth-child(1) { transform: translate(-14px, 0); }
.loader-mark span:nth-child(2) { transform: translate(14px, 0); background: var(--accent2); }
.loader-mark span:nth-child(3) { transform: translate(0, 14px); width: 5px; height: 5px; opacity: .8; }

.loader-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
}

.loader-title {
  margin: 0 0 28px;
  font-size: clamp(34px, 9vw, 54px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 900;
}

.loader-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.loader-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(155,231,255,.45);
  transition: width .12s linear;
}

.loader-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .08em;
}

body.loading {
  overflow: hidden;
}

body.loading .profile-card {
  opacity: 0;
  transform: translateY(18px) scale(.985);
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-card {
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}

body.loaded .profile-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes loaderFloat {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-7px); }
}


.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.bg-video,
.bg-fallback,
.overlay,
.noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-video {
  object-fit: cover;
  z-index: -5;
  filter: blur(4px) saturate(.95) contrast(1.05);
}

.bg-fallback {
  z-index: -6;
  background:
    radial-gradient(circle at 18% 20%, rgba(72, 115, 255, .62), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(193, 78, 255, .44), transparent 35%),
    radial-gradient(circle at 52% 85%, rgba(0, 208, 255, .34), transparent 37%),
    linear-gradient(135deg, #070913, #11152a 54%, #070913);
}

.overlay {
  z-index: -4;
  background:
    linear-gradient(to bottom, rgba(3,5,12,.18), rgba(3,5,12,.56)),
    radial-gradient(circle at center, transparent 10%, rgba(1,3,8,.36) 88%);
  backdrop-filter: blur(1px);
}

.noise {
  z-index: -3;
  pointer-events: none;
  opacity: .06;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.profile-card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  text-align: center;
  position: relative;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 28%, transparent 70%, rgba(155,231,255,.08));
}

.status-pill {
  width: fit-content;
  margin: 0 auto 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53f5a4;
  box-shadow: 0 0 0 5px rgba(83,245,164,.12), 0 0 18px rgba(83,245,164,.7);
}

.avatar-wrap {
  width: 320px;
  height: 320px;
  position: relative;
  margin: 0 auto 30px;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
}

.avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(155,231,255,.42);
  box-shadow:
    0 0 38px rgba(155,231,255,.12),
    inset 0 0 24px rgba(184,156,255,.06);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .20em;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 900;
  text-wrap: balance;
}

.role {
  margin: 18px 0 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(14px, 3vw, 17px);
  font-weight: 650;
}

.bio {
  max-width: 470px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.social-link {
  width: 58px;
  flex: 0 0 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;

}

.social-link:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.3);
}

.social-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.contact-button {
  margin-top: 20px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.92);
  color: #0b0d14;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: transform .2s ease, filter .2s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}

.arrow {
  font-size: 18px;
}

footer {
  margin-top: 28px;
  color: rgba(255,255,255,.38);
  font-size: 11px;
  letter-spacing: .08em;
}

@media (max-width: 640px) {
  .page {
    padding: 18px 12px;
    align-items: center;
  }

  .profile-card {
    border-radius: 26px;
  }
.avatar-wrap {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 380px) {
  .profile-card {
    padding-inline: 22px;
  }

  .social-link {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-mark {
    animation: none;
  }

  .loader,
  .profile-card,
  .loader-bar {
    transition-duration: .01ms !important;
  }

  .bg-video {
    display: none;
  }

  .social-link,
  .contact-button {
    transition: none;
  }
}


/* === Loader completion handoff (fixed version) === */
.loader-inner {
  transition: opacity .45s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}

.loader.complete .loader-inner {
  transform: translateY(-2px) scale(1.01);
}

.loader.complete .loader-mark {
  animation: none;
  border-radius: 50%;
  transform: rotate(0deg) scale(1.04);
  border-color: rgba(155,231,255,.38);
  box-shadow: 0 0 52px rgba(155,231,255,.16), inset 0 0 22px rgba(155,231,255,.05);
  transition: border-radius .55s ease, transform .55s cubic-bezier(.16,1,.3,1), border-color .55s ease, box-shadow .55s ease;
}

.loader.complete .loader-mark span {
  opacity: 0;
  transition: opacity .18s ease;
}

.loader.complete .loader-mark::after {
  content: "";
  width: 24px;
  height: 13px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-3px) rotate(-45deg);
  filter: drop-shadow(0 0 8px rgba(155,231,255,.7));
  animation: completeCheck .48s cubic-bezier(.16,1,.3,1) both;
}

.loader.complete .loader-kicker {
  color: rgba(155,231,255,.85);
}

.loader.complete .loader-title {
  font-size: clamp(29px, 7vw, 48px);
  letter-spacing: -.04em;
}

.loader.complete .loader-progress {
  opacity: .16;
  transform: scaleX(.72);
  transition: opacity .4s ease, transform .55s cubic-bezier(.16,1,.3,1);
}

.loader.complete .loader-meta {
  justify-content: center;
  opacity: .58;
  transition: opacity .35s ease;
}

.loader.complete #loaderPercent {
  display: none;
}

/* The page begins hidden and fades in slowly only after the complete state. */
.profile-card {
  opacity: 0;
  transform: translateY(34px) scale(.976);
  filter: blur(9px);
  transition:
    opacity 1.25s cubic-bezier(.16,1,.3,1),
    transform 1.55s cubic-bezier(.16,1,.3,1),
    filter 1.1s ease;
}

body.loaded .profile-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1.05s cubic-bezier(.22,.61,.36,1),
    visibility 0s linear 1.05s;
}

@keyframes completeCheck {
  from { opacity: 0; transform: translateY(-3px) rotate(-45deg) scale(.55); }
  to   { opacity: 1; transform: translateY(-3px) rotate(-45deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-inner,
  .loader.complete .loader-mark,
  .loader.complete .loader-progress,
  .profile-card,
  body.loaded .loader {
    transition-duration: .12s !important;
  }
  .profile-card {
    filter: none;
    transform: none;
  }
}


/* === Smooth text handoff: READY -> LOADING COMPLETE === */
.loader-kicker,
.loader-title,
.loader-meta {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.16,1,.3,1),
    filter .42s ease,
    color .45s ease;
}

/* Old loading copy softly disappears first. */
.loader.is-text-fading .loader-kicker,
.loader.is-text-fading .loader-title,
.loader.is-text-fading .loader-meta {
  opacity: 0 !important;
  transform: translateY(-9px);
  filter: blur(5px);
}

/* When the new completion copy enters, it rises very slightly into place. */
.loader.is-text-entering .loader-kicker,
.loader.is-text-entering .loader-title,
.loader.is-text-entering .loader-meta {
  opacity: 0 !important;
  transform: translateY(10px);
  filter: blur(5px);
}

/* The progress bar also relaxes instead of snapping into its completed look. */
.loader-progress {
  transition:
    opacity .48s ease,
    transform .62s cubic-bezier(.16,1,.3,1),
    background .45s ease;
}

/* Slightly delay the check mark so it appears with the new text, not before it. */
.loader.complete .loader-mark::after {
  animation-delay: .08s;
}

@media (prefers-reduced-motion: reduce) {
  .loader-kicker,
  .loader-title,
  .loader-meta,
  .loader-progress {
    transition-duration: .12s !important;
    filter: none !important;
  }
}


/* SNS 버튼은 개수가 바뀌어도 항상 중앙 정렬됩니다. */
@media (max-width: 380px) {
  .social-link {
    width: 54px;
    flex-basis: 54px;
  }
}


/* Larger profile avatar */
@media (max-width: 380px) {
  .avatar-wrap {
    width: 136px;
    height: 136px;
  }
}


/* ==========================================================
   PC SPEC 3D CARD FLIP
   기존 사용자 디자인을 유지하고 카드 앞/뒷면 기능만 추가합니다.
   ========================================================== */

/* 기존 .profile-card는 페이지 등장 애니메이션용 바깥 컨테이너로 사용 */
.profile-card {
  width: min(100%, 620px);
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: initial;
  perspective: 1600px;
}

.profile-card::before {
  display: none;
}

.card-flipper { position: relative; isolation: isolate; }

.card-face {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.14),
      transparent 28%,
      transparent 70%,
      rgba(155,231,255,.08)
    );
}


.card-face[hidden], .pc-navigation[hidden] { display:none; }
.card-face { transform-style:flat; }
/* Both sides use the same glass surface from .card-face. */
.card-flipper.has-stack::before {
  content:""; position:absolute; inset:-9px 12px auto; height:9px;
  border:1px solid rgba(187,186,214,.28); border-radius:25px 25px 0 0;
  background:linear-gradient(110deg,rgba(198,181,219,.14),rgba(146,174,204,.08));
  border-bottom:0;
  z-index:-1; pointer-events:none;
}
.pc-navigation { display:flex; align-items:center; justify-content:space-between;
  gap:8px; margin-bottom:24px; color:#dedbe7; font-size:15px; }
.pc-navigation button { font:inherit; font-weight:650; min-height:46px; padding:8px 13px;
  border-radius:14px; border:1px solid #656274; color:#faf9ff; background:#333340; cursor:pointer; }
.pc-navigation button:hover { background:#454251; }
.pc-navigation button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.spec-title { overflow-wrap:anywhere; }
/* 카드 전환 버튼 */
.flip-button {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(155,231,255,.24);
  border-radius: 17px;
  background: rgba(155,231,255,.07);
  color: rgba(255,255,255,.90);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.flip-button:hover {
  transform: translateY(-3px);
  background: rgba(155,231,255,.13);
  border-color: rgba(155,231,255,.42);
}

.flip-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.flip-arrow {
  font-size: 18px;
  line-height: 1;
}

/* PC 사양 카드 */
.spec-header {
  margin-bottom: 26px;
}

.spec-title {
  margin: 0;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 900;
}

.spec-subtitle {
  margin: 12px 0 0;
  color: rgba(255,255,255,.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.spec-list {
  width: 100%;
  display: grid;
  gap: 9px;
  text-align: left;
}

.spec-row {
  min-height: 58px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}

.spec-label {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.spec-value {
  min-width: 0;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.spec-note {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .08em;
}

.spec-note-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(155,231,255,.65);
}

.flip-button-back {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .card-face {
    border-radius: 26px;
  }

  .spec-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 13px;
  }

  .spec-value {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .card-face {
    padding-inline: 22px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-flipper {
    transition-duration: .01ms !important;
  }

  .flip-button {
    transition: none;
  }
}

