/* ==========================================
   LEGACY BASE (inlined from legacy-style.css)
========================================== */
body {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  background: #f8fafc;
  padding-top: 80px;
  overflow-y: scroll;
}

body.menu-open {
  overflow: hidden;
}

h2 {
  font-size: clamp(24px, 5vw, 60px);
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  overflow: hidden;
}

header {
  background: #7aa9ff;
  color: white;
  padding: clamp(15px, 4vw, 20px) clamp(20px, 6vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  flex-wrap: wrap;
  width: 100%;
}
header h1 {
  margin: 0;
  font-size: 24px;
}
header h1 a {
  color: white;
  text-decoration: none;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
}

.menu-toggle:hover {
  transform: scale(1.15) rotate(5deg);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle .material-symbols-outlined {
  font-size: 28px;
}

.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
  border-left: 1px solid #e0e0e0;
  overflow-y: auto;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 16px rgba(0,0,0,0.08);
}

.sidebar.active {
  transform: translateX(0);
}

body.menu-open::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sidebar-header {
  padding: 24px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #7aa9ff;
  border-bottom: 2px solid #7aa9ff;
  background: white;
  user-select: none;
  -webkit-user-select: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(122, 169, 255, 0.1);
}

.sidebar-menu {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
}

.sidebar-menu li {
  border-bottom: none;
  padding: 4px 12px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: #555;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  border-radius: 8px;
  position: relative;
  font-weight: 500;
}

.sidebar-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #7aa9ff;
  border-radius: 0 3px 3px 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu a:hover {
  background: #e3f2fd;
  color: #7aa9ff;
  transform: translateX(-4px);
}

.sidebar-menu a:hover::before {
  height: 24px;
}

.sidebar-menu .material-symbols-outlined {
  font-size: 22px;
  color: #7aa9ff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu a:hover .material-symbols-outlined {
  transform: translateX(2px);
  font-variation-settings: 'FILL' 1;
}

@media (max-width: 1000px) {
  body {
    padding-right: 0;
  }

  .sidebar {
    width: 280px;
  }

  h2 {
    font-size: clamp(24px, 5vw, 36px);
  }

  .cards {
    grid-template-columns: 1fr !important;
  }

  .scroll-text-section {
    min-height: auto;
    padding: 50px 20px;
  }

  .scroll-text-container {
    gap: 80px;
  }
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.hero-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-icon {
  position: absolute;
  font-size: 48px;
  color: rgba(122, 169, 255, 0.4);
  opacity: 0;
  animation: floatIcon 4s ease-in-out infinite;
}

.hero-icon-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.hero-icon-2 {
  top: 15%;
  right: 20%;
  animation-delay: 0.8s;
}

.hero-icon-3 {
  top: 60%;
  left: 10%;
  animation-delay: 1.6s;
}

.hero-icon-4 {
  top: 65%;
  right: 12%;
  animation-delay: 2.4s;
}

.hero-icon-5 {
  top: 40%;
  left: 8%;
  animation-delay: 3.2s;
}

.hero-icon-6 {
  top: 35%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes floatIcon {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1.1) rotate(15deg);
  }
}

.hero-title {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  margin: 0 0 30px;
  color: #5f5f5f;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.1),
    0 4px 20px rgba(192, 192, 192, 0.4),
    0 0 40px rgba(138, 138, 138, 0.3);
  animation: fadeInDown 1s ease-out;
  letter-spacing: 4px;
  line-height: 1.2;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.15));
}

.hero-subtitle {
  font-size: clamp(14px, 3vw, 18px);
  max-width: 90vw;
  margin: 0 auto;
  line-height: 1.5;
  color: #8b8b8b;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: fadeInUp 0.8s ease-out 0.3s both;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-indicator .material-symbols-outlined {
  font-size: 40px;
  color: #7aa9ff;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.7;
  }
}

.scroll-text-section {
  min-height: auto;
  padding: clamp(50px, 8vw, 100px) clamp(15px, 5vw, 20px) clamp(60px, 10vw, 150px);
  position: relative;
  z-index: 1;
  background: #f8fafc;
}

.scroll-text-container {
  max-width: 1000px;
  margin: 0 auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(60px, 10vw, 150px);
  padding: 0;
}

.scroll-text {
  font-size: clamp(24px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.8;
  color: #1a1a1a;
  text-align: center;
  will-change: opacity, transform;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
}

.char.char-animate {
  animation: charSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: var(--char-delay, 0s);
}

.scroll-text-1 {
  animation: textSlideUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-text-2 {
  animation: textSlideUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
}

@keyframes charSlideUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  70% {
    opacity: 1;
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textSlideUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textRevealBold {
  0% {
    opacity: 0;
    transform: translateY(80px) scaleY(0.5) rotateX(45deg) scaleX(0.8);
    filter: blur(10px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px) scaleY(1.1) rotateX(-5deg) scaleX(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1) rotateX(0deg) scaleX(1);
    filter: blur(0px);
  }
}

@keyframes textRevealEva {
  0% {
    opacity: 0;
    transform: translateY(40px) scaleY(0.8);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  70% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(15px, 4vw, 30px);
  padding: clamp(30px, 5vw, 60px) clamp(15px, 5vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  text-align: center;
  padding: clamp(15px, 3vw, 30px) clamp(10px, 3vw, 20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(40px);
}

.card.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
  border-color: #7aa9ff;
  background: rgba(255, 255, 255, 1);
}
.card-icon {
  background: #7aa9ff;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.card-icon .material-symbols-outlined {
  font-size: 32px;
}
.cards a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cards.development_diary {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px;
}

footer {
  background: #7aa9ff;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content .sns-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-content .sns-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.footer-content .sns-links a:hover {
  opacity: 0.7;
}

.footer-content p {
  margin: 0;
  color: white;
}

.timeline-section {
  padding: clamp(30px, 5vw, 60px) clamp(15px, 5vw, 20px);
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #7aa9ff;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.timeline-node {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 50px);
  opacity: 0;
  transform: translateY(40px);
  z-index: 1;
}

.timeline-node.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.timeline-node:nth-child(odd) {
  flex-direction: row;
}

.timeline-node:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 0 0 120px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #dce9ff;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.timeline-node:nth-child(odd) .timeline-date {
  text-align: right;
  padding-right: 20px;
}

.timeline-node:nth-child(even) .timeline-date {
  text-align: left;
  padding-left: 20px;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  background: #7aa9ff;
  border: 3px solid white;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px #7aa9ff;
}

.timeline-node:nth-child(odd) .timeline-content::before {
  left: -37px;
}

.timeline-node:nth-child(even) .timeline-content::before {
  right: -37px;
}

.timeline-icon {
  display: inline-block;
  background: #7aa9ff;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
}

.timeline-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #333;
}

.timeline-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-node {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 50px;
    gap: 5px;
    margin-bottom: 30px;
  }

  .timeline-node:nth-child(even) {
    flex-direction: column !important;
  }

  .timeline-date {
    text-align: left !important;
    margin-bottom: 5px;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .timeline-content::before {
    left: -37px !important;
  }
}
@media (max-width: 768px) {
  .hero h2 {
  font-size: 32px;
  }
}

.logo-links {
  display: flex;
  align-items: center;
}

.logo-links h1 {
  margin: 0;
  font-size: 24px;
}

.sns-links a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
  font-size: 14px;
}

.projects {
  padding: clamp(30px, 5vw, 40px) clamp(15px, 5vw, 20px);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.projects h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #004aad;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(15px, 4vw, 30px);
  margin-bottom: 40px;
}

.project-list:last-child {
  margin-bottom: 0;
}

.project-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(40px);
}

.project-card.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #333;
}

.project-card p {
  margin: 0 0 15px;
  color: #666;
  font-size: 16px;
  line-height: 1.4;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.project-tag {
  display: inline-block;
  background: #e3f2fd;
  color: #7aa9ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bbdefb;
}

.project-link {
  color: #7aa9ff;
  font-weight: bold;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.intro-section {
  padding: clamp(30px, 5vw, 60px) clamp(15px, 5vw, 20px);
  max-width: 1000px;
  margin: 0 auto;
}

.intro-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.intro-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(40px);
}

.intro-card.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.intro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(122, 169, 255, 0.15);
  border-color: #7aa9ff;
}

.card-icon-container {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #7aa9ff 0%, #5a8fe5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.intro-card:hover .card-icon-container {
  transform: scale(1.1) rotate(-5deg);
}

.card-main-icon {
  font-size: 36px !important;
  color: white;
}

.intro-card h3 {
  font-size: 22px;
  color: #333;
  margin: 0 0 20px;
  font-weight: 700;
}

.intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.intro-list li:last-child {
  border-bottom: none;
}

.intro-list li:hover {
  padding-left: 8px;
  color: #7aa9ff;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e3f2fd;
  color: #7aa9ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #bbdefb;
  min-width: 110px;
  text-align: center;
}

.intro-badge.success {
  background: #e8f5e9;
  color: #4caf50;
  border-color: #c8e6c9;
}

