

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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f1f1f3;
  --text: #111111;
  --text-soft: #43434a;
  --text-mute: #7a7a83;
  --border: #e1e1e5;
  --border-strong: #cfcfd5;
  --accent: #2f5fe0;
  --accent-text: #2450c8;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --offset-shadow: #e7e7ea;
}

body.dark {
  --bg: #0f0f11;
  --bg-alt: #141417;
  --surface: #17171b;
  --surface-2: #1c1c21;
  --text: #f3f4f6;
  --text-soft: #bdbdc5;
  --text-mute: #86868f;
  --border: #2a2a30;
  --border-strong: #3a3a42;
  --accent: #4f7dff;
  --accent-text: #82a4ff;
  --nav-bg: rgba(15, 15, 17, 0.92);
  --offset-shadow: #22222a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  touch-action: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
dl {
  list-style: none;
}

.container {
  width: min(1080px, 90%);
  margin: 0 auto;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: preloader-fallback 0.5s ease 5s forwards;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader-inner {
  width: min(260px, 70%);
  text-align: center;
}

.preloader-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
}

.preloader-name span {
  color: var(--accent-text);
}

.preloader-bar {
  display: block;
  height: 3px;
  margin: 18px 0 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s linear;
}

.preloader-count {
  font-size: 13px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.music-hint {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-mute);
  font-size: 12px;
  pointer-events: none;
  animation: hint-fade 1.6s ease-in-out infinite;
}

.music-hint[hidden] {
  display: none;
}

body.sm-running .navbar {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.sm-running .music-hint {
  opacity: 0;
  pointer-events: none;
  animation: none;
  transition: opacity 0.2s ease;
}

@keyframes hint-fade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes preloader-fallback {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.transition-section {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  isolation: isolate;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.transition-section.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sky-layer {
  position: absolute;
  inset: 0;
  z-index: -6;
  background: linear-gradient(180deg,
      #131f3a 0%,
      #24345c 42%,
      #4f5a83 66%,
      #9a7d84 86%,
      #c99575 100%);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sky-morning {
  position: absolute;
  inset: 0;
  z-index: -6;
  background: linear-gradient(180deg,
      #86b3ec 0%,
      #9fc4f2 32%,
      #ffd9ae 62%,
      #ffb877 84%,
      #ff9e62 100%);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sky-glow {
  position: absolute;
  inset: 0;
  z-index: -5;
  background: linear-gradient(180deg,
      rgba(255, 160, 90, 0) 38%,
      rgba(255, 170, 95, 0.38) 68%,
      rgba(255, 200, 130, 0.75) 88%,
      rgba(255, 224, 168, 0.95) 100%);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.4px 1.4px at 28% 8%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1.8px 1.8px at 44% 22%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1.3px 1.3px at 62% 12%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.7px 1.7px at 78% 20%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.4px 1.4px at 90% 9%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 32%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.3px 1.3px at 54% 34%, rgba(255, 255, 255, 0.55), transparent 60%);
  opacity: 1;
  will-change: opacity;
}

.mountain-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mountain-layer svg {
  display: block;
  width: 100%;
  height: auto;
}

.mountain-back {
  z-index: -3;
}

.mountain-mid {
  z-index: -2;
}

.mountain-front {
  z-index: 2;
}

.sun {
  position: absolute;
  left: 50%;
  bottom: 26vh;
  z-index: 0;
  width: clamp(5.5rem, 12vw, 9.5rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff8de 0%, #ffe4a8 48%, #ffbf70 100%);
  box-shadow: 0 0 64px 28px rgba(255, 198, 122, 0.55),
    0 0 170px 96px rgba(255, 148, 78, 0.26);
  transform: translate3d(-50%, 34vh, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cloud-back {
  z-index: -1;
}

.cloud-front {
  z-index: 1;
}

.cloud {
  position: absolute;
  width: clamp(12rem, 26vw, 24rem);
  height: auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.cloud-1 {
  left: -12vw;
  bottom: 26vh;
  opacity: 0.55;
}

.cloud-2 {
  left: 32vw;
  bottom: 31vh;
  opacity: 0.45;
}

.cloud-3 {
  right: -9vw;
  bottom: 19vh;
  opacity: 0.7;
}

.cloud-4 {
  left: 7vw;
  bottom: 15vh;
  opacity: 0.6;
}

.birds {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.bird {
  position: absolute;
  width: clamp(2rem, 3.6vw, 3.4rem);
  height: auto;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bird-1 {
  top: 21%;
  left: -10vw;
}

.bird-2 {
  top: 15%;
  left: -16vw;
  width: clamp(1.6rem, 2.9vw, 2.7rem);
}

.bird-3 {
  top: 26%;
  left: -22vw;
  width: clamp(1.5rem, 2.6vw, 2.5rem);
}

.bird-4 {
  top: 12%;
  left: -6vw;
  width: clamp(1.4rem, 2.4vw, 2.3rem);
}

.bird-5 {
  top: 29%;
  left: -14vw;
  width: clamp(1.3rem, 2.2vw, 2.1rem);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--accent-text);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--text-soft);
}

.nav-links a {
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 28px;
  padding: 0 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark .toggle-thumb {
  transform: translateX(30px);
}

.ico {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  color: var(--text-mute);
}

body.dark .ico-moon,
body:not(.dark) .ico-sun {
  color: #ffffff;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 34px;
  padding: 7px 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
}

.sound-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-soft);
}

.sound-toggle:hover {
  border-color: var(--accent);
}

.sound-toggle .ico {
  width: 17px;
  height: 17px;
  color: currentColor;
}

.sound-waves {
  transition: opacity 0.2s ease;
}

.sound-slash {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sound-toggle.off {
  color: var(--text-mute);
}

.sound-toggle.off .sound-waves {
  opacity: 0;
}

.sound-toggle.off .sound-slash {
  opacity: 1;
}

.sound-toggle:not(.off) {
  color: var(--accent-text);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.scroll-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.project-item.reveal:nth-child(2),
.skill.reveal:nth-child(2) { transition-delay: 0.06s; }
.project-item.reveal:nth-child(3),
.skill.reveal:nth-child(3) { transition-delay: 0.12s; }
.project-item.reveal:nth-child(4),
.skill.reveal:nth-child(4) { transition-delay: 0.18s; }
.project-item.reveal:nth-child(5),
.skill.reveal:nth-child(5) { transition-delay: 0.24s; }
.project-item.reveal:nth-child(6),
.skill.reveal:nth-child(6) { transition-delay: 0.30s; }
.project-item.reveal:nth-child(7),
.skill.reveal:nth-child(7) { transition-delay: 0.36s; }
.project-item.reveal:nth-child(8),
.skill.reveal:nth-child(8) { transition-delay: 0.42s; }
.project-item.reveal:nth-child(9),
.skill.reveal:nth-child(9) { transition-delay: 0.48s; }

.hero {
  padding: 76px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-role {
  font-size: 15px;
  color: var(--text-mute);
}

.hero h1 {
  margin-top: 8px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -2px;
}

.hero-handle {
  margin-top: 6px;
  font-size: 17px;
  color: var(--text-mute);
}

.hero-handle strong {
  color: var(--accent-text);
}

.hero-desc {
  margin-top: 18px;
  max-width: 48ch;
  color: var(--text-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-text);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.hero-note {
  margin-top: 26px;
  padding-top: 14px;
  font-size: 14px;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: min(300px, 80%);
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border: 8px solid #ffffff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  cursor: grab;
  touch-action: none;
  transform: rotate(-2deg);
  will-change: transform;
}

body.dark .photo-frame {
  border-color: #e9e9ee;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.photo-frame.is-dragging {
  cursor: grabbing;
}

.tape {
  position: absolute;
  top: 0;
  left: 50%;
  width: 96px;
  height: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateX(-50%) rotate(-2.5deg);
  z-index: 2;
}

body.dark .tape {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.12);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 29px;
  letter-spacing: -1px;
}

.section-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-mute);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.info-list {
  border-top: 1px solid var(--border);
}

.info-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.info-row dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
}

.info-row dd {
  font-size: 15px;
  color: var(--text-soft);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.timeline-year {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.timeline-now {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
}

.timeline-roles {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.timeline-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 32px;
  align-items: start;
}

.timeline-detail {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 150px;
}

.detail-term {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .timeline-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-detail {
    position: static;
  }
}

.role-chip {
  font: inherit;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.role-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.role-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.player-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.player-panel h3 {
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.player {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.player-art {
  flex: 0 0 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 4px;
}

.player-art span {
  color: #ffffff;
  font-size: 26px;
  animation: note-bob 2.6s ease-in-out infinite;
}

@keyframes note-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.player-body {
  flex: 1;
  min-width: 0;
}

.player-title {
  font-size: 15px;
  font-weight: 600;
}

.player-artist {
  font-size: 12px;
  color: var(--text-mute);
}

.player-bar {
  height: 5px;
  margin-top: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.player-bar span {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--accent);
}

.player-times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-mute);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.ctrl-play {
  color: var(--accent-text);
}

.skill-field {
  position: relative;
  height: clamp(460px, 64vh, 620px);
}

.skill-card {
  position: absolute;
  width: clamp(170px, 27%, 250px);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.55);
}

.skill-card.is-visible {
  animation: card-float var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes card-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(var(--rot, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-card.is-visible {
    animation: none;
  }
}

@media (max-width: 860px) {
  .skill-field {
    height: auto;
    display: grid;
    gap: 14px;
  }

  .skill-card {
    position: static;
    width: auto;
    transform: none;
    animation: none !important;
  }
}

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

.skill-name {
  font-size: 15px;
  font-weight: 500;
}

.skill-value {
  font-size: 14px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.skill-track {
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  display: block;
  width: var(--v, 0%);
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cert-card {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.cert-card:hover {
  border-color: var(--border-strong);
}

.cert-media {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.cert-media img {
  width: 100%;
  transition: transform 0.6s ease;
}

.cert-card:hover .cert-media img {
  transform: scale(1.02);
}

.cert-card figcaption {
  padding: 18px 22px 22px;
}

.cert-org {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}

.cert-card h3 {
  margin-top: 4px;
  font-size: 20px;
}

.cert-card p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-soft);
}

.cert-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-list {
  border-top: 1px solid var(--border);
}

.project-item {
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.25s ease;
}

.project-item:hover {
  padding-left: 10px;
}

.project-item:hover .project-name {
  color: var(--accent-text);
}

.project-item::after {
  content: "\25BE";
  position: absolute;
  top: 24px;
  right: 2px;
  font-size: 12px;
  color: var(--text-mute);
  pointer-events: none;
  transition: transform 0.3s ease, color 0.2s ease;
}

.project-item.open::after {
  transform: rotate(180deg);
  color: var(--accent-text);
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-right: 26px;
}

.project-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.project-type {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-mute);
}

.project-item p {
  margin-top: 6px;
  max-width: 70ch;
  font-size: 15px;
  color: var(--text-soft);
}

.project-links {
  display: flex;
  gap: 18px;
}

.project-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.project-item.open .project-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}

.project-detail-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 16px 2px 20px;
}

.detail-box {
  flex: 1 1 210px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  animation: card-float var(--dur, 4.2s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}

.project-item .detail-box p {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.55;
}

.detail-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.detail-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.project-item .detail-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-text);
}

.detail-count {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.detail-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-mute);
}

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

.footer {
  padding: 54px 0 28px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin-top: 12px;
  max-width: 42ch;
  font-size: 15px;
  color: var(--text-soft);
}

.footer-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links h4 {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links em {
  margin-left: 4px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-mute);
}

.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-mute);
}

.license {
  max-width: 92ch;
  margin-top: 8px;
  line-height: 1.75;
}

.license strong {
  color: var(--text-soft);
}

.credit {
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-photo {
    order: -1;
  }

  .hero h1 {
    font-size: 37px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 5%;
    border-top: 1px solid var(--border);
  }

  .hero {
    padding: 46px 0 42px;
  }

  .section {
    padding: 46px 0;
  }

  .section-title {
    font-size: 25px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .info-row dt:empty {
    display: none;
  }

  .project-head {
    flex-direction: column;
    gap: 2px;
  }

  .player {
    flex-direction: column;
  }

  .player-art {
    width: 100%;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .preloader {
    display: none;
  }

  .skill-fill {
    transition: none;
  }

  .player-art span {
    animation: none;
  }
}
