/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

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

.loader-bar-track {
  width: 200px;
  height: 2px;
  background: var(--gray-200);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--black);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-quart);
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 0.15em;
}

/* ---------- Intro Overlay (game-style reveal) ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.intro-overlay .slice {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--black);
  will-change: transform;
}

.intro-overlay .slice:nth-child(1) { left: 0; width: 34%; }
.intro-overlay .slice:nth-child(2) { left: 34%; width: 33%; }
.intro-overlay .slice:nth-child(3) { left: 67%; width: 33%; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  z-index: 10;
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: normal;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.nav-logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links li {
  opacity: 0;
  transform: translateY(-20px);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--black);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  opacity: 0;
  transform: translateY(-20px);
}

.nav-cta a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.nav-cta a:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ---------- Left Panel ---------- */
.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(2rem, 5vw, 4rem) clamp(2rem, 5vh, 4rem) clamp(3rem, 6vw, 6rem);
}

/* Vertical label */
.vertical-label {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
  opacity: 0;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.stat-item {
  opacity: 0;
  transform: translateY(30px);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--black);
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.stat-number .plus {
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 2px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 0.4rem;
}

/* Main title */
.hero-title-wrapper {
  position: relative;
  margin-bottom: clamp(1rem, 3vh, 1.5rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--black);
  position: relative;
  overflow: hidden;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

/* Japanese character â€” decorative accent */
.jp-accent {
  position: absolute;
  right: -2rem;
  top: -1rem;
  font-family: var(--font-jp);
  font-weight: 200;
  font-size: 8rem;
  color: var(--gray-100);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Subtitle */
.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.subtitle-dash {
  width: 40px;
  height: 1px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.subtitle-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.subtitle-text strong {
  font-weight: 600;
  color: var(--black);
}

/* Class/Role tag â€” game style */
.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1rem, 3vh, 2rem);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
}

.role-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.role-tag-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ---------- Right Panel (Character) ---------- */
.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.character-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.character-img {
  position: fixed;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: auto;
  height: 90vh;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter: contrast(1.1) brightness(1.05);
  will-change: transform, opacity;
  mix-blend-mode: multiply;
}

/* HUD decorative elements */
.hud-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: var(--gray-200);
  border-style: solid;
  opacity: 0;
  z-index: 10;
}

.hud-corner.top-left {
  top: 15%;
  left: 10%;
  border-width: 1px 0 0 1px;
}

.hud-corner.top-right {
  top: 15%;
  right: 8%;
  border-width: 1px 1px 0 0;
}

.hud-corner.bottom-left {
  bottom: 15%;
  left: 10%;
  border-width: 0 0 1px 1px;
}

.hud-corner.bottom-right {
  bottom: 15%;
  right: 8%;
  border-width: 0 1px 1px 0;
}

/* Scan line effect */
.scan-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), var(--accent-soft), var(--accent-glow), transparent);
  opacity: 0;
  z-index: 10;
  will-change: transform;
}

/* Character data overlay (game style) */
.char-data-overlay {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
}

.char-data-item {
  text-align: right;
}

.char-data-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.char-data-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

/* Skill bars */
.char-skill-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.skill-bar-track {
  width: 80px;
  height: 2px;
  background: var(--gray-200);
  border-radius: 1px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gray-700);
  border-radius: 1px;
  width: 0%;
  transition: width 1.5s var(--ease-out-expo);
}

.skill-bar-fill.accent {
  background: var(--accent);
}

.skill-bar-value {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gray-500);
  min-width: 24px;
  text-align: right;
}

/* ---------- Large Background Text ---------- */
.bg-text {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 14vw, 14rem);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gray-200);
  text-stroke: 1px var(--gray-200);
  white-space: nowrap;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  opacity: 0;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* ---------- Year Marker ---------- */
.year-marker {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray-300);
  writing-mode: vertical-rl;
  opacity: 0;
}

/* ---------- Ink Splatter Overlay ---------- */
.ink-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
}

.ink-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
}