@media (max-width: 768px) {
  .intro-section {
    padding: 40px 20px;
  }

  .intro-card {
    padding: 30px 20px;
  }

  .intro-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.process-section {
  padding: 80px 20px;
  background: #f8fafc;
}

.process-section h2 {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 60px);
  font-size: clamp(24px, 5vw, 36px);
  color: #333;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 3vw, 20px);
}

.process-step {
  flex: 0 0 clamp(120px, 20vw, 180px);
  text-align: center;
  padding: clamp(15px, 3vw, 30px) clamp(10px, 2vw, 20px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(40px);
}

.process-step.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(122, 169, 255, 0.15);
}

.process-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7aa9ff 0%, #5a8fe5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.process-step:hover .process-icon {
  transform: scale(1.1) rotate(10deg);
}

.process-icon .material-symbols-outlined {
  font-size: 32px;
  color: white;
}

.process-step h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 10px;
}

.process-step p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.process-arrow {
  flex: 0 0 40px;
  text-align: center;
}

.process-arrow .material-symbols-outlined {
  font-size: 32px;
  color: #7aa9ff;
}

@media (max-width: 768px) {
  .process-arrow {
    display: none;
  }

  .process-step {
    flex: 0 0 100%;
    max-width: 400px;
  }
}

.roadmap-section {
  padding: clamp(40px, 8vw, 80px) clamp(15px, 5vw, 20px);
  background: #f8fafc;
}

.roadmap-section h2 {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 60px);
  font-size: clamp(24px, 5vw, 36px);
  color: #333;
}

.roadmap-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.roadmap-container::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7aa9ff 0%, #5a8fe5 100%);
}

.roadmap-item {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.roadmap-item.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.roadmap-date {
  flex: 0 0 80px;
  font-weight: 700;
  font-size: 16px;
  color: #7aa9ff;
  text-align: right;
  padding-top: 10px;
}

.roadmap-content {
  flex: 1;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.roadmap-icon {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.roadmap-icon.completed {
  background: #4caf50;
}

.roadmap-icon.current {
  background: #7aa9ff;
  animation: pulse 2s ease-in-out infinite;
}

.roadmap-icon.future {
  background: #bdbdbd;
}

.roadmap-icon .material-symbols-outlined {
  font-size: 24px;
  color: white;
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 12px rgba(122, 169, 255, 0.3);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(122, 169, 255, 0.6);
  }
}

.roadmap-content h3 {
  font-size: 20px;
  color: #333;
  margin: 0 0 10px;
}

.roadmap-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .roadmap-container::before {
    left: 60px;
  }

  .roadmap-date {
    flex: 0 0 60px;
    font-size: 14px;
  }

  .roadmap-icon {
    left: -50px;
    width: 36px;
    height: 36px;
  }

  .roadmap-icon .material-symbols-outlined {
    font-size: 20px;
  }
}

.project-detail {
  padding: clamp(20px, 4vw, 40px) clamp(15px, 5vw, 20px);
  max-width: 900px;
  margin: 0 auto;
}

.detail-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detail-section {
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(40px);
}

.detail-section.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7aa9ff;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.detail-icon .material-symbols-outlined {
  font-size: 28px;
}

.detail-section h3 {
  font-size: 28px;
  color: #333;
  margin: 0 0 20px;
}

.detail-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 12px 0 12px 35px;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #7aa9ff;
  font-weight: bold;
  font-size: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 40px !important;
  color: #7aa9ff;
  margin-bottom: 10px;
}

