/* ==========================================================
 * SPOIDY PORTFOLIO — JAPANESE NOIR & APPLE PREMIUM (60FPS ULTRA-OPTIMIZED)
 * "Personal projects. Clean design. Built with intention."
 * ========================================================== */

:root {
  --bg: #030305;
  --bg-elevated: #09090c;
  --bg-card: rgba(10, 10, 15, 0.75);
  --bg-card-hover: rgba(18, 18, 26, 0.88);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-subtle: #3f3f46;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.25);
  --border-card: rgba(255, 255, 255, 0.09);

  --accent-cyan: #ffffff;
  --accent-white: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.05);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1120px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

/* Subtle Film Grain Noise (Single hardware-accelerated layer) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  transform: translateZ(0);
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

/* 3D Fixed Samurai Katana Canvas Overlay (Background Layer) */
#three-katana-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  transform: translateZ(0);
  will-change: transform;
  opacity: 0.85;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }

/* ==========================================================
 * CUSTOM CURSOR
 * ========================================================== */
.cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 99999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s var(--ease-elastic),
              height 0.3s var(--ease-elastic),
              border-color 0.3s,
              background 0.3s;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor.hovering {
  width: 48px;
  height: 48px;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  transition: opacity 0.5s;
  will-change: transform;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2));
  z-index: 10001;
  width: 0%;
  transform: translateZ(0);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; }
.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Body Loading State - Completely hides page text & nav during load */
body.is-loading #nav,
body.is-loading main,
body.is-loading .footer,
body.is-loading .scroll-progress {
  opacity: 0 !important;
  pointer-events: none !important;
}

#nav, main, .footer {
  transition: opacity 0.8s var(--ease-smooth);
}

/* ==========================================================
 * LIVE 3D KATANA 60FPS CLEAN NOIR LOADING SCREEN
 * ========================================================== */
.loader-katana-3d-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
  background: transparent;
  pointer-events: all;
  transition: opacity 0.75s var(--ease-smooth), visibility 0.75s;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
}

.loader-katana-3d-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Pure Clean Minimalist Ambient Lighting Aura */
.loader-ambient-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 550px);
  height: min(80vw, 550px);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  will-change: transform;
}

/* Bottom Telemetry Status Pill */
.manga-loader-pill {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.5rem;
  border-radius: 99px;
  background: rgba(12, 12, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9);
  transform: translate3d(0, 0, 0);
}