/* ---------- Dynamic Ink System ---------- */
.ink-system {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Floating ink blobs â€” organic shapes that morph */
.ink-blob {
  position: absolute;
  background: var(--black);
  opacity: 0;
  will-change: transform, opacity, border-radius;
  mix-blend-mode: multiply;
}

@keyframes blob-morph-1 {
  0%   { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  25%  { border-radius: 70% 30% 50% 60% / 30% 60% 40% 70%; }
  50%  { border-radius: 30% 60% 40% 70% / 50% 30% 70% 40%; }
  75%  { border-radius: 60% 40% 30% 50% / 70% 40% 50% 60%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes blob-morph-2 {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%  { border-radius: 30% 70% 60% 40% / 40% 70% 30% 60%; }
  50%  { border-radius: 50% 50% 40% 60% / 70% 40% 60% 30%; }
  75%  { border-radius: 40% 60% 50% 50% / 30% 60% 40% 70%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes blob-float {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(12px, -18px) rotate(5deg) scale(1.05); }
  66%  { transform: translate(-8px, -10px) rotate(-3deg) scale(0.95); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes blob-float-reverse {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(-15px, 10px) rotate(-6deg) scale(0.93); }
  66%  { transform: translate(10px, 15px) rotate(4deg) scale(1.07); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Ink drops â€” small splatters that appear and fade */
.ink-drop {
  position: absolute;
  background: var(--black);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
}

@keyframes drop-appear {
  0%   { transform: scale(0); opacity: 0; }
  20%  { transform: scale(1.3); opacity: 0.6; }
  40%  { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0; }
}

/* Ink streaks â€” thin marks like brush strokes */
.ink-streak {
  position: absolute;
  background: var(--black);
  opacity: 0;
  transform-origin: left center;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
}

@keyframes streak-draw {
  0%   { transform: scaleX(0) rotate(var(--streak-angle, 0deg)); opacity: 0; }
  15%  { opacity: 0.25; }
  30%  { transform: scaleX(1) rotate(var(--streak-angle, 0deg)); opacity: 0.15; }
  100% { transform: scaleX(1) rotate(var(--streak-angle, 0deg)); opacity: 0; }
}

/* Ink burst â€” radial particles on intro */
.ink-burst-particle {
  position: absolute;
  background: var(--black);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
}

@keyframes burst-out {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  60%  { opacity: 0.2; }
  100% { transform: translate(var(--bx), var(--by)) scale(0.2); opacity: 0; }
}

/* Mouse-reactive ink drops */
.ink-mouse-drop {
  position: absolute;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
}

@keyframes mouse-drop-fade {
  0%   { transform: scale(0.5); opacity: 0.3; }
  50%  { transform: scale(1.2); opacity: 0.15; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Ink drip â€” gravity-pulled drops */
.ink-drip {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3), rgba(10,10,10,0));
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
  border-radius: 0 0 50% 50%;
}

@keyframes drip-fall {
  0%   { transform: scaleY(0); opacity: 0; transform-origin: top; }
  20%  { transform: scaleY(1); opacity: 0.3; }
  100% { transform: translateY(60px) scaleY(0.5); opacity: 0; }
}

/* Splatter ring â€” expanding ring on character reveal */
.splatter-ring {
  position: absolute;
  border: 2px solid rgba(10, 10, 10, 0.15);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes ring-expand {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ---------- Floating Particles (CSS-only) ---------- */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gray-300);
  opacity: 0;
  will-change: transform, opacity;
}


/* ---------- Glitch Effect on Title (subtle) ---------- */
@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 1px); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(2px, -1px); }
  60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 2px); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(1px, -2px); }
}

.hero-title.glitch-active::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.06;
  animation: glitch-1 4s infinite linear;
  pointer-events: none;
}

/* ---------- Mouse Follower ---------- */
.cursor-follower {
  position: fixed;
  width: 180px;
  height: 180px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.4s var(--ease-out-expo),
              height 0.4s var(--ease-out-expo),
              border-color 0.4s ease,
              opacity 0.6s ease;
  will-change: transform;
}

.cursor-follower.active {
  opacity: 0.3;
}

.cursor-follower.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  opacity: 0.5;
}

/* ---------- Line Divider ---------- */
.center-divider {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--gray-200);
  z-index: 5;
  transform-origin: top;
  transform: scaleY(0);
}