.feature-card h4 {
  font-size: 18px;
  color: #333;
  margin: 10px 0;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tech-tag {
  background: #7aa9ff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.detail-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #7aa9ff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s;
}

.detail-button:hover {
  background: #5a8fe5;
}

.detail-button.secondary {
  background: #6c757d;
}

.detail-button.secondary:hover {
  background: #5a6268;
}

.detail-button .material-symbols-outlined {
  font-size: 20px;
}

@media (max-width: 768px) {
  .detail-container {
    padding: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .detail-links {
    flex-direction: column;
  }

  .detail-button {
    justify-content: center;
  }
}

/* ==========================================
   LEGACY THEME BRIDGE (inlined from legacy-theme-bridge.css)
========================================== */
:root {
  --bridge-bg: #07071a;
  --bridge-text: #eeeeff;
  --bridge-muted: rgba(226, 226, 240, 0.76);
  --bridge-surface: rgba(255, 255, 255, 0.1);
  --bridge-surface-strong: rgba(255, 255, 255, 0.14);
  --bridge-border: rgba(255, 255, 255, 0.22);
  --bridge-purple: #9b5de5;
  --bridge-cyan: #00d4ff;
  --bridge-sky: #7aa9ff;
}

body {
  color: var(--bridge-text);
  background: var(--bridge-bg);
  font-family: "Zen Maru Gothic", "Space Grotesk", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
  radial-gradient(ellipse 85% 60% at 14% -8%, rgba(155, 93, 229, 0.2) 0%, transparent 66%),
  radial-gradient(ellipse 65% 50% at 86% 110%, rgba(0, 212, 255, 0.16) 0%, transparent 68%),
  radial-gradient(ellipse 45% 42% at 54% 46%, rgba(122, 169, 255, 0.12) 0%, transparent 62%);
}

body::after {
  z-index: -1;
  background-image:
  linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
}

#webgl-canvas {
  opacity: 0.2;
  filter: saturate(0.7) brightness(0.75);
}

header,
.header {
  background: rgba(6, 8, 28, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

header h1 a,
.menu-toggle,
nav a {
  color: #f7f8ff;
}

.sidebar {
  background: rgba(10, 12, 35, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-header {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bridge-cyan);
  border-bottom-color: rgba(0, 212, 255, 0.32);
}

.sidebar-menu a {
  color: var(--bridge-muted);
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-menu .material-symbols-outlined {
  color: var(--bridge-cyan);
}

.hero h1,
.hero h2 {
  color: #f6f8ff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero p,
.hero-subtitle {
  color: var(--bridge-muted);
}

.scroll-text-section {
  background: transparent;
}

.scroll-text {
  color: #f1f4ff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
}

.cards,
.project-list,
.features-grid,
.process-container {
  gap: 1.25rem;
}

.card,
.project-card,
.intro-card,
.process-step,
.roadmap-content,
.timeline-content,
.feature-card {
  background: var(--bridge-surface) !important;
  border: 1px solid var(--bridge-border) !important;
  color: var(--bridge-text) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
}

.card:hover,
.project-card:hover,
.intro-card:hover,
.feature-card:hover {
  border-color: rgba(155, 93, 229, 0.66) !important;
  box-shadow: 0 16px 36px rgba(155, 93, 229, 0.26) !important;
}

.card h3,
.project-card h3,
.intro-card h3,
.process-step h3,
.timeline-content h3,
.detail-section h3,
.detail-section h4,
.roadmap-content h3 {
  color: #f8f9ff !important;
}

.card p,
.project-card p,
.intro-list li,
.process-step p,
.timeline-content p,
.detail-section p,
.detail-section li,
.roadmap-content p {
  color: var(--bridge-muted) !important;
}

.card-icon,
.card-icon-container,
.process-icon,
.timeline-icon,
.detail-icon,
.roadmap-icon,
.feature-icon {
  background: linear-gradient(135deg, var(--bridge-purple), var(--bridge-cyan)) !important;
  color: #ffffff !important;
}

.intro-badge,
.project-tag,
.tech-tag {
  background: rgba(122, 169, 255, 0.24) !important;
  border: 1px solid rgba(122, 169, 255, 0.45);
  color: #eaf1ff !important;
}

.project-link {
  color: #d7e8ff !important;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.timeline::before {
  background: linear-gradient(to bottom, var(--bridge-purple), var(--bridge-cyan));
}

.timeline-date,
.roadmap-date {
  color: #c8dbff !important;
}

footer {
  background: rgba(5, 7, 24, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-content p {
  color: var(--bridge-muted);
}

.footer-content .sns-links img,
.footer-content .sns-links .material-symbols-outlined {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
}

.portfolio-menu-list a {
  color: #f6f8ff;
}

.footer-copy,
.footer-nav a {
  color: rgba(232, 239, 255, 0.84);
}

.hero p,
.hero-subtitle {
  color: rgba(232, 239, 255, 0.84);
}

.detail-section strong {
  color: #ffffff;
}

.detail-section h4 {
  color: #f4f7ff;
  margin: 1.1rem 0 .7rem;
}

.detail-button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================
   CONTACT PAGE (inlined from contact.css)
========================================== */
.contact-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}

.contact-hero .sec-eyebrow { margin-bottom: .6rem; }

.contact-hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

.contact-hero p {
  color: var(--muted);
  font-size: clamp(.88rem, 2vw, 1rem);
  max-width: 480px;
  margin: 0 auto;
}

.contact-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.contact-card:hover {
  border-color: rgba(155,93,229,.55);
  box-shadow: 0 0 30px rgba(155,93,229,.22), 0 4px 24px rgba(0,0,0,.4);
  transform: translateY(-3px);
}

.cc-icon {
  font-size: 1.75rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cc-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .15rem;
}

.cc-value {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.cc-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: border-color .2s, color .2s;
}

.cc-value a:hover {
  color: #fff;
  border-color: var(--cyan);
}

.cc-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .1rem;
}

.contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3.5rem 0 3rem;
}

.contact-note {
  background: rgba(155,93,229,.08);
  border: 1px solid rgba(155,93,229,.25);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}

.contact-note strong {
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  letter-spacing: .1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 0;
}

.back-link:hover { color: var(--text); }

/* ==========================================
   LOADER HEADER HIDE
========================================== */
body.is-loading .site-header {
  display: none;
}

/* ==========================================
   RESET & BASE
========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #07071a;
  --surface:   rgba(255,255,255,.10);
  --border:    rgba(255,255,255,.20);
  --text:      #eeeeff;
  --muted:     rgba(226,226,240,.72);
  --purple:    #9b5de5;
  --cyan:      #00d4ff;
  --pink:      #f72585;
  --sky:       #7aa9ff;
  --font:      'Space Grotesk', system-ui, sans-serif;
  --orbit-r:   220px;
  --card-size: 92px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body.has-site-header {
  padding-top: 76px;
}

/* ==========================================
   SHARED SHELL
========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(7, 7, 26, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header-inner {
  max-width: 1120px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  text-align: left;
  font-size: .96rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f7f8ff;
  font-weight: 600;
}

.site-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-brand-text {
  line-height: 1;
}

.site-menu-toggle {
  margin-left: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #e7ecff;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.site-menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(0, 212, 255, .42);
}

.portfolio-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 84vw);
  height: 100svh;
  z-index: 1300;
  transform: translateX(100%);
  transition: transform .28s ease;
  background: rgba(8, 10, 32, .95);
  border-left: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, .42) rgba(255, 255, 255, .06);
}

.portfolio-menu::-webkit-scrollbar {
  width: 10px;
}

.portfolio-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.portfolio-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(122, 169, 255, .62), rgba(0, 212, 255, .62));
  border-radius: 999px;
  border: 2px solid rgba(8, 10, 32, .95);
}

.portfolio-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(122, 169, 255, .82), rgba(0, 212, 255, .82));
}

.portfolio-menu.open {
  transform: translateX(0);
}

.portfolio-menu-title {
  color: var(--cyan);
  letter-spacing: .18em;
  font-size: .68rem;
  margin-bottom: .95rem;
}

.portfolio-menu-list {
  list-style: none;
  display: grid;
  gap: .45rem;
}

.portfolio-menu-list a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: .72rem .8rem;
  font-size: .86rem;
  background: rgba(255, 255, 255, .04);
  transition: border-color .2s ease, background .2s ease;
}

.portfolio-menu-list a:hover {
  border-color: rgba(0, 212, 255, .45);
  background: rgba(255, 255, 255, .09);
}

.portfolio-menu-list .menu-ja {
  display: block;
  font-size: .86rem;
  line-height: 1.25;
}

.portfolio-menu-list .menu-en {
  display: block;
  margin-top: .18rem;
  font-size: .64rem;
  letter-spacing: .08em;
  color: rgba(230, 238, 255, .62);
  text-transform: uppercase;
}

body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(3, 4, 15, .52);
}

.site-footer {
  position: relative;
  z-index: 20;
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  background: rgba(0, 0, 0, .4);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================
   BACKGROUND
========================================== */
.bg-aurora,
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particles-bg .particles-js-canvas-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .9;
}

.bg-aurora {
  background:
    radial-gradient(ellipse 80% 55% at 15% -5%,  rgba(155,93,229,.22) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 88% 108%, rgba(0,212,255,.16)  0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 55% 45%,  rgba(247,37,133,.07) 0%, transparent 60%);
  animation: auroraShift 14s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from { opacity: .75; transform: scale(1);    }
  to   { opacity: 1;   transform: scale(1.06); }
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ==========================================
   HERO / ORBIT
========================================== */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  min-height: 100svh;
  padding: 3rem 1rem;
}

/* Scene */
.orbit-scene {
  position: relative;
  width:  min(500px, 90vw);
  height: min(500px, 90vw);
}

.orbit-links {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.orbit-links line {
  stroke: rgba(185, 210, 255, .35);
  stroke-width: 1.3;
  stroke-linecap: round;
}

/* Decoration rings */
.ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1px solid;
}

.ring--outer {
  width:  100%; height: 100%;
  border-color: rgba(155,93,229,.18);
  box-shadow:
    0 0 55px rgba(155,93,229,.07),
    inset 0 0 55px rgba(155,93,229,.04);
  animation: ringPulse 5s ease-in-out infinite;
}

.ring--inner {
  width:  30%; height: 30%;
  border-color: rgba(0,212,255,.22);
  animation: ringPulse 5s ease-in-out infinite reverse;
}

@keyframes ringPulse {
  0%, 100% { opacity: .45; }
  50%       { opacity: 1;   }
}

/* Center hub */
.hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 32%; height: 32%;
  min-width: 152px; min-height: 152px;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  padding: 0;
  animation: none;
}

.hub-glow {
  display: none;
}

@keyframes hubGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(155,93,229,.32), 0 0 60px rgba(155,93,229,.1);  }
  50%       { box-shadow: 0 0 40px rgba(155,93,229,.58), 0 0 95px rgba(155,93,229,.22); }
}

.hub-name {
  font-size: clamp(.6rem, 1.4vw, .72rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  color: #fff;
  overflow-wrap: break-word;
}

.hub-hint {
  font-size: clamp(.52rem, 1.1vw, .62rem);
  color: var(--muted);
  letter-spacing: .1em;
}

.hub-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: none;
}

/* Orbiting items */
.orbit-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 7;
  animation: doOrbit 24s linear infinite;
  animation-delay: var(--dynamic-delay, calc(var(--i) * -4.8s)); /* 24s / 5 items = 4.8s each */
}

.orbit-item.orbit-i-0 { --i: 0; }
.orbit-item.orbit-i-1 { --i: 1; }
.orbit-item.orbit-i-2 { --i: 2; }
.orbit-item.orbit-i-3 { --i: 3; }
.orbit-item.orbit-i-4 { --i: 4; }

.orbit-item.is-paused {
  animation-play-state: paused;
}

.orbit-item.is-freeze {
  animation: none;
}

.orbit-item.is-resetting {
  transition: transform .45s ease;
}

@keyframes doOrbit {
  from { transform: rotate(0deg)   translateX(var(--orbit-r)) rotate(0deg);   }
  to   { transform: rotate(360deg) translateX(var(--orbit-r)) rotate(-360deg); }
}

