body {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #040814;
  color: #f6f7fb;
}

.sp-header {
  background: radial-gradient(circle at top left, #182a5a 0, #040814 55%, #020308 100%);
  min-height: 100vh;
  padding-top: 64px;
}

.sp-navbar {
  background: rgba(3, 8, 29, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sp-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
}

.sp-hero {
  padding-top: 96px;
  padding-bottom: 96px;
}

.sp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9aa4d9;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.sp-hero-title {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sp-hero-subtitle {
  font-size: 1.02rem;
  max-width: 32rem;
  color: #c2c7e0;
}

.sp-hero-rotator {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.sp-hero-label {
  color: #9aa4d9;
}

.sp-hero-chip {
  background: rgba(105, 142, 255, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(105, 142, 255, 0.4);
  font-weight: 600;
  color: #e0e4ff;
}

.sp-hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sp-portrait-card {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), rgba(11, 16, 36, 0.96));
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.sp-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  background-image: url("../old/v2/images/profile.jpeg");
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(252, 211, 77, 0.7);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75);
}

.sp-portrait-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #c4c8e3;
}

.sp-section {
  padding: 72px 0;
}

.sp-section-alt {
  background: radial-gradient(circle at top right, #121832 0, #050816 60%, #020308 100%);
}

.sp-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.sp-section-tag {
  font-size: 0.9rem;
  color: #a5aedb;
}

.sp-subsection-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #cfd3ff;
}

.sp-facts-card {
  background: rgba(7, 11, 30, 0.9);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.75rem;
}

.sp-project-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.sp-toggle-btn {
  border: none;
  background: transparent;
  color: #c7d2fe;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.sp-toggle-btn--active {
  background: rgba(59, 130, 246, 0.2);
  color: #e5e7ff;
}

.sp-project-slider {
  position: relative;
}

.sp-project-group {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sp-project-group--active {
  opacity: 1;
  transform: translateX(0);
}

.sp-project-group:not(.sp-project-group--active) {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.sp-facts-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.sp-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sp-facts-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: #d0d4f1;
}

.sp-facts-list li span:first-child {
  color: #8e96c5;
}

.sp-project-card {
  background: linear-gradient(135deg, rgba(11, 15, 34, 0.98), rgba(16, 27, 69, 0.98));
  border-radius: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sp-project-card--clickable {
  cursor: pointer;
}

.sp-project-card--clickable:hover {
  border-color: rgba(129, 140, 248, 0.9);
}

.sp-project-card--subtle {
  background: rgba(10, 14, 33, 0.96);
}

.sp-project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.sp-project-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.sp-project-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 198, 255, 0.5);
  color: #bec7ff;
}

.sp-status-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sp-status-pill--ongoing {
  border-color: rgba(56, 189, 248, 0.8);
  color: #7dd3fc;
}

.sp-status-pill--finished {
  border-color: rgba(74, 222, 128, 0.8);
  color: #bbf7d0;
}

.sp-project-body {
  font-size: 0.95rem;
  color: #c9cee9;
  margin-bottom: 1rem;
}

.sp-project-footer {
  font-size: 0.9rem;
}

.sp-project-note {
  color: #9ea6d2;
}

.sp-project-open {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: #e5e7eb;
}

.sp-project-open:hover {
  border-color: rgba(129, 140, 248, 0.9);
}

.sp-link {
  color: #facc6b;
  text-decoration: none;
  position: relative;
}

.sp-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #facc6b, transparent);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sp-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.sp-music-card {
  border-radius: 1.25rem;
  border: 1px dashed rgba(250, 204, 21, 0.6);
  padding: 1.4rem 1.6rem;
  background: rgba(7, 11, 31, 0.9);
}

.sp-music-line {
  margin: 0 0 0.4rem;
  font-weight: 500;
}

.sp-music-footnote {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #aeb6de;
}

.sp-contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp-contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.sp-contact-list span {
  width: 4.5rem;
  color: #8e96c5;
}

.sp-contact-list a {
  color: #e4e7ff;
  text-decoration: none;
}

.sp-contact-list a:hover {
  text-decoration: underline;
}

.sp-form-card {
  background: rgba(7, 11, 31, 0.96);
  border-radius: 1.25rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-form-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sp-form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.sp-form-status--ok {
  color: #4ade80;
}

.sp-form-status--error {
  color: #fca5a5;
}

.sp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0 1.5rem;
  background: #020308;
}

.sp-footer-text {
  font-size: 0.9rem;
  color: #a4accf;
  max-width: 52ch;
}

.sp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.sp-footer-links a {
  color: #d8dcff;
  text-decoration: none;
}

.sp-footer-links a:hover {
  text-decoration: underline;
}

.sp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.sp-modal {
  width: min(1120px, 100% - 3rem);
  height: auto;
  max-height: calc(100vh - 3rem);
  background: #020617;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.25rem 1.5rem 1.5rem;
  overflow: auto;
}

.sp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.sp-modal-title {
  font-size: 1.35rem;
  margin: 0;
}

.sp-modal-main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 0.4rem;
}

.sp-modal-info {
  flex: 1 1 0;
  min-width: 0;
}

.sp-modal-period {
  font-size: 0.9rem;
  color: #9ca3af;
}

.sp-modal-tech {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #e5e7eb;
}

.sp-modal-list {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.sp-modal-list li + li {
  margin-top: 0.25rem;
}

.sp-modal-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sp-modal-frame-wrapper {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.sp-modal-frame-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: none;
  background: #020617;
}

.sp-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.4rem;
}

@media (max-width: 767px) {
  .sp-header {
    padding-top: 56px;
  }

  .sp-hero {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .sp-portrait-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .sp-modal {
    width: min(960px, 100% - 2rem);
    height: auto;
    max-height: calc(100vh - 3rem);
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
  }

  .sp-modal-main {
    flex-direction: column;
  }

  .sp-modal-frame-wrapper {
    display: none !important;
  }

  .sp-modal-list {
    display: none;
  }
}