/* ---------- Cross Decorations ---------- */
.cross-deco {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 5;
  opacity: 0;
}

.cross-deco::before,
.cross-deco::after {
  content: '';
  position: absolute;
  background: var(--gray-300);
}

.cross-deco::before {
  width: 12px;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.cross-deco::after {
  width: 1px;
  height: 12px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.cross-deco.c1 { top: 12%; left: 50%; transform: translateX(-50%); }
.cross-deco.c2 { bottom: 12%; left: 50%; transform: translateX(-50%); }
.cross-deco.c3 { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ---------- Sound Toggle ---------- */
.sound-toggle {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  padding: 0;
}

.sound-toggle:hover .sound-bars span {
  animation-play-state: running;
}

.sound-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}

.sound-bars span {
  display: block;
  width: 2px;
  background: var(--gray-400);
  border-radius: 1px;
  animation-play-state: paused;
}

.sound-bars span:nth-child(1) { height: 4px; animation: bar-bounce 0.8s ease-in-out infinite 0s; }
.sound-bars span:nth-child(2) { height: 8px; animation: bar-bounce 0.8s ease-in-out infinite 0.1s; }
.sound-bars span:nth-child(3) { height: 5px; animation: bar-bounce 0.8s ease-in-out infinite 0.2s; }
.sound-bars span:nth-child(4) { height: 10px; animation: bar-bounce 0.8s ease-in-out infinite 0.3s; }

@keyframes bar-bounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.3); }
}

.sound-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ---------- Contact Popup ---------- */
.contact-popup {
  position: fixed;
  z-index: 1000;
  width: 280px;
  height: 280px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.4s ease;
}

.contact-popup.active {
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.contact-ink-bg {
  position: absolute;
  inset: -10px;
  background: 
    radial-gradient(circle at 45% 45%, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.3) 40%, rgba(10, 10, 10, 0) 65%),
    radial-gradient(circle at 55% 50%, rgba(20, 20, 20, 0.45) 0%, rgba(20, 20, 20, 0.2) 35%, rgba(20, 20, 20, 0) 55%),
    radial-gradient(circle at 40% 55%, rgba(15, 15, 15, 0.4) 0%, rgba(15, 15, 15, 0.15) 30%, rgba(15, 15, 15, 0) 60%),
    radial-gradient(circle at 50% 40%, rgba(30, 30, 30, 0.3) 0%, rgba(30, 30, 30, 0.1) 25%, rgba(30, 30, 30, 0) 50%);
  mix-blend-mode: multiply;
  filter: blur(14px);
  z-index: 1;
  opacity: 0.88;
  animation: contact-pulse 6s ease-in-out infinite alternate;
}

@keyframes contact-pulse {
  0% { transform: scale(0.96) rotate(-2deg); opacity: 0.8; }
  100% { transform: scale(1.04) rotate(2deg); opacity: 0.95; }
}