.nav-card {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  width:  var(--card-size);
  height: var(--card-size);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  text-decoration: none;
  color: var(--text);
  transition:
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.nav-card:hover,
.nav-card:focus-visible {
  background: rgba(155,93,229,.18);
  border-color: rgba(155,93,229,.72);
  box-shadow: 0 0 26px rgba(155,93,229,.4), 0 0 65px rgba(155,93,229,.12);
  transform: translate(-50%, -50%) scale(1.12);
  outline: none;
}

.nav-icon {
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-label {
  font-size: clamp(.64rem, 1.6vw, .74rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

.nav-sub {
  font-size: .52rem;
  letter-spacing: .05em;
  color: rgba(232, 239, 255, 0.78);
  line-height: 1;
}

/* Scroll hint arrow */
.scroll-hint {
  font-size: 1.2rem;
  color: var(--muted);
  text-decoration: none;
  animation: bounce 2s ease-in-out infinite;
  transition: color .2s;
}

.hero-note {
  max-width: 640px;
  margin: .35rem auto 0;
  padding: 0 1rem;
  text-align: center;
  font-size: .9rem;
  letter-spacing: .04em;
  color: rgba(232, 239, 255, 0.84);
}

.scroll-drop {
  position: absolute;
  top: 71svh;
  right: 56px;
  left: auto;
  z-index: 10;
  transform: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .42rem;
  text-decoration: none;
  color: rgba(228, 236, 255, 0.82);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.scroll-drop::after {
  content: '';
  width: 1px;
  height: calc(35svh - 6rem);
  margin-top: .18rem;
  background: linear-gradient(
    to bottom,
    rgba(196, 220, 255, 0.7),
    rgba(196, 220, 255, 0)
  );
  box-shadow: 0 0 10px rgba(122, 216, 255, 0.24);
}

.scroll-drop-label {
  font-size: .62rem;
  font-weight: 600;
}

.scroll-drop-track {
  position: relative;
  width: 34px;
  height: 88px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(155, 93, 229, 0.08));
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.scroll-star {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(calc(-50% + 1px));
  font-size: 1.02rem;
  line-height: 1;
  color: #f2f6ff;
  text-shadow: 0 0 14px rgba(175, 210, 255, 0.85);
  animation: starWiggle 2.7s ease-in-out infinite;
}

.scroll-fall {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 42%, #7ad8ff 78%);
  box-shadow: 0 0 10px rgba(122, 216, 255, 0.75);
  animation: starDrop 1.5s cubic-bezier(.2, .64, .35, 1) infinite;
}

.scroll-drop:hover,
.scroll-drop:focus-visible {
  color: #f8fbff;
  outline: none;
}

.scroll-drop:hover .scroll-drop-track,
.scroll-drop:focus-visible .scroll-drop-track {
  border-color: rgba(122, 216, 255, 0.56);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.11),
    0 12px 30px rgba(72, 116, 220, 0.28);
}

@keyframes starWiggle {
  0%, 100% { transform: translateX(calc(-50% + 1px)) rotate(0deg); }
  25%      { transform: translateX(calc(-50% - 2px)) rotate(-9deg); }
  70%      { transform: translateX(calc(-50% + 3px)) rotate(7deg); }
}

@keyframes starDrop {
  0% {
    transform: translateX(-50%) translateY(0) scale(.6);
    opacity: 0;
  }
  15% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: .95;
  }
  78% {
    transform: translateX(-50%) translateY(46px) scale(.9);
    opacity: .85;
  }
  100% {
    transform: translateX(-50%) translateY(58px) scale(.35);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);    opacity: .5; }
  50%       { transform: translateY(6px); opacity: 1;   }
}

/* Index reveal */
.index-page .orbit-scene,
.index-page .hero-note,
.index-page .scroll-drop,
.index-page .legacy .sec-head,
.index-page .legacy-card {
  opacity: 0;
  transform: translateY(22px);
  animation: indexRiseIn .72s cubic-bezier(.2, .72, .2, 1) forwards;
}

.index-page .orbit-scene { animation-delay: .08s; }
.index-page .hero-note { animation-delay: .24s; }
.index-page .scroll-drop { animation-delay: .32s; }
.index-page .legacy .sec-head { animation-delay: .42s; }

.index-page .legacy-card:nth-child(1) { animation-delay: .52s; }
.index-page .legacy-card:nth-child(2) { animation-delay: .58s; }
.index-page .legacy-card:nth-child(3) { animation-delay: .64s; }
.index-page .legacy-card:nth-child(4) { animation-delay: .70s; }
.index-page .legacy-card:nth-child(5) { animation-delay: .76s; }
.index-page .legacy-card:nth-child(6) { animation-delay: .82s; }
.index-page .legacy-card:nth-child(7) { animation-delay: .88s; }

@keyframes indexRiseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==========================================
   CONTAINER
========================================== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================
   UPDATES
========================================== */
.updates {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 7rem;
}

/* ==========================================
   LEGACY PORTFOLIO
========================================== */
.legacy {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 3rem;
}

.legacy-head .sec-eyebrow {
  color: var(--sky);
}

.legacy-head .sec-line {
  background: linear-gradient(90deg, var(--sky), var(--cyan));
}

.legacy-copy {
  font-family: 'Zen Maru Gothic', sans-serif;
  text-align: center;
  color: rgba(232, 240, 255, .92);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
}

.legacy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.legacy-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 18px;
  padding: 1.25rem 1.1rem 1.1rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(122, 169, 255, .32);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.legacy-card:hover,
.legacy-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(122, 169, 255, .7);
  box-shadow: 0 14px 35px rgba(72, 116, 220, .25);
  outline: none;
}

.legacy-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  background: var(--sky);
  margin-bottom: .7rem;
}

.legacy-card h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.06rem;
  color: #30415e;
  margin-bottom: .45rem;
}

.legacy-card p {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: .84rem;
  color: #576885;
  line-height: 1.65;
}

.sec-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sec-eyebrow {
  font-size: .7rem;
  letter-spacing: .35em;
  color: var(--purple);
  font-weight: 400;
  margin-bottom: .4rem;
}

.sec-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
}

.sec-line {
  width: 40px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px;
}

/* Timeline */
.timeline {
  list-style: none;
}

.tl-item {
  display: flex;
  gap: 2rem;
  position: relative;
}

.tl-item:not(:last-child) {
  padding-bottom: 2.25rem;
}

.tl-date {
  min-width: 90px;
  text-align: right;
  font-size: .82rem;
  letter-spacing: .05em;
  color: rgba(200,200,230,.85);
  padding-top: .2rem;
  flex-shrink: 0;
}

.tl-body {
  flex: 1;
  padding-left: 1.75rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  position: relative;
}

/* Vertical bar */
.tl-item:not(:last-child) .tl-body::after {
  content: '';
  position: absolute;
  left: 0;
  top: 1.4rem;
  bottom: -2.25rem;
  width: 0.8px;
  background: linear-gradient(
    to bottom,
    rgba(155,93,229,.32),
    rgba(0,212,255,.2)
  );
}

/* Dot */
.tl-body::before {
  content: '';
  position: absolute;
  left:   -5px;
  top:  .3rem;
  width:  11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 10px rgba(155,93,229,.6);
  z-index: 1;
}

.tl-tag {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
  padding: 2px 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  flex-shrink: 0;
}

.tl-text {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.75;
}

.updates-page .tl-text a {
  display: inline-block;
  margin: 0 .15rem;
  padding: .12rem .55rem;
  border-radius: .55rem;
  background: rgba(155, 93, 229, .12);
  border: 1px solid rgba(155, 93, 229, .28);
  color: #d9c7ff;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: .18em;
  text-decoration-thickness: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.updates-page .tl-text a:hover,
.updates-page .tl-text a:focus-visible {
  background: rgba(0, 212, 255, .16);
  border-color: rgba(0, 212, 255, .45);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 212, 255, .12);
  outline: none;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  background: rgba(0,0,0,.4);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: .77rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .77rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-nav span { color: var(--border); }

/* ==========================================
   SELF INTRO PAGE TUNING
========================================== */
.self-intro-page .hero {
  min-height: auto;
  padding: 7.5rem 1rem 3.5rem;
  gap: 1rem;
}

.self-intro-page .hero .sec-title {
  margin-bottom: .6rem;
}

.self-intro-page .hero .sec-line {
  margin-bottom: .5rem;
}

.self-intro-page .intro-section {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.self-intro-page .process-section,
.self-intro-page .roadmap-section {
  background: transparent;
}

.self-intro-page .process-section {
  padding-top: 2.5rem;
  overflow-x: clip;
}

.self-intro-page .process-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.self-intro-page .intro-section .container {
  max-width: 1120px;
}

.self-intro-page .intro-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.self-intro-page .intro-card {
  min-height: 100%;
}

/* Profile process is forced to one lane (vertical) to avoid mixed wrapping. */
.self-intro-page .process-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  overflow-x: clip;
}

.self-intro-page .process-step {
  flex: 1 1 0;
  min-width: 170px;
  text-align: center;
}

.self-intro-page .process-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .self-intro-page .intro-container {
    grid-template-columns: 1fr;
  }

  .self-intro-page .process-container {
    flex-direction: column;
    align-items: stretch;
    max-width: 700px;
    overflow-x: visible;
  }

  .self-intro-page .process-step {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .self-intro-page .process-arrow {
    display: flex;
    justify-content: center;
    padding: .1rem 0 .2rem;
  }

  .self-intro-page .process-arrow .material-symbols-outlined {
    transform: rotate(90deg);
  }
}

.career-page .hero,
.project-page .hero,
.updates-page .hero {
  min-height: auto;
  padding: 7.5rem 1rem 3.5rem;
  gap: .95rem;
}

.career-page .timeline-section,
.project-page .project-detail,
.updates-page .updates {
  position: relative;
  z-index: 1;
}

.updates-page .timeline::before {
  content: none;
}

.career-page .timeline-section {
  padding-top: 1rem;
}

.career-page .timeline::before {
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(155, 93, 229, 0.2),
    rgba(0, 212, 255, 0.16)
  );
}

.career-page .timeline-content::before {
  width: 11px;
  height: 11px;
  border-width: 2px;
  box-shadow: 0 0 0 1px rgba(155, 93, 229, 0.25);
}

.project-page .project-detail {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.project-page .detail-container {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.project-page .detail-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin-bottom: 2.75rem;
}

.project-page .detail-section:last-of-type {
  margin-bottom: 0;
}

.project-page .features-grid {
  margin-top: 1.2rem;
}

.project-page .feature-card {
  min-height: 100%;
}

.project-page .detail-links {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.project-page .detail-inline-link {
  color: #9fd8ff;
  text-decoration: underline;
  text-decoration-color: rgba(159, 216, 255, 0.72);
  text-underline-offset: .16em;
  font-weight: 600;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.project-page .detail-inline-link:hover,
.project-page .detail-inline-link:focus-visible {
  color: #d8f0ff;
  text-decoration-color: rgba(216, 240, 255, 0.95);
}

.project-page .feature-card .feature-icon {
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: #8fc4ff !important;
  text-shadow: 0 2px 10px rgba(24, 40, 84, 0.25);
}

.project-page .feature-card:nth-child(2n) .feature-icon {
  color: #78d8d2 !important;
}

.project-page .feature-card:nth-child(3n) .feature-icon {
  color: #b3a5ff !important;
}

.project-title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 760px;
  gap: .6rem;
}

.project-title-row .sec-title {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  margin-bottom: 0;
}

.project-title-image {
  grid-column: 1;
  justify-self: end;
  width: 96px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.project-lead {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: .04em;
}

.project-page .hero .hero-back-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin-top: 0;
}

@media (max-width: 640px) {
  .project-title-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: .5rem;
  }

  .project-title-row .sec-title {
    grid-column: 1;
  }

  .project-title-image {
    grid-column: 1;
    justify-self: center;
    width: 78px;
  }
}

.updates-preview {
  position: relative;
  z-index: 1;
  padding: 2rem 0 6rem;
}

.updates-preview-copy {
  text-align: center;
  color: rgba(232, 239, 255, 0.84);
  margin-bottom: 1.5rem;
}

.updates-preview-link-wrap {
  text-align: center;
}

.updates-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(122, 169, 255, 0.25), rgba(0, 212, 255, 0.2));
  border: 1px solid rgba(122, 169, 255, 0.38);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.updates-preview-link:hover,
