:root {
  color-scheme: dark;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #163f50;
  color: #f5fbfc;
  --river-scene-scale: 1.5;
  --river-original-top: 884px;
  --river-current-top: 760px;
  --river-rise: calc(var(--river-original-top) - var(--river-current-top));
  --skyline-rise-factor: 0.8;
  --skyline-offset-y: calc(var(--river-rise) * -1 * var(--skyline-rise-factor));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.profile-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 2rem;
  isolation: isolate;
  background: #163f50;
}

.river-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #163f50;
}

.river-background__svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--river-scene-scale));
  transform-origin: top center;
}

.river-background__svg .background-skyline {
  display: none;
}

.river-background__svg .ripple-a rect,
.river-background__svg .ripple-b rect {
  will-change: auto;
}

.ferry-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.toc-backdrop-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ferry {
  position: absolute;
  top: var(--ferry-lane);
  left: 0;
  width: clamp(7rem, 12vw, 12rem);
  animation-duration: 40s;
  animation-timing-function: linear;
  animation-delay: var(--ferry-delay);
  animation-iteration-count: infinite;
  will-change: transform;
}

.ferry img {
  display: block;
  width: 100%;
  height: auto;
}

.ferry--left-to-right {
  animation-name: ferry-left-to-right;
}

.ferry--left-to-right img {
  transform: scaleX(-1);
}

.ferry--right-to-left {
  animation-name: ferry-right-to-left;
}

.ferry--right-to-left img {
  transform: none;
}

@keyframes ferry-left-to-right {
  from { transform: translateX(-130%); }
  to { transform: translateX(100vw); }
}

@keyframes ferry-right-to-left {
  from { transform: translateX(100vw); }
  to { transform: translateX(-130%); }
}

.river-foreground {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.forest-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.river-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.river-overlay__svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--river-scene-scale));
  transform-origin: top center;
}

.forest-layer__svg,
.river-foreground__svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--river-scene-scale));
  transform-origin: top center;
}

.river-foreground__anchor {
  transform: translateY(var(--skyline-offset-y));
}

.river-foreground__skyline {
  transform-box: view-box;
}

.skyline-piece {
  --piece-delay: 0s;
  --piece-duration: 1.4s;
  --piece-distance: 92px;
  opacity: 0;
  transform: translateY(var(--piece-distance));
  transform-origin: bottom center;
  animation: skyline-piece-rise var(--piece-duration) cubic-bezier(0.2, 0.7, 0.2, 1) var(--piece-delay) forwards;
}

.skyline-piece--forest {
  --piece-distance: 56px;
}