.contact-links {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.contact-icon-wrapper {
  position: absolute;
  z-index: 2;
  transform: translate(0, 0) scale(0);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.5s ease;
}

.contact-icon-btn {
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.contact-icon-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.contact-icon-btn:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: scale(1.12);
}

.contact-icon-btn.github:hover { background: #181717; color: #ffffff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.contact-icon-btn.twitter:hover { background: #000000; color: #ffffff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.contact-icon-btn.insta:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); color: #ffffff; box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4); }
.contact-icon-btn.telegram:hover { background: #24A1DE; color: #ffffff; box-shadow: 0 6px 20px rgba(36, 161, 222, 0.4); }
.contact-icon-btn.gmail:hover { background: #EA4335; color: #ffffff; box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4); }

.contact-icon-btn:hover svg {
  transform: scale(1.08);
}

/* ---------- About Overlay ---------- */
.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about-overlay.active {
  pointer-events: all;
  opacity: 1;
  visibility: visible;
}

/* Corner ink panels */
.about-ink-corner {
  position: fixed;
  background: var(--black);
  transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}

.about-ink-corner.corner-tl { top: 0; left: 0; width: 0; height: 0; border-radius: 0 0 40% 0; }
.about-ink-corner.corner-tr { top: 0; right: 0; width: 0; height: 0; border-radius: 0 0 0 40%; }
.about-ink-corner.corner-bl { bottom: 0; left: 0; width: 0; height: 0; border-radius: 0 40% 0 0; }
.about-ink-corner.corner-br { bottom: 0; right: 0; width: 0; height: 0; border-radius: 40% 0 0 0; }

.about-overlay.active .about-ink-corner.corner-tl { width: 55%; height: 55%; border-radius: 0 0 8% 0; transition-delay: 0s; }
.about-overlay.active .about-ink-corner.corner-tr { width: 55%; height: 55%; border-radius: 0 0 0 8%; transition-delay: 0.08s; }
.about-overlay.active .about-ink-corner.corner-bl { width: 55%; height: 55%; border-radius: 0 8% 0 0; transition-delay: 0.12s; }
.about-overlay.active .about-ink-corner.corner-br { width: 55%; height: 55%; border-radius: 8% 0 0 0; transition-delay: 0.04s; }

/* Close button */
.about-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 2010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease 0.6s, transform 0.5s var(--ease-out-expo) 0.6s, background 0.3s ease, border-color 0.3s ease;
}

.about-overlay.active .about-close { opacity: 1; transform: scale(1); }
.about-close:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.about-close svg { width: 18px; height: 18px; }

/* Glass header background for desktop pinned header */
.about-header-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-header-bg.visible {
  opacity: 1;
}

/* Sticky header (appears on scroll) */
.about-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2005;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.about-sticky-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.about-sticky-pfp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-sticky-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Scrollable container */
.about-scroll {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Sections */
.about-section {
  position: relative;
  width: 100%;
}

/* Intro section â€” takes first screen */
.about-intro {
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* PFP circular window (inside intro) */
.about-pfp-ring {
  position: fixed;
  z-index: 5;
  left: 35%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
  will-change: transform, opacity;
}

.about-overlay.active .about-pfp-ring { opacity: 1; }

.about-pfp-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
  animation: pfp-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes pfp-glow-pulse {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

.about-pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  display: block;
}

.about-pfp-border {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Info content (inside intro) */
.about-info {
  position: fixed;
  z-index: 5;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 30vw, 400px);
  opacity: 0;
  transition: opacity 0.6s ease 0.7s;
  will-change: opacity;
}

.about-overlay.active .about-info { opacity: 1; }

.about-info-inner { display: flex; flex-direction: column; gap: 1.8rem; }

.about-name-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.about-name h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-bio {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-detail-item { display: flex; align-items: baseline; gap: 1.2rem; }

.about-detail-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  min-width: 80px;
  flex-shrink: 0;
}

.about-detail-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-detail-value .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  animation: status-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Scroll hint */
.about-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
}

.about-overlay.active .about-scroll-hint { opacity: 0.5; }

.about-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.about-scroll-line {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.about-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-anim 2s ease-in-out infinite;
}

/* Extra sections (Hobbies, Games, Music) */
.about-extra {
  position: relative;
  z-index: 1;
  padding: 5rem 8% 3rem;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out-expo);
}

.about-extra.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section-header {
  margin-bottom: 2.5rem;
}

.about-section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.about-section-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--white);
  letter-spacing: -0.02em;
}

/* Hobby cards */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.about-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.2rem 1.8rem 1.8rem 1.8rem;
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

/* Micro tech grid background */
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 16px 16px;
  opacity: 0.15;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Top-right tech corner bracket */
.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translate(2px, -2px);
  pointer-events: none;
}

.about-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-card:hover::before {
  opacity: 0.35;
}

.about-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Monospace serial tech badge */
.about-card-badge {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.about-card:hover .about-card-badge {
  color: var(--accent);
  border-color: rgba(200, 16, 46, 0.3);
  background: rgba(200, 16, 46, 0.04);
}

.about-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, transform 0.3s var(--ease-out-expo), filter 0.3s ease;
}

.about-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-card:hover .about-card-icon {
  color: var(--accent);
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.about-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.about-card p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

/* Global HUD corners in About overlay */
.about-hud-corner {
  position: fixed;
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.15);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease 0.6s, transform 0.8s var(--ease-out-expo) 0.6s;
}