.updates-preview-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.45);
  background: linear-gradient(135deg, rgba(122, 169, 255, 0.34), rgba(0, 212, 255, 0.28));
  outline: none;
}

/* ==========================================
   MOBILE LITE MODE
========================================== */
body.mobile-lite .bg-aurora {
  animation: none;
  opacity: .55;
}

body.mobile-lite .bg-grid {
  display: none;
}

body.mobile-lite .particles-bg .particles-js-canvas-el {
  opacity: .62;
}

body.mobile-lite .site-header,
body.mobile-lite .portfolio-menu,
body.mobile-lite .project-page .detail-container,
body.mobile-lite .nav-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.mobile-lite .ring--outer,
body.mobile-lite .ring--inner {
  animation: none !important;
}

body.mobile-lite .orbit-item {
  transform:
    rotate(calc(var(--i) * 72deg))
    translateX(var(--orbit-r))
    rotate(calc(var(--i) * -72deg));
}

body.mobile-lite .site-menu-toggle,
body.mobile-lite .legacy-card,
body.mobile-lite .nav-card,
body.mobile-lite .updates-preview-link,
body.mobile-lite .feature-card {
  transition: none;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 900px) {
  .container {
    padding: 0 1rem;
  }

  .self-intro-page .hero,
  .career-page .hero,
  .updates-page .hero,
  .contact-page .hero,
  .about-page .hero,
  .works-page .hero {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .legacy-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --orbit-r: 168px;
    --card-size: 80px;
  }

  .site-header {
    height: 68px;
  }

  body.has-site-header {
    padding-top: 68px;
  }

  .site-brand {
    font-size: .84rem;
    letter-spacing: .08em;
    gap: .48rem;
  }

  .site-brand-logo {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 1rem;
  }

  .hero-note {
    font-size: .82rem;
  }

  .hub {
    min-width: 120px;
    min-height: 120px;
    padding: 0 12px;
  }

  .scroll-drop {
    top: auto;
    bottom: 1rem;
    right: 14px;
  }

  .scroll-drop-track {
    height: 72px;
  }

  .tl-item {
    flex-direction: column;
    gap: .25rem;
  }

  .tl-date {
    text-align: left;
    min-width: 0;
  }

  .tl-item:not(:last-child) .tl-body::after,
  .tl-body::before {
    display: none;
  }

  .tl-body {
    padding-left: 0;
  }

  .contact-card {
    padding: 1.25rem 1rem;
  }

  .nf-main {
    padding: 5.5rem 1rem 4rem;
  }
}

@media (max-width: 520px) {
  :root {
    --orbit-r:   142px;
    --card-size: 70px;
  }

  .hub {
    min-width: 85px;
    min-height: 85px;
  }

  .legacy-cards {
    grid-template-columns: 1fr;
  }

  .scroll-drop {
    top: auto;
    bottom: -7rem;
  }

  .scroll-drop-track {
    width: 30px;
    height: 78px;
  }
}

@media (max-width: 480px) {
  .tl-item {
    flex-direction: column;
    gap: .25rem;
  }

  .tl-date { text-align: left; }

  .tl-item:not(:last-child) .tl-body::after,
  .tl-body::before { display: none; }

  .tl-body { padding-left: 0; }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================
   REDUCED MOTION
========================================== */
@media (prefers-reduced-motion: reduce) {
  .orbit-item {
    animation: none;
    transform:
      rotate(calc(var(--i) * 72deg))
      translateX(var(--orbit-r))
      rotate(calc(var(--i) * -72deg));
  }

  .hub,
  .ring--outer,
  .ring--inner,
  .bg-aurora,
  .scroll-hint,
  .scroll-star,
  .scroll-fall {
    animation: none;
  }

  .index-page .orbit-scene,
  .index-page .hero-note,
  .index-page .scroll-drop,
  .index-page .legacy .sec-head,
  .index-page .legacy-card {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================
   WORKS PAGE
========================================== */
.works-page .hero {
  min-height: auto;
  padding: 7.5rem 1rem 3.5rem;
  gap: 1rem;
}

.works-page .hero .sec-title {
  margin-bottom: .6rem;
}

.works-page .hero .sec-line {
  margin-bottom: .5rem;
}

.works-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0 6rem;
}

.works-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  margin-bottom: 3.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}

.works-empty-icon {
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.1rem;
}

.works-empty-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: .65rem;
}

.works-empty-sub {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: .9rem;
  color: rgba(232, 239, 255, .75);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.works-cta {
  display: inline-block;
  padding: .65rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(155, 93, 229, .38), rgba(0, 212, 255, .28));
  border: 1px solid rgba(155, 93, 229, .45);
  transition: background .2s, border-color .2s, transform .2s;
}

.works-cta:hover,
.works-cta:focus-visible {
  background: linear-gradient(135deg, rgba(155, 93, 229, .55), rgba(0, 212, 255, .42));
  border-color: rgba(155, 93, 229, .72);
  transform: translateY(-2px);
  outline: none;
}

.works-category-label {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.works-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.works-cat-card {
  border-radius: 16px;
  padding: 1.4rem 1.2rem 1.2rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  text-align: center;
}

.wcc-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: .7rem;
}

.wcc-name {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: .45rem;
}

.wcc-desc {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: .8rem;
  color: rgba(232, 239, 255, .7);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .works-categories {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   404 NOT FOUND PAGE
========================================== */
.not-found-page {
  padding-top: 0;
  overflow: hidden;
}

.not-found-page {
  background-image:
    linear-gradient(rgba(3, 3, 20, 0.68), rgba(3, 3, 20, 0.78)),
    url('images/PIA11245_orig.avif') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* Starfield dots */
.nf-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nf-star-dot {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: nfTwinkle var(--dur, 3s) ease-in-out var(--del, 0s) infinite;
  opacity: 0;
}

@keyframes nfTwinkle {
  0%, 100% { opacity: 0;                  transform: scale(.5); }
  50%       { opacity: var(--bright, .7); transform: scale(1);  }
}

/* Main layout */
.nf-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  gap: 1rem;
}

/* 4 _ orbit _ 4 layout */
.nf-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: .5rem;
  line-height: 1;
}

.nf-digit {
  font-size: 8.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--purple) 10%, var(--cyan) 55%, #c8e8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(155, 93, 229, .45));
}

/* ==========================================
   CSP COMPLIANCE: External CSS for Dynamic Styles
========================================== */

/* Background image with NASA images */
body.has-nasa-bg {
  background-image: linear-gradient(rgba(7, 7, 26, 0.64), rgba(7, 7, 26, 0.74)), var(--bg-image-url);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: var(--bg-attachment, fixed);
}

/* Scroll behavior for lite devices */
html.mobile-lite {
  scroll-behavior: auto;
}

/* Scroll indicator hidden state */
.scroll-indicator--hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Orbit item animations */
.orbit-item.is-freeze {
  --transform-value: var(--current-transform, none);
}

.orbit-item.is-resetting {
  transition: transform var(--reset-duration, 460ms) ease;
  transform: var(--current-transform, none);
}

.orbit-item.is-resetting[style*="--target-transform"] {
  transform: var(--target-transform, none) !important;
}

/* Star field animation with CSS properties */
.nf-star-dot {
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
}

.nf-orbit-wrap {
  position: relative;
  width: 7rem;
  height: 7rem;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  --nf-orbit-r: 3.1rem;
  pointer-events: none;
}

.nf-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid;
  pointer-events: none;
}

.nf-ring--outer {
  width: 100%; height: 100%;
  border-color: rgba(155, 93, 229, .85);
  box-shadow:
    0 0 14px rgba(155, 93, 229, .55),
    inset 0 0 14px rgba(155, 93, 229, .18);
  animation: nfRingPulse 5s ease-in-out infinite;
}

.nf-ring--inner {
  width: 52%; height: 52%;
  border-color: rgba(0, 212, 255, .72);
  box-shadow:
    0 0 10px rgba(0, 212, 255, .45),
    inset 0 0 10px rgba(0, 212, 255, .12);
  animation: nfRingPulse 5s ease-in-out infinite reverse;
}

@keyframes nfRingPulse {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1;   }
}