@keyframes skyline-piece-rise {
  0% {
    opacity: 0;
    transform: translateY(var(--piece-distance));
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-element-rise {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-shell {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.research-section {
  position: relative;
}

.profile-toc,
.profile-section > .section-kicker,
.profile-section > h1,
.profile-section > h2,
.identity-layout,
.timeline-item,
.song-list {
  opacity: 0;
  animation: page-element-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.profile-toc {
  animation-delay: 0.18s;
}

.profile-section > .section-kicker {
  animation-delay: 0.22s;
}

.profile-section > h1,
.profile-section > h2 {
  animation-delay: 0.3s;
}

.identity-layout,
.song-list {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(1),
.song-thumb:nth-child(1) {
  animation-delay: 0.38s;
}

.timeline-item:nth-child(2),
.song-thumb:nth-child(2) {
  animation-delay: 0.5s;
}

.timeline-item:nth-child(3),
.song-thumb:nth-child(3) {
  animation-delay: 0.62s;
}

.timeline-item:nth-child(4),
.song-thumb:nth-child(4) {
  animation-delay: 0.74s;
}

.profile-toc {
  position: absolute;
  top: 2rem;
  right: 2rem;
  pointer-events: auto;
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}

.profile-toc a {
  color: rgba(235, 245, 248, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform-origin: right center;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
  opacity: 0.72;
}

.profile-toc a.active,
.profile-toc a[aria-current="true"] {
  color: #f9fdff;
  transform: scale(1.14);
  opacity: 1;
}

.profile-content {
  position: relative;
  display: grid;
  gap: 16vh;
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 20vh;
}

.profile-section {
  min-height: 88vh;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  scroll-margin-top: 2rem;
}

.section-kicker {
  margin: 0 0 1rem;
  color: rgba(235, 249, 251, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.profile-section h1,
.profile-section h2 {
  margin: 0;
  color: #f3f8f9;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.profile-section h1::after,
.profile-section h2::after {
  display: block;
  width: min(180px, 36vw);
  height: 12px;
  margin-top: 1rem;
  background: linear-gradient(90deg, rgba(241, 244, 232, 0.9), rgba(122, 184, 198, 0.2));
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  content: "";
}

.field-list,
.song-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.research-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 1rem;
  align-items: center;
  width: min(100%, 600px);
  margin-top: 2.4rem;
  padding: 1.4rem 1.5rem;
  color: #f5fbfc;
  text-decoration: none;
  border: 1px solid rgba(232, 241, 244, 0.3);
  border-left: 3px solid rgba(238, 245, 247, 0.8);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.research-link:hover,
.research-link:focus-visible {
  border-color: rgba(245, 251, 252, 0.9);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  transform: translateX(0.35rem);
}

.research-link__eyebrow {
  color: rgba(229, 241, 244, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.research-link strong {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.research-link__arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 2rem;
}

.song-list {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.95) 8%, rgba(0, 0, 0, 0.95) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.95) 8%, rgba(0, 0, 0, 0.95) 92%, transparent 100%);
}

.identity-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: fit-content;
  max-width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.4rem;
  position: relative;
  padding: 1.6rem 1.9rem;
  border: 1px solid rgba(232, 241, 244, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

#identity {
  display: block;
  padding-top: 0;
  text-align: left;
}

.identity-photo {
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
  order: 2;
}

.identity-photo__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-photo__core {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 32%, rgba(252, 248, 237, 0.9) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 76%, rgba(252, 248, 237, 0.82) 0 28%, transparent 29%),
    linear-gradient(180deg, rgba(252, 248, 237, 0.15), rgba(252, 248, 237, 0.03));
  opacity: 0.9;
}

.identity-panel {
  display: none;
}

.identity-list {
  display: flex;
  flex: 0 1 auto;
  gap: 1rem;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  position: relative;
  z-index: 1;
  align-self: center;
}

.identity-row {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem 1rem 0.35rem 0;
  position: relative;
  z-index: 1;
}

.identity-row + .identity-row {
  border-left: 1px solid rgba(232, 241, 244, 0.16);
  padding-left: 1rem;
}

.identity-row .field-value,
.identity-row .field-link {
  white-space: nowrap;
}

.field-card,
.song-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.09) 68%, rgba(255, 255, 255, 0) 100%);
  border-left: 2px solid rgba(238, 245, 247, 0.68);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}

.field-label,
.timeline-year,
.song-index {
  color: rgba(229, 241, 244, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field-value,
.field-link,
.timeline-body strong,
.song-card strong {
  color: #f5fbfc;
  font-size: 1.1rem;
  text-decoration: none;
}

.timeline-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.09) 70%, rgba(255, 255, 255, 0) 100%);
  border-left: 2px solid rgba(238, 245, 247, 0.68);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.timeline-body p,
.song-card p {
  margin: 0.45rem 0 0;
  color: rgba(245, 251, 252, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.song-card {
  grid-template-columns: 56px 1fr;
  align-items: center;
}

.song-marquee {
  display: flex;
  width: fit-content;
  min-width: 0;
  gap: 1.2rem;
  animation: song-marquee-left 42s linear infinite;
  will-change: transform;
}

.song-track {
  display: flex;
  gap: 1.2rem;
  flex: 0 0 auto;
}

.song-thumb {
  display: grid;
  grid-template-rows: 150px auto;
  gap: 0.9rem;
  width: 220px;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0;
  animation: page-element-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.song-thumb::before {
  display: block;
  width: 100%;
  height: 150px;
  border-left: 2px solid rgba(238, 245, 247, 0.68);
  background:
    var(--song-thumb-image, linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04))),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 24% 20%, rgba(244, 225, 162, 0.55), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(132, 189, 214, 0.5), transparent 38%),
    rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light, normal, screen, screen, normal;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
  content: "";
}

.song-thumb__index {
  color: rgba(229, 241, 244, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.song-thumb__meta {
  display: grid;
  gap: 0.2rem;
}

.song-thumb__meta strong {
  color: #f5fbfc;
  font-size: 1.05rem;
  text-decoration: none;
}

.song-thumb__meta p {
  margin: 0;
  color: rgba(245, 251, 252, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes song-marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.6rem));
  }
}

@media (max-width: 480px) {
  :root {
    --river-scene-scale: 1.4;
  }

  .profile-page {
    padding: 1rem;
  }

  .profile-shell {
    width: 100%;
  }

  .profile-toc {
    top: 1rem;
    right: 1rem;
    gap: 0.45rem;
  }

  .profile-toc a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .profile-content {
    gap: 10vh;
    padding: 0 0 16vh;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .profile-section {
    min-height: 78vh;
    padding: 1.35rem 0;
  }

  .identity-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 1.2rem;
  }

  #identity {
    display: block;
    padding-top: 0;
  }

  #identity .identity-layout {
    width: 100%;
    margin-top: 2.4rem;
  }

  .identity-photo {
    grid-column: auto;
    width: min(220px, 58vw);
    aspect-ratio: 4 / 5;
    justify-self: start;
    z-index: 1;
    order: initial;
  }

  .identity-list {
    grid-column: auto;
    display: grid;
    width: 100%;
  }

  .identity-row {
    display: grid;
    white-space: normal;
    padding: 0.15rem 0 0.85rem;
  }

  .identity-row + .identity-row {
    border-left: 0;
    border-top: 1px solid rgba(232, 241, 244, 0.16);
    padding-left: 0;
    padding-top: 1rem;
  }

  .timeline-item,
  .song-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .song-thumb {
    width: 180px;
  }

  .song-thumb::before {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .river-background__svg .ripple-a rect,
  .river-background__svg .ripple-b rect {
    animation: none;
  }

  .skyline-piece,
  .forest-layer__forest,
  .profile-toc,
  .profile-section > .section-kicker,
  .profile-section > h1,
  .profile-section > h2,
  .identity-layout,
  .timeline-item,
  .song-list,
  .song-thumb {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .song-marquee {
    animation: none;
    width: 100%;
  }

  .ferry {
    display: none;
    animation: none;
  }

  .song-track[aria-hidden="true"] {
    display: none;
  }
}

.vulns-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #163f50;
  isolation: isolate;
}

.vulns-background {
  position: fixed;
  inset: -2rem;
  z-index: 0;
  overflow: hidden;
  background: #163f50;
}

.vulns-background::after {
  position: absolute;
  inset: 0;
  background: rgba(8, 36, 48, 0.5);
  content: "";
}

.vulns-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transform: scale(1.04);
}

.ferry-layer--vulns {
  z-index: -1;
}

.vulns-content {
  position: relative;
  z-index: 1;
  width: min(100% - 4rem, 920px);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) 0 8rem;
}

.vulns-header h1 {
  margin: 0;
  color: #f3f8f9;
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  letter-spacing: -0.05em;
}

.vulns-back {
  display: inline-block;
  margin-bottom: 3rem;
  color: rgba(235, 245, 248, 0.82);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.vulns-back:hover,
.vulns-back:focus-visible {
  color: #fff;
}

.vuln-timeline {
  position: relative;
  display: grid;
  gap: 3.75rem;
  margin: 4.5rem 0 0;
  padding: 0;
  list-style: none;
}

.vuln-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(238, 245, 247, 0.65);
  content: "";
}

.vuln-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vuln-timeline__item::before {
  position: absolute;
  top: 1.8rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid #dceff2;
  border-radius: 50%;
  background: #275c6c;
  box-shadow: 0 0 0 6px rgba(24, 63, 80, 0.7);
  content: "";
  transform: translateX(-50%);
}

.vuln-card {
  width: calc(100% - 3.5rem);
  padding: 1.45rem 1.55rem;
}

.vuln-timeline__item:nth-child(odd) .vuln-card {
  grid-column: 2;
  justify-self: end;
}

.vuln-timeline__item:nth-child(even) .vuln-card {
  grid-column: 1;
  justify-self: start;
}

.vuln-card__date,
.vuln-card__target,
.vuln-card__description {
  margin: 0;
}

.vuln-card__date,
.vuln-card__target,
.vuln-card__severity {
  color: rgba(220, 239, 242, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.vuln-card h2 {
  margin: 0.6rem 0 0.35rem;
  color: #fff;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

.vuln-card__title {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.vuln-card__title:hover,
.vuln-card__title:focus-visible {
  text-decoration-line: underline;
}

.vuln-card__description {
  margin-top: 1rem;
  color: rgba(245, 251, 252, 0.86);
  line-height: 1.65;
}

.vuln-card__severity {
  display: inline-block;
  margin-top: 1.15rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(220, 239, 242, 0.38);
}

.vulns-empty {
  margin-top: 4rem;
  color: rgba(245, 251, 252, 0.8);
}

@media (max-width: 640px) {
  .vulns-content {
    width: min(100% - 2rem, 920px);
  }

  .vuln-timeline {
    gap: 2rem;
    margin-top: 3.5rem;
    padding-left: 2rem;
  }

  .vuln-timeline::before,
  .vuln-timeline__item::before {
    left: 0;
  }

  .vuln-timeline__item {
    display: block;
  }

  .vuln-card,
  .vuln-timeline__item:nth-child(odd) .vuln-card,
  .vuln-timeline__item:nth-child(even) .vuln-card {
    width: 100%;
    justify-self: auto;
  }
}