.about-overlay.active .about-hud-corner {
  opacity: 1;
}

.about-hud-corner.corner-tl { top: 30px; left: 30px; border-top-width: 1.5px; border-left-width: 1.5px; transform: translate(-10px, -10px); }
.about-hud-corner.corner-tr { top: 30px; right: 30px; border-top-width: 1.5px; border-right-width: 1.5px; transform: translate(10px, -10px); }
.about-hud-corner.corner-bl { bottom: 30px; left: 30px; border-bottom-width: 1.5px; border-left-width: 1.5px; transform: translate(-10px, 10px); }
.about-hud-corner.corner-br { bottom: 30px; right: 30px; border-bottom-width: 1.5px; border-right-width: 1.5px; transform: translate(10px, 10px); }

.about-overlay.active .about-hud-corner.corner-tl { transform: translate(0, 0); }
.about-overlay.active .about-hud-corner.corner-tr { transform: translate(0, 0); }
.about-overlay.active .about-hud-corner.corner-bl { transform: translate(0, 0); }
.about-overlay.active .about-hud-corner.corner-br { transform: translate(0, 0); }

/* Hide global overlay HUD corners on mobile/tablet */
@media (max-width: 1024px) {
  .about-hud-corner {
    display: none !important;
  }
}

/* Games list */
.about-games-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-game-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s var(--ease-out-expo);
}

.about-game-item:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateX(6px);
}

.about-game-rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  min-width: 24px;
  transition: color 0.3s ease;
}

.about-game-item:hover .about-game-rank {
  color: var(--accent);
}

.about-game-info {
  flex: 1;
}

.about-game-info h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.about-game-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.about-game-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

.about-game-status.active {
  color: var(--accent);
  border-color: rgba(200, 16, 46, 0.25);
}

/* Music embed */
.about-music-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .hero-left {
    padding: 9.5rem 1.5rem 2rem 1.5rem;
    order: 1;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-right {
    order: 2;
    height: auto;
    width: 100%;
    padding: 1rem 1.5rem 6rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .character-container {
    display: none;
  }

  .character-img {
    height: 70vh;
    max-height: 550px;
    max-width: 90vw;
    object-fit: contain;
    position: fixed;
  }

  .ink-system,
  .ink-overlay,
  .particles {
    position: fixed;
  }

  .hero-title {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    text-align: center;
  }

  .hero-title-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .jp-accent {
    font-size: 6rem;
    right: -1rem;
    top: -2rem;
  }

  .hero-subtitle {
    justify-content: center;
  }

  .nav {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
  }

  .nav-links {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
    list-style: none;
    order: 3;
  }

  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .stats-row {
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .char-data-overlay {
    display: flex;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    gap: 1.2rem;
  }

  .char-data-overlay .char-data-item {
    text-align: left;
    background: rgba(255, 255, 255, 0.65);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .char-data-overlay .char-skill-bar {
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .skill-bar-track {
    width: 75%;
  }

  .vertical-label { display: none; }

  .bg-text {
    position: fixed;
    font-size: 5rem;
    bottom: 10%;
  }

  .scroll-indicator {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 20;
  }

  .year-marker {
    display: none;
  }

  .sound-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 20;
  }

  .center-divider { display: none; }

  .cross-deco { display: none; }

  /* About overlay mobile layout */
  /* About overlay mobile */
  .about-intro {
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .about-pfp-ring {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 5rem;
    width: 140px;
    height: 140px;
  }

  .about-info {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 400px;
    text-align: center;
  }

  .about-detail-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .about-extra {
    padding: 3rem 1.5rem 2rem;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
  }

  .about-scroll-hint {
    bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-left {
    padding: 9.5rem 1rem 1.5rem 1rem;
  }

  .hero-right {
    padding: 1rem 1rem 5rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .stat-number { font-size: 1.3rem; }
  .stat-number .plus { font-size: 0.9rem; }
  .stat-label { font-size: 0.55rem; }

  .bg-text { display: none; }

  .hud-corner { display: none; }
}