.nf-orbit-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  margin: -4.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, .85);
  animation: nfOrbitSpinZero 5s linear infinite;
}

@keyframes nfOrbitSpinZero {
  from { transform: rotate(0deg)   translateX(var(--nf-orbit-r, 3rem)) rotate(0deg);   }
  to   { transform: rotate(360deg) translateX(var(--nf-orbit-r, 3rem)) rotate(-360deg); }
}

/* 404 number */
.nf-code {
  display: none; /* replaced by .nf-digit */
}

.nf-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0f4ff;
  margin: 0;
}

.nf-body {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: .9rem;
  color: rgba(232, 239, 255, .72);
  line-height: 1.95;
  max-width: 520px;
  margin: 0 auto;
}

.nf-body-nowrap {
  white-space: nowrap;
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  margin-top: .4rem;
  padding: .75rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .1em;
  font-size: .88rem;
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(155, 93, 229, .42), rgba(0, 212, 255, .32));
  border: 1px solid rgba(155, 93, 229, .48);
  box-shadow: 0 8px 28px rgba(155, 93, 229, .22);
  transition: background .22s, border-color .22s, transform .22s, box-shadow .22s;
}

.nf-btn:hover,
.nf-btn:focus-visible {
  background: linear-gradient(135deg, rgba(155, 93, 229, .64), rgba(0, 212, 255, .5));
  border-color: rgba(155, 93, 229, .8);
  box-shadow: 0 14px 36px rgba(155, 93, 229, .38);
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 480px) {
  .nf-digit {
    font-size: 5.5rem;
  }

  .nf-orbit-wrap {
    width: 5rem;
    height: 5rem;
    --nf-orbit-r: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-ring--outer,
  .nf-ring--inner,
  .nf-orbit-dot,
  .nf-star-dot {
    animation: none;
  }

  .nf-star-dot { opacity: .45; }
}

/* ==========================================
   403 FORBIDDEN PAGE
========================================== */
.nf-gate {
  position: relative;
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  margin-bottom: .25rem;
  flex-shrink: 0;
}

.nf-gate-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(229, 60, 100, .75);
  box-shadow:
    0 0 18px rgba(229, 60, 100, .55),
    inset 0 0 14px rgba(229, 60, 100, .18);
  animation: gateRingPulse 3.5s ease-in-out infinite;
}

.nf-gate-ring--mid {
  inset: 18px;
  border-color: rgba(155, 93, 229, .65);
  box-shadow:
    0 0 12px rgba(155, 93, 229, .4),
    inset 0 0 10px rgba(155, 93, 229, .12);
  animation: gateRingPulse 3.5s ease-in-out infinite reverse;
}

@keyframes gateRingPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.nf-gate-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  line-height: 1;
  background: linear-gradient(135deg, #e53c64, #9b5de5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(229, 60, 100, .55));
  animation: gateIconFloat 5s ease-in-out infinite;
}

.error-403-page .nf-gate-icon {
  animation: none;
  transform: none;
}

@keyframes gateIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.nf-gate-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #e53c64;
  box-shadow: 0 0 12px rgba(229, 60, 100, .9);
  animation: gateDotSpin 4s linear infinite;
}

@keyframes gateDotSpin {
  from { transform: rotate(0deg) translateX(57px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(57px) rotate(-360deg); }
}

.nf-digit-403 {
  font-size: 8.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #e53c64 10%, #9b5de5 55%, #c8a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(229, 60, 100, .45));
}

.nf-code-wrap-403 {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .5rem;
  line-height: 1;
}

.nf-alert-bar {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 60, 100, .45);
  background: rgba(229, 60, 100, .1);
  color: rgba(255, 180, 195, .9);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .25rem;
  animation: alertBlink 2.8s ease-in-out infinite;
}

@keyframes alertBlink {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

.nf-alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e53c64;
  box-shadow: 0 0 8px rgba(229, 60, 100, .9);
  flex-shrink: 0;
  animation: alertDotPulse 1.2s ease-in-out infinite;
}

@keyframes alertDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: .65; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-gate-ring,
  .nf-gate-icon,
  .nf-gate-dot,
  .nf-alert-bar,
  .nf-alert-dot {
    animation: none;
  }
}