.manga-pill-kanji {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  padding-right: 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.manga-pill-pct {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.manga-pill-kanji {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  padding-right: 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.manga-pill-pct {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

/* ==========================================================
 * NAVIGATION
 * ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  transform: translateZ(0);
}

.nav.scrolled {
  background: rgba(3, 3, 5, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--text-primary);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-elastic);
  transform: translateZ(0);
}

.nav-brand:hover .nav-brand-icon {
  transform: rotate(-10deg) scale(1.1);
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand-dot { color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.95rem;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05), 0 0 15px rgba(255, 255, 255, 0.03);
}

.mobile-nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.magnetic {
  transition: transform 0.2s var(--ease-out);
  will-change: transform;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: none;
  transition: all 0.25s;
}

.nav-icon-btn:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
  border-color: var(--border-hover);
  transform: scale(1.06);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: none;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(3, 3, 5, 0.98);
  backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

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

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s, transform 0.3s;
}

.mobile-nav-link:hover { color: var(--text-primary); transform: translateX(8px); }

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: none;
}

/* ==========================================================
 * HERO SECTION
 * ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.hero-time-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}

.hero-time-tag .time-tz {
  opacity: 0.55;
  font-size: 0.62rem;
}

.hero-title {
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .dim { color: var(--text-muted); font-weight: 500; }

/* Glitch Encrypting Role Pill */
.hero-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-role-pill:hover,
.hero-role-pill.glitching {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.role-prompt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.05em;
  user-select: none;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  min-height: 1.35em;
  white-space: nowrap;
}

.glitch-char {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.role-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #ffffff;
  border-radius: 1px;
  margin-left: 2px;
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================
 * UNIQUELY JAPANESE CENTERED HERO SCROLL CUE
 * ========================================================== */
.japanese-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  z-index: 10;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.japanese-scroll-cue:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

.jp-scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  background: rgba(12, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.jp-scroll-kanji {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.jp-scroll-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.6rem;
}

.jp-scroll-en {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* Vertical Ink/Blade Light Track */
.jp-scroll-track {
  width: 1.5px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.jp-scroll-drop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0));
  border-radius: 99px;
  box-shadow: 0 0 6px #ffffff;
  animation: jpDropAnim 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes jpDropAnim {
  0% { transform: translateY(-12px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(32px); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.65rem;
  border-radius: 99px;
  border: none;
  cursor: none;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.22), 0 0 60px rgba(255, 255, 255, 0.08);
}

.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-ghost:active { transform: translateY(-1px) scale(0.98); }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ==========================================================
 * SECTIONS & HEADERS (CONTENT VISIBILITY FOR 60FPS)
 * ========================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.section-divider {
  width: 50px;
  height: 1px;
  background: var(--border-hover);
  margin: 0 auto;
}

/* ==========================================================
 * PROJECTS SECTION (REDESIGNED SUMI-E NOIR GLASS CARDS)
 * ========================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.15s ease-out;
  cursor: none;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.project-card .card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.project-card:hover .card-spotlight { opacity: 1; }

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Background number watermark */
.project-card-num-watermark {
  position: absolute;
  top: 1rem;
  left: 1.75rem;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s;
  z-index: 0;
}

.project-card:hover .project-card-num-watermark {
  color: rgba(255, 255, 255, 0.07);
}

/* Japanese Anime/Manga Ink Line Art Sketch */
.project-card-manga {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 220px;
  height: 165px;
  pointer-events: none;
  opacity: 0.09;
  color: #ffffff;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  z-index: 0;
  will-change: transform, opacity;
}

.project-card-manga svg {
  width: 100%;
  height: 100%;
}

.project-card:hover .project-card-manga {
  opacity: 0.26;
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.04);
}

.project-card:hover::before { opacity: 1; }
.project-card > * { position: relative; z-index: 1; }

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s;
}

.project-card:hover .project-card-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.project-card-icon svg { width: 20px; height: 20px; }

.project-card-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-card-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project-card-tagline {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 0.95rem;
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.project-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s;
}

.project-card:hover .tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.project-card-arrow {
  position: absolute;
  top: 2.25rem;
  right: 2rem;
  color: var(--text-subtle);
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  transform: translate3d(-8px, 8px, 0);
}

.project-card:hover .project-card-arrow {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  color: var(--text-primary);
}

/* ==========================================================
 * TIMELINE / JOURNEY SECTION
 * ========================================================== */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2.25rem;
}

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

.timeline-node {
  position: absolute;
  left: 20px;
  top: 1.6rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-elastic);
  z-index: 2;
  transform: translateZ(0);
}

.timeline-node::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.3s;
}

.timeline-item:hover .timeline-node {
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.15s ease-out;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.timeline-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.timeline-icon svg { width: 16px; height: 16px; }

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ==========================================================
 * TECH STACK
 * ========================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.tech-category {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.tech-category:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.tech-category-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.tech-items { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: none;
  transition: all 0.25s var(--ease-out);
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tech-item img {
  width: 17px;
  height: 17px;
  border-radius: 3px;
}

.tech-item .tech-icon-fallback {
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item .tech-icon-fallback svg { width: 15px; height: 15px; }

/* ==========================================================
 * ABOUT SECTION (JAPANESE ANIME "WAY OF THE CRAFT" SHOWCASE)
 * ========================================================== */
.craft-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.craft-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  backface-visibility: hidden;
  will-change: transform;
}

.craft-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
}

/* Main Hero Craft Card */
.craft-card-hero {
  grid-column: span 3;
  padding: 2.75rem 2.5rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(13, 13, 18, 0.85) 0%, rgba(8, 8, 12, 0.95) 100%);
}

.craft-hero-bg-kanji {
  position: absolute;
  top: -1.5rem;
  right: 2.5rem;
  font-family: var(--font-heading);
  font-size: 13rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  transition: color 0.4s, transform 0.4s;
}

.craft-card-hero:hover .craft-hero-bg-kanji {
  color: rgba(255, 255, 255, 0.05);
  transform: scale(1.05) rotate(2deg);
}

.craft-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.craft-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-primary);
}

.craft-kanji-tag {
  color: #ffffff;
  font-weight: 700;
  padding-right: 0.35rem;
  border-right: 1px solid var(--border);
}

.craft-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.craft-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.craft-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.craft-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.craft-spec-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.craft-spec-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.craft-spec-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.craft-gh-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ==========================================================
 * JAPANESE MANGA LINE-ART SHOWCASE CARDS (NO TEXT / PURE INK ART)
 * ========================================================== */
.manga-art-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  height: 250px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  cursor: default;
}