@media (max-width: 480px) {
  .nf-digit-403 {
    font-size: 5.5rem;
  }

  .nf-gate {
    width: 88px;
    height: 88px;
  }

  .nf-gate-dot {
    animation-name: gateDotSpinSm;
  }

  @keyframes gateDotSpinSm {
    from { transform: rotate(0deg) translateX(41px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(41px) rotate(-360deg); }
  }
}

/* ==========================================
   ABOUT PAGE
========================================== */
.about-page .hero {
  min-height: auto;
  padding: 7.5rem 1rem 3.5rem;
  gap: 1rem;
}

.about-page .hero .sec-title {
  margin-bottom: .6rem;
}

.about-page .hero .sec-line {
  margin-bottom: .5rem;
}

.about-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0 6rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.about-card {
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.4rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-card-icon {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: .75rem;
}

.about-card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: .65rem;
}

.about-card-body {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: .86rem;
  color: rgba(232, 239, 255, .78);
  line-height: 1.9;
}

.about-card-body a {
  color: #9fdaff;
  text-decoration: underline;
  text-decoration-color: rgba(159, 218, 255, 0.8);
  text-underline-offset: .2em;
  font-weight: 700;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.about-card-body a:hover,
.about-card-body a:focus-visible {
  color: #c9f0ff;
  text-decoration-color: rgba(201, 240, 255, 1);
}

@media (max-width: 640px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   READABILITY FIXES
========================================== */
h2,
.hero-title,
.projects h2,
.process-section h2,
.roadmap-section h2 {
  color: #f3f7ff !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.project-detail .detail-container {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.project-detail .detail-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}

.self-intro-page .hero,
.career-page .hero,
.updates-page .hero,
.contact-page .contact-hero,
.about-page .hero,
.support-page .hero,
.works-page .hero {
  align-items: flex-start;
  text-align: left;
  width: min(980px, 100%);
  margin: 0 auto;
}

.contact-page .hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-height: auto;
  width: min(980px, 100%);
  max-width: 980px;
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-page .hero .sec-eyebrow,
.contact-page .hero h2,
.contact-page .hero .hero-subtitle {
  display: block;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.contact-page .hero .sec-title {
  margin-bottom: .6rem;
}

.contact-page .hero .sec-line {
  margin-bottom: .5rem;
}

.self-intro-page .hero .sec-line,
.career-page .hero .sec-line,
.updates-page .hero .sec-line,
.contact-page .hero .sec-line,
.about-page .hero .sec-line,
.works-page .hero .sec-line,
.self-intro-page .sec-head .sec-line,
.career-page .sec-head .sec-line,
.updates-page .sec-head .sec-line,
.contact-page .sec-head .sec-line {
  margin-left: 0;
  margin-right: 0;
}

.self-intro-page .sec-head,
.career-page .sec-head,
.updates-page .sec-head,
.contact-page .sec-head {
  text-align: left;
}

.self-intro-page .process-section .sec-head,
.self-intro-page .roadmap-section .sec-head {
  text-align: initial;
}

.support-page .hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-height: auto;
  width: min(980px, 100%);
  max-width: 980px;
  padding: 7.5rem 1.5rem 3.5rem;
  margin-left: auto;
  margin-right: auto;
}

.support-page .hero .sec-eyebrow,
.support-page .hero h2,
.support-page .hero .hero-subtitle {
  display: block;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.support-page .hero .sec-title {
  margin-bottom: .6rem;
}

.support-page .hero .sec-line {
  margin-bottom: .5rem;
}

.support-section,
.support-cta {
  position: relative;
  z-index: 1;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.support-section {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.support-cta {
  padding-top: 0;
  padding-bottom: 3.5rem;
}

.support-card,
.support-cta-box {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 2rem 2rem 2.2rem;
  border: 1px solid rgba(122, 169, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 12, 34, 0.78), rgba(10, 12, 34, 0.56));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(36px);
}

.support-card.card-animate,
.support-cta-box.card-animate {
  animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.support-card-icon {
  display: inline-flex;
  font-size: 2rem;
  color: #9dd3ff;
  margin-bottom: .85rem;
}

.support-card-label,
.support-cta-kicker {
  margin: 0 0 .45rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(200, 200, 230, .76);
}

.support-card-title,
.support-cta-title {
  margin: 0 0 .9rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: #f6f7ff;
}

.support-card-body,
.support-cta-body {
  margin: 0;
  color: rgba(241, 245, 255, .82);
  line-height: 1.85;
}

.support-list {
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
  color: rgba(241, 245, 255, .82);
  line-height: 1.8;
}

.support-cta-box {
  text-align: center;
}

.support-contact {
  margin-top: .35rem;
}

.support-contact-label {
  margin: 0 0 .35rem;
  font-size: .82rem;
  color: rgba(241, 245, 255, .72);
  letter-spacing: .04em;
}

.support-contact-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

.support-contact-links a {
  color: #9dd3ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
  transition: color .2s ease, text-decoration-color .2s ease, transform .2s ease;
}

.support-contact-links a:hover,
.support-contact-links a:focus-visible {
  color: #d7f1ff;
  transform: translateY(-1px);
  outline: none;
}

.support-contact-links span {
  color: rgba(241, 245, 255, .42);
}

.support-cta-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-top: .85rem;
  isolation: isolate;
}

.support-cta-stage::before {
  content: '';
  position: absolute;
  inset: 36px 10% 24px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 221, 0, .14), rgba(0, 212, 255, 0) 60%);
  filter: blur(10px);
  opacity: .9;
  animation: supportGlowPulse 4.8s ease-in-out infinite;
}

.support-cta-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.support-cta-orbit--outer {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 221, 0, .22);
  box-shadow: 0 0 32px rgba(255, 163, 62, .12), inset 0 0 20px rgba(255, 221, 0, .08);
  animation: supportOrbitSpin 18s linear infinite;
}

.support-cta-orbit--inner {
  width: 148px;
  height: 148px;
  border: 1px dashed rgba(157, 211, 255, .36);
  box-shadow: 0 0 24px rgba(157, 211, 255, .14), inset 0 0 16px rgba(157, 211, 255, .08);
  animation: supportOrbitSpinReverse 12s linear infinite;
}

.support-cta-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #ffcc66 45%, rgba(255, 204, 102, 0) 72%);
  box-shadow: 0 0 18px rgba(255, 204, 102, .7);
  opacity: .85;
}

.support-cta-spark--1 {
  left: 50%;
  top: 18px;
  animation: supportSparkFloat1 3.8s ease-in-out infinite;
}

.support-cta-spark--2 {
  right: 14%;
  top: 42px;
  animation: supportSparkFloat2 4.4s ease-in-out infinite;
}

.support-cta-spark--3 {
  left: 14%;
  bottom: 42px;
  animation: supportSparkFloat3 4.8s ease-in-out infinite;
}

.support-cta-spark--4 {
  left: 50%;
  bottom: 18px;
  animation: supportSparkFloat4 4.1s ease-in-out infinite;
}

.support-cta-button-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.support-cta-button-shell .bmc-btn-container {
  position: relative;
  z-index: 2;
  width: max-content;
  margin: 0 auto;
  display: block;
}

.support-cta-button-shell .bmc-btn {
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  box-shadow: 0 16px 34px rgba(255, 165, 72, .24), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.support-cta-button-shell .bmc-btn:hover,
.support-cta-button-shell .bmc-btn:focus-visible {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 22px 44px rgba(255, 165, 72, .36), 0 0 0 1px rgba(255, 255, 255, .16);
  filter: brightness(1.04);
}

@keyframes supportOrbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes supportOrbitSpinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes supportGlowPulse {
  0%, 100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes supportSparkFloat1 {
  0%, 100% { transform: translate(-50%, 0) scale(.9); opacity: .6; }
  50% { transform: translate(-50%, 12px) scale(1.15); opacity: 1; }
}

@keyframes supportSparkFloat2 {
  0%, 100% { transform: translate(0, 0) scale(.85); opacity: .5; }
  50% { transform: translate(8px, -10px) scale(1.1); opacity: .95; }
}

@keyframes supportSparkFloat3 {
  0%, 100% { transform: translate(0, 0) scale(.85); opacity: .55; }
  50% { transform: translate(-10px, 8px) scale(1.08); opacity: .95; }
}

@keyframes supportSparkFloat4 {
  0%, 100% { transform: translate(-50%, 0) scale(.88); opacity: .6; }
  50% { transform: translate(-50%, -10px) scale(1.12); opacity: 1; }
}

@media (max-width: 768px) {
  .support-cta-stage {
    min-height: 180px;
    width: 100%;
  }

  .support-cta-button-shell {
    width: 100%;
  }

  .support-cta-button-shell .bmc-btn-container {
    width: max-content;
    margin: 0 auto;
  }

  .support-cta-orbit--outer {
    width: 184px;
    height: 184px;
  }

  .support-cta-orbit--inner {
    width: 124px;
    height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-cta-stage::before,
  .support-cta-orbit,
  .support-cta-spark {
    animation: none !important;
  }
}

.support-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  margin-top: 1.4rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  color: #081022;
  background: linear-gradient(135deg, #fff0a8, #f6c86f 50%, #ff9d63);
  font-weight: 700;
  letter-spacing: .04em;
  font: inherit;
  box-shadow: 0 16px 34px rgba(255, 165, 72, .24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.support-cta-button:hover,
.support-cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 165, 72, .3);
  filter: brightness(1.03);
  outline: none;
}

.support-cta-button:disabled {
  cursor: not-allowed;
  opacity: .96;
}

.self-intro-page .process-section .sec-eyebrow,
.self-intro-page .roadmap-section .sec-eyebrow {
  width: 100%;
  text-align: left;
}

.self-intro-page .process-section .sec-title,
.self-intro-page .roadmap-section .sec-title {
  width: 100%;
  text-align: center;
}

.self-intro-page .process-section .sec-line,
.self-intro-page .roadmap-section .sec-line {
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 768px) {
  .self-intro-page .roadmap-container::before {
    left: 56px;
  }

  .self-intro-page .roadmap-item {
    gap: 24px;
  }

  .self-intro-page .roadmap-date {
    flex: 0 0 56px;
    text-align: right;
    padding-top: .45rem;
  }

  .self-intro-page .roadmap-content {
    padding: 1rem;
  }

  .self-intro-page .roadmap-icon {
    left: -42px;
    width: 32px;
    height: 32px;
  }

  .self-intro-page .roadmap-icon .material-symbols-outlined {
    font-size: 18px;
  }
}

body.is-loading {
  overflow: hidden;
}





.relay-log {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #020810;
  display: none;
  overflow: hidden;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(53, 230, 255, 0.9);
  transition: opacity 200ms ease;
}

.relay-log.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.relay-log.fade-out {
  opacity: 0;
}

.relay-log-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.relay-log-bg::before,
.relay-log-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 680ms ease;
  pointer-events: none;
}

.relay-log-bg::before {
  background:
    radial-gradient(circle at 10% 16%, rgba(238, 247, 255, 1) 0 2px, transparent 3.8px),
    radial-gradient(circle at 22% 34%, rgba(200, 236, 255, 0.98) 0 2.1px, transparent 3.9px),
    radial-gradient(circle at 34% 18%, rgba(214, 249, 255, 0.99) 0 2px, transparent 3.8px),
    radial-gradient(circle at 48% 41%, rgba(201, 241, 255, 0.96) 0 2.1px, transparent 3.9px),
    radial-gradient(circle at 63% 24%, rgba(188, 236, 255, 0.95) 0 1.9px, transparent 3.7px),
    radial-gradient(circle at 77% 37%, rgba(226, 250, 255, 1) 0 2.2px, transparent 4px),
    radial-gradient(circle at 88% 15%, rgba(191, 241, 255, 0.97) 0 2px, transparent 3.8px),
    radial-gradient(circle at 16% 64%, rgba(184, 233, 255, 0.94) 0 2.1px, transparent 3.9px),
    radial-gradient(circle at 30% 78%, rgba(231, 248, 255, 0.99) 0 2.2px, transparent 4px),
    radial-gradient(circle at 44% 68%, rgba(194, 239, 255, 0.95) 0 2px, transparent 3.8px),
    radial-gradient(circle at 58% 83%, rgba(223, 250, 255, 0.99) 0 2.1px, transparent 3.9px),
    radial-gradient(circle at 72% 73%, rgba(188, 237, 255, 0.95) 0 2px, transparent 3.8px),
    radial-gradient(circle at 84% 86%, rgba(236, 251, 255, 1) 0 2.2px, transparent 4px);
  animation: relayStarsTwinkleA 4.6s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(141, 224, 255, 0.52));
}

.relay-log-bg::after {
  background:
    linear-gradient(62deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.62), rgba(0, 0, 0, 0)) 16% 25% / 21% 1px no-repeat,
    linear-gradient(8deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.56), rgba(0, 0, 0, 0)) 28% 26% / 15% 1px no-repeat,
    linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.58), rgba(0, 0, 0, 0)) 42% 32% / 22% 1px no-repeat,
    linear-gradient(168deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.54), rgba(0, 0, 0, 0)) 60% 26% / 20% 1px no-repeat,
    linear-gradient(138deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.58), rgba(0, 0, 0, 0)) 76% 28% / 18% 1px no-repeat,
    linear-gradient(178deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.52), rgba(0, 0, 0, 0)) 24% 72% / 19% 1px no-repeat,
    linear-gradient(52deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.6), rgba(0, 0, 0, 0)) 36% 74% / 21% 1px no-repeat,
    linear-gradient(12deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.55), rgba(0, 0, 0, 0)) 50% 74% / 18% 1px no-repeat,
    linear-gradient(144deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.59), rgba(0, 0, 0, 0)) 66% 76% / 20% 1px no-repeat,
    linear-gradient(98deg, rgba(0, 0, 0, 0), rgba(120, 220, 255, 0.57), rgba(0, 0, 0, 0)) 80% 78% / 17% 1px no-repeat;
  animation: relayStarsTwinkleB 6.4s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(108, 209, 255, 0.38));
}

.relay-log.stars-active .relay-log-bg::before,
.relay-log.stars-active .relay-log-bg::after {
  opacity: 0.96;
}

@keyframes relayStarsTwinkleA {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  35% { opacity: 0.95; transform: scale(1.024); }
  65% { opacity: 0.6; transform: scale(1.01); }
}

@keyframes relayStarsTwinkleB {
  0%, 100% { opacity: 0.32; transform: translateY(0); }
  40% { opacity: 0.78; transform: translateY(-2px); }
  70% { opacity: 0.5; transform: translateY(1px); }
}

.relay-log-node {
  position: absolute;
  top: 50%;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(53, 230, 255, 0.55);
  box-shadow:
    inset 0 0 18px rgba(53, 230, 255, 0.14),
    0 0 20px rgba(53, 230, 255, 0.16);
  background: rgba(4, 12, 16, 0.72);
  clip-path: polygon(50% 0%, 82% 18%, 100% 50%, 82% 82%, 50% 100%, 18% 82%, 0% 50%, 18% 18%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(53, 230, 255, 0.88);
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  z-index: 3;
}

.relay-log-node::before,
.relay-log-node::after {
  content: none;
}

.relay-log-geo {
  position: absolute;
  top: 50%;
  width: 270px;
  height: 270px;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
}

.relay-log-geo-user {
  left: calc(6vw + 56px);
}

.relay-log-geo-main {
  left: calc(100% - 4vw - 66px);
}

.relay-log-geo-layer {
  position: absolute;
  display: block;
  inset: calc(22px - (var(--layer-index, 0) * 3.6px));
  border: 2.2px solid rgba(53, 230, 255, 0.96);
  background: transparent;
  clip-path: polygon(50% 0%, 70% 30%, 100% 50%, 70% 70%, 50% 100%, 30% 70%, 0% 50%, 30% 30%);
  opacity: 0;
  animation: relayGeoSpinA var(--spin-duration, 8s) linear infinite;
  transform-origin: center;
  transition: opacity 240ms ease;
  filter: drop-shadow(0 0 12px rgba(53, 230, 255, 0.6));
}

.relay-log-geo-layer.alt-shape {
  clip-path: polygon(50% 0%, 82% 18%, 100% 50%, 82% 82%, 50% 100%, 18% 82%, 0% 50%, 18% 18%);
  animation-name: relayGeoSpinB;
}

.relay-log-geo-layer.active {
  opacity: 1;
}

.relay-log-geo-layer.hot {
  opacity: 1;
  box-shadow: 0 0 26px rgba(53, 230, 255, 0.72);
  filter: drop-shadow(0 0 18px rgba(53, 230, 255, 0.82));
}

.relay-log-node-user {
  left: 6vw;
}

.relay-log-node-main {
  right: 4vw;
  width: 132px;
  height: 112px;
  font-size: 9px;
  padding: 0 8px;
  border-color: rgba(30, 255, 161, 0.62);
  box-shadow:
    inset 0 0 18px rgba(30, 255, 161, 0.15),
    0 0 20px rgba(30, 255, 161, 0.18);
  color: rgba(30, 255, 161, 0.94);
}

.relay-log-geo-main .relay-log-geo-layer {
  border-color: rgba(30, 255, 161, 0.98);
  filter: drop-shadow(0 0 12px rgba(30, 255, 161, 0.6));
}

.relay-log-geo-main .relay-log-geo-layer.hot {
  box-shadow: 0 0 26px rgba(30, 255, 161, 0.72);
  filter: drop-shadow(0 0 18px rgba(30, 255, 161, 0.82));
}

.relay-log-links {
  position: absolute;
  top: 50%;
  left: calc(6vw + 42px);
  right: calc(4vw + 70px);
  height: 220px;
  transform: translateY(-50%);
  overflow: visible;
  z-index: 1;
}

.relay-log-link {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--arc-height, 40px);
  border-top: 1px solid rgba(130, 138, 148, 0.24);
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 0 8px rgba(130, 138, 148, 0.16);
  opacity: 0.34;
  transform: translateY(calc(-50% + var(--offset, 0px))) scaleY(var(--flip, 1));
  transform-origin: center;
}

.relay-log-link:nth-child(1) { --offset: -78px; --arc-height: 160px; --flip: 1; }
.relay-log-link:nth-child(2) { --offset: -60px; --arc-height: 136px; --flip: 1; }
.relay-log-link:nth-child(3) { --offset: -44px; --arc-height: 114px; --flip: 1; }
.relay-log-link:nth-child(4) { --offset: -30px; --arc-height: 94px; --flip: 1; }
.relay-log-link:nth-child(5) { --offset: -18px; --arc-height: 78px; --flip: 1; }
.relay-log-link:nth-child(6) { --offset: 18px; --arc-height: 78px; --flip: -1; }
.relay-log-link:nth-child(7) { --offset: 30px; --arc-height: 94px; --flip: -1; }
.relay-log-link:nth-child(8) { --offset: 44px; --arc-height: 114px; --flip: -1; }
.relay-log-link:nth-child(9) { --offset: 60px; --arc-height: 136px; --flip: -1; }
.relay-log-link:nth-child(10) { --offset: 78px; --arc-height: 160px; --flip: -1; }

.relay-log-link.active {
  border-top-color: rgba(30, 255, 161, 0.9);
  box-shadow:
    0 0 14px rgba(30, 255, 161, 0.34),
    0 0 24px rgba(53, 230, 255, 0.2);
  opacity: 0.95;
}

.relay-log-link.hot {
  animation: logLinkPulse 800ms ease-in-out infinite;
}

@keyframes relayGeoSpinA {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes relayGeoSpinB {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.relay-log-final-link {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 166, 74, 0.9);
  box-shadow:
    0 0 12px rgba(255, 166, 74, 0.45),
    0 0 20px rgba(255, 191, 120, 0.26);
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 0;
}

.relay-log-final-link.active {
  opacity: 1;
}

@keyframes logLinkPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.relay-log-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(53, 230, 255, 0.3);
  background: rgba(2, 8, 10, 0.8);
  box-shadow:
    inset 0 0 20px rgba(53, 230, 255, 0.08),
    0 0 40px rgba(53, 230, 255, 0.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 230, 255, 0.4) transparent;
}

.relay-log-content::-webkit-scrollbar {
  width: 6px;
}

.relay-log-content::-webkit-scrollbar-track {
  background: transparent;
}

.relay-log-content::-webkit-scrollbar-thumb {
  background: rgba(53, 230, 255, 0.4);
  border-radius: 3px;
}

#relayLogText {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 13px;
}

.relay-enter-btn {
  display: none;
  margin: 16px 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(30, 255, 161, 0.52);
  background: rgba(6, 18, 22, 0.9);
  color: rgba(30, 255, 161, 0.95);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.relay-enter-btn.active {
  display: inline-block;
}

.relay-enter-btn:hover {
  border-color: rgba(30, 255, 161, 0.85);
  background: rgba(10, 24, 30, 0.95);
  box-shadow: 0 0 18px rgba(30, 255, 161, 0.24);
}

.relay-enter-btn::after {
  content: "  CLICK";
  margin-left: 8px;
  color: rgba(53, 230, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.relay-skip-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 70;
  padding: 8px 16px;
  background: rgba(2, 8, 10, 0.7);
  border: 1px solid rgba(53, 230, 255, 0.5);
  color: rgba(53, 230, 255, 0.9);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 0 12px rgba(53, 230, 255, 0.1);
  display: none;
}

.relay-show-loader-btn {
  position: fixed;
  top: 92px;
  left: 22px;
  z-index: 1400;
  padding: 8px 16px;
  background: rgba(2, 8, 10, 0.7) !important;
  border: 1px solid rgba(53, 230, 255, 0.5) !important;
  color: rgba(53, 230, 255, 0.9) !important;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 0 12px rgba(53, 230, 255, 0.1);
  opacity: 0;
  appearance: none;
  margin: 0 !important;
  outline: none;
  display: block;
  pointer-events: none;
}

.relay-show-loader-btn:hover {
  background: rgba(2, 8, 10, 0.9);
  border-color: rgba(53, 230, 255, 0.8);
  box-shadow: 0 0 18px rgba(53, 230, 255, 0.3);
  opacity: 1;
}

.relay-show-loader-btn.active {
  animation: skipButtonPulse 2s ease-in-out infinite;
}

body.is-loading .relay-skip-btn {
  display: block;
  opacity: 0.7;
}

.relay-skip-btn:hover {
  border-color: rgba(53, 230, 255, 0.8);
  box-shadow: 0 0 20px rgba(53, 230, 255, 0.25);
  background: rgba(2, 8, 10, 0.9);
}

.relay-skip-btn.active {
  animation: skipButtonPulse 2s ease-in-out infinite;
}

@keyframes skipButtonPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

#relayLoaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}



@keyframes loaderFramePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}