.manga-art-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.manga-art-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  color: #ffffff;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.manga-art-bg svg {
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.manga-art-card:hover .manga-art-bg {
  opacity: 0.65;
  transform: scale(1.06) rotate(-1deg);
}

.manga-art-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 3, 5, 0.8) 100%);
}

.manga-art-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  transition: color 0.3s;
}

.manga-art-card:hover .manga-art-num {
  color: #ffffff;
}

.manga-art-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.manga-art-kanji {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.manga-art-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .craft-bento {
    grid-template-columns: 1fr;
  }
  .craft-card-hero {
    grid-column: span 1;
  }
  .craft-spec-sep { display: none; }
  .manga-art-card { height: 210px; }
}

/* ==========================================================
 * CONTACT SECTION
 * ========================================================== */
.contact-content { text-align: center; }

.contact-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: none;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-align: left;
  transform: translateZ(0);
}

.channel-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.channel-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform 0.3s var(--ease-elastic);
}

.channel-btn:hover .channel-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  background: var(--accent-dim);
}

.channel-icon-wrap svg { width: 18px; height: 18px; }

.channel-info {
  display: flex;
  flex-direction: column;
}

.channel-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.channel-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.channel-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
  transition: transform 0.3s, color 0.3s;
}

.channel-btn:hover .channel-arrow {
  transform: translate(2px, -2px);
  color: var(--text-primary);
}

/* ==========================================================
 * FOOTER
 * ========================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  position: relative;
  z-index: 2;
  background: rgba(3, 3, 5, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-sep {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.15);
}

.footer-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  letter-spacing: 0.08em;
}
/* ==========================================================
 * FLOATING JAPANESE BACK TO TOP BUTTON
 * ========================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 99px;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translate3d(0, 0, 0);
}

.back-to-top-btn:hover {
  background: rgba(25, 25, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.08);
}

.back-to-top-kanji {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  padding-right: 0.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile adjust for back to top */
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 1.5rem;
    right: 1.25rem;
    padding: 0.45rem 0.85rem;
  }
}

/* ==========================================================
 * EXPANDED PROJECT MODAL
 * ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-smooth);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: #09090d;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
  opacity: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 255, 255, 0.05);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: none;
  padding: 0.25rem;
  transition: color 0.2s, transform 0.2s;
}

.modal-close:hover { color: var(--text-primary); transform: rotate(90deg); }

.modal-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.modal-badge-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.modal-badge-private {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.modal-title { font-size: 1.6rem; font-weight: 700; }
.modal-tagline { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* Features List */
.modal-features-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-features-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-features-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}

.modal-features-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.modal-actions { display: flex; gap: 0.75rem; }

/* ==========================================================
 * TOAST
 * ========================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10003;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: 99px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* ==========================================================
 * SCROLL REVEAL (GPU COMPOSITED)
 * ========================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 15px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ==========================================================
 * RESPONSIVE (MOBILE & TABLET ULTRA-OPTIMIZED & UNCLUTTERED)
 * ========================================================== */
@media (hover: none) and (pointer: coarse) {
  body, a, button, .channel-btn, .project-card, .timeline-card, .manga-art-card, .tech-item {
    cursor: auto !important;
  }
  .cursor, .cursor-glow {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .craft-bento {
    grid-template-columns: 1fr;
  }
  .craft-card-hero {
    grid-column: span 1;
  }
  .craft-spec-sep { display: none; }
  .manga-art-card { height: 210px; }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
    overflow-x: hidden;
  }
  .cursor, .cursor-glow {
    display: none !important;
  }
  a, button, .tech-item {
    cursor: auto;
  }

  .container {
    padding: 0 1.15rem;
    max-width: 100vw;
  }

  /* Mobile Cards */
  .craft-card, .project-card, .timeline-card, .tech-category, .channel-btn {
    background: var(--bg-card);
    border-color: var(--border-card);
    contain: layout style paint;
  }

  /* Nav */
  .nav {
    padding: 0.75rem 0;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
  }

  /* Mobile Drawer Overlay - Japanese Cyber Aesthetics */
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(3, 3, 6, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1.25rem 1.75rem;
    overflow-y: auto;
  }

  .mobile-nav.open {
    display: flex;
    animation: drawerFadeIn 0.3s var(--ease-smooth);
  }

  @keyframes drawerFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
  }

  .mobile-nav-ambient {
    position: absolute;
    top: 15%;
    right: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-nav-brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .mobile-nav-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
  }

  .mobile-nav-brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
  }

  .mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .mobile-close:active {
    transform: scale(0.92);
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.5rem 0;
  }

  .mobile-nav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    background: rgba(15, 15, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
  }

  .mobile-nav-card:active, .mobile-nav-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
  }

  .mobile-nav-card-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .mobile-nav-idx {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    transition: color 0.2s;
  }

  .mobile-nav-card:active .mobile-nav-idx, .mobile-nav-card.active .mobile-nav-idx {
    color: #ffffff;
  }

  .mobile-nav-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
  }

  .mobile-nav-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
  }

  .mobile-nav-card:active .mobile-nav-arrow {
    color: #ffffff;
    transform: translateX(3px);
  }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .mobile-nav-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-social-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
  }

  .mobile-social-pill:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-telemetry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
  }

  /* Hero */
  .hero {
    padding: 5.5rem 1.15rem 2.5rem;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
    letter-spacing: -0.04em;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .hero-status-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 2.25rem;
    width: 100%;
  }
  .hero-status-pill {
    padding: 0.4rem 1rem;
  }
  .hero-time-tag {
    padding: 0.35rem 0.85rem;
  }
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
  }

  /* Hide decorative floating scroll cue on mobile to prevent button overlap */
  .japanese-scroll-cue {
    display: none !important;
  }

  /* Projects Feed */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .project-card {
    padding: 1.4rem 1.2rem;
  }
  .project-card-manga {
    width: 140px;
    height: 95px;
    opacity: 0.22;
  }
  .project-card-title {
    font-size: 1.25rem;
  }
  .project-card-desc {
    font-size: 0.85rem;
  }

  /* Tech Stack - Uncluttered Streamlined Grid */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .tech-category {
    padding: 1.15rem 1.25rem;
    background: rgba(13, 13, 18, 0.5);
    border-radius: var(--radius-sm);
  }
  .tech-category-name {
    font-size: 0.65rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.45rem;
  }
  .tech-items {
    gap: 0.45rem;
  }
  .tech-item {
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
  }
  .tech-item img {
    width: 15px;
    height: 15px;
  }

  /* Timeline */
  .timeline-container::before {
    left: 14px;
  }
  .timeline-item {
    padding-left: 38px;
    margin-bottom: 1.5rem;
  }
  .timeline-node {
    left: 7px;
    width: 14px;
    height: 14px;
  }
  .timeline-card {
    padding: 1.15rem;
  }
  .timeline-title {
    font-size: 1.1rem;
  }
  .timeline-desc {
    font-size: 0.82rem;
  }

  /* Way of the Craft / About Section */
  .craft-card-hero {
    padding: 1.65rem 1.2rem;
  }
  .craft-hero-bg-kanji {
    font-size: 6.5rem;
    top: -0.5rem;
    right: 0.5rem;
    opacity: 0.03;
  }
  .craft-quote {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }
  .craft-meta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding-top: 1rem;
  }
  .craft-spec-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .craft-spec-val {
    font-size: 0.95rem;
  }
  .craft-gh-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1.25rem;
  }

  .manga-art-card {
    height: 175px;
    padding: 1rem 1.15rem;
  }
  .manga-art-num {
    font-size: 1.35rem;
  }

  /* Sections Spacing */
  .section {
    padding: 2.75rem 0;
  }
  .section-header {
    margin-bottom: 1.65rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .section-desc {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  /* Contact & Footer */
  .contact-channels {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }
  .channel-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1.15rem;
  }
  .channel-title {
    font-size: 0.76rem;
  }
  .channel-val {
    font-size: 0.72rem;
  }
  .footer {
    padding: 2rem 0;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.65rem;
  }

  /* Project Modal */
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal {
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1.15rem;
  }
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .tech-item {
    font-size: 0.74rem;
    padding: 0.28rem 0.55rem;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}


