/* ===========================
   Variables & Theme
   =========================== */
:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --bg-card: #161618;
  --surface: #1e1e21;
  --text: #f0ebe4;
  --text-secondary: #a8a29e;
  --text-muted: #5c5856;
  --accent: #e8641b;
  --accent-hover: #f57a38;
  --accent-glow: rgba(232, 100, 27, 0.15);
  --accent-subtle: rgba(232, 100, 27, 0.05);
  --accent-bright: #ff7a2e;
  --blue: #4a90e2;
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(232, 100, 27, 0.2);
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-accent: 0 8px 40px rgba(232, 100, 27, 0.15);
  --shadow-glow: 0 0 60px rgba(232, 100, 27, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --nav-height: 72px;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 32px);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

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

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   Grain Overlay
   =========================== */
/* grain removed */

/* ===========================
   Cursor Glow
   =========================== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 100, 27, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active { opacity: 1; }

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: var(--transition);
}

.nav-logo:hover { color: var(--accent); }

.logo-kanji {
  font-family: var(--font-jp);
  font-size: 1.5rem;
  font-weight: 900;
  opacity: 0.2;
  transition: all var(--transition);
  display: inline-block;
}

.nav-logo:hover .logo-kanji {
  opacity: 0.8;
  color: var(--accent);
  transform: scale(1.1);
}

.logo-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Mountain backgrounds */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mountain-layer {
  position: absolute;
  bottom: 0;
  left: -5%;
  right: -5%;
}

.mountain-layer svg {
  width: 110%;
  display: block;
}

.mountain-far {
  bottom: 20px;
}

.mountain-far svg {
  height: 400px;
}

.mountain-far svg path {
  fill: rgba(180, 70, 20, 0.08);
}

.mountain-mid {
  bottom: 10px;
}

.mountain-mid svg {
  height: 350px;
}

.mountain-mid svg path {
  fill: rgba(200, 80, 22, 0.06);
}

.mountain-near {
  bottom: 0;
}

.mountain-near svg {
  height: 300px;
}

.mountain-near svg path {
  fill: rgba(160, 60, 15, 0.1);
}

@keyframes mountainFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-8px) translateX(5px); }
}

/* Floating kanji */
.floating-kanji {
  position: absolute;
  inset: 0;
}

.kanji {
  position: absolute;
  font-family: var(--font-jp);
  font-weight: 900;
  color: var(--accent);
  opacity: 0.02;
  user-select: none;
  animation: kanjiFloat 25s ease-in-out infinite;
}

.k1 { font-size: 12rem; top: 5%; right: 10%; animation-delay: 0s; }
.k2 { font-size: 8rem; top: 40%; left: 5%; animation-delay: -5s; }
.k3 { font-size: 15rem; bottom: 15%; right: 20%; animation-delay: -8s; }
.k4 { font-size: 6rem; top: 20%; left: 30%; animation-delay: -12s; }
.k5 { font-size: 10rem; bottom: 30%; left: 15%; animation-delay: -3s; }

@keyframes kanjiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.02; }
  25% { transform: translateY(-20px) rotate(2deg); opacity: 0.04; }
  75% { transform: translateY(10px) rotate(-1deg); opacity: 0.02; }
}

/* Hero layout */
.hero-layout {
  display: block;
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  max-width: 580px;
}

.hero-label-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideRight 0.8s ease 0.2s forwards;
}

.hero-line {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
}

.hero-label {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Glitch text effect for name */
.hero-name {
  font-family: var(--font);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.3s forwards;
  position: relative;
  color: var(--text);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch1 0.3s ease;
  color: var(--accent);
  opacity: 0.8;
  clip-path: inset(20% 0 30% 0);
}

.glitch-text:hover::after {
  animation: glitch2 0.3s ease;
  color: var(--blue);
  opacity: 0.8;
  clip-path: inset(60% 0 10% 0);
}

@keyframes glitch1 {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

@keyframes glitch2 {
  0% { transform: translate(0); }
  20% { transform: translate(3px, -2px); }
  40% { transform: translate(-3px, 2px); }
  60% { transform: translate(1px, -3px); }
  80% { transform: translate(-1px, 3px); }
  100% { transform: translate(0); }
}

.hero-title {
  font-family: var(--font);
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.title-bracket {
  color: var(--accent);
  font-weight: 400;
  opacity: 0.6;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease 0.6s forwards;
  margin-bottom: 48px;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-icon {
  color: var(--accent);
  font-size: 0.9rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-hover);
}

/* Hero image */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: heroImageIn 1s ease 0.5s forwards;
}

@keyframes heroImageIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

.hero-image-border {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 3px);
  background: linear-gradient(135deg, var(--accent), transparent 50%, var(--accent-glow));
  z-index: -1;
  opacity: 0.6;
  animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.hero-image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.6) 0%, transparent 40%);
  pointer-events: none;
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: saturate(1.1) contrast(1.05);
}

.hero-image-frame:hover img {
  transform: scale(1.05);
}

.hero-image-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  z-index: 3;
  border: 1px solid var(--border-hover);
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px transparent; }
}

/* Orbit rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.ring-1 {
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  animation: orbitSpin 30s linear infinite;
}

.ring-2 {
  width: 160%;
  height: 160%;
  top: -30%;
  left: -30%;
  border-style: dashed;
  opacity: 0.3;
  animation: orbitSpin 45s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero Toy Cards — bento layout */
.hero-toys {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: auto;
  gap: 16px;
  max-width: 960px;
  margin: 48px auto 0;
  position: relative;
  z-index: 2;
}

.toy-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.toy-card-frame {
  overflow: hidden;
  height: 100%;
}

.toy-card-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: contrast(1.05) saturate(1.05);
}

.toy-card--tall .toy-card-frame img {
  aspect-ratio: 3/4;
}

.toy-card--wide .toy-card-frame img {
  aspect-ratio: auto;
}

.toy-card:hover .toy-card-frame img {
  transform: scale(1.03);
}

.toy-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(to top, rgba(10, 10, 11, 0.85) 0%, transparent 100%);
}

/* Section divider */
.section-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 3;
}

.section-divider svg {
  width: 100%;
  height: 120px;
  display: block;
}

.mountain-divider {
  margin-top: -2px;
  background: var(--bg-alt);
}

.mountain-divider svg {
  width: 100%;
  height: 100px;
  display: block;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 100, 27, 0.3);
}

.btn-primary .btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: none;
}

.btn-primary:hover .btn-glow {
  animation: btnShine 0.6s ease;
}

@keyframes btnShine {
  to { transform: translateX(100%); }
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent), var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(232, 100, 27, 0.1);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.section-number {
  font-family: var(--font);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  margin-top: -8px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.title-accent {
  color: var(--accent);
  font-style: italic;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 52px;
  max-width: 640px;
}

.section-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(232, 100, 27, 0.3);
  transition: text-decoration-color var(--transition);
}

.section-desc a:hover {
  text-decoration-color: var(--accent);
}

/* ===========================
   Photos Section
   =========================== */
.photos-section {
  padding: 100px 0 80px;
  background: var(--bg-alt);
  overflow: hidden;
}

.photos-track {
  position: relative;
  margin-top: 40px;
}

.photos-track::before,
.photos-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.photos-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}

.photos-track::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}

.photos-scroll {
  display: flex;
  gap: 24px;
  padding: 20px 40px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.photos-scroll::-webkit-scrollbar { display: none; }
.photos-scroll:active { cursor: grabbing; }

.photo-card {
  flex: 0 0 340px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  scroll-snap-align: center;
  border: 1px solid var(--border);
  transition: all 0.5s ease;
  transform: translateY(0);
}

.photo-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-accent);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: saturate(0.9);
}

.photo-card:hover img {
  transform: scale(1.1);
  filter: saturate(1.2);
}

.photo-card .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.85) 0%, rgba(10, 10, 11, 0.2) 35%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.photo-card:hover .photo-overlay { opacity: 1; }

.photo-overlay .photo-location {
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.photo-overlay .photo-location i { margin-right: 6px; }

.photo-overlay .photo-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* Motor photos variant */
.photos-motor {
  padding-top: 40px;
  background: var(--bg-alt);
}

.photos-motor .photo-card:hover {
  box-shadow: var(--shadow-lg), 0 0 60px rgba(232, 100, 27, 0.15);
}

/* ===========================
   Sections
   =========================== */
.section {
  padding: 120px 0;
  position: relative;
}

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

/* ===========================
   Projects
   =========================== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.5s ease;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-subtle), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.project-card:hover::before { opacity: 1; }
.project-card:hover::after { opacity: 1; }

.project-card-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.project-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--transition);
}

.project-card:hover .project-info h3 { color: var(--accent); }

.project-info .project-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.project-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.project-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.project-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  box-shadow: 0 0 6px var(--accent-glow);
}

.project-use-case {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
  line-height: 1.7;
}

.project-use-case a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(232, 100, 27, 0.3);
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project-demo {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-left: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.project-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-demo img {
  transform: scale(1.03);
}

/* ===========================
   Writing
   =========================== */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.writing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.writing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.5s ease;
  border-radius: 0 0 2px 0;
}

.writing-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.writing-card:hover::before { height: 100%; }

.writing-card h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--transition);
}

.writing-card:hover h3 { color: var(--accent); }

.writing-card .writing-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 28px;
  flex: 1;
}

.writing-card .writing-link {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.writing-card .writing-link i {
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.writing-card:hover .writing-link i {
  transform: translateX(6px);
}

/* ===========================
   Contact
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.contact-item:hover::before { opacity: 1; }

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-xs);
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.contact-item:hover .contact-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.05);
}

.contact-details {
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.contact-details h3 {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-details a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition);
}

.contact-details a:hover { color: var(--accent); }

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--bg-alt);
  padding: 60px 0 40px;
  position: relative;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-kanji {
  font-family: var(--font-jp);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
}

.footer-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: all var(--transition);
  position: relative;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity var(--transition);
}

.footer-links a:hover::after { opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-made {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===========================
   Scroll Reveal
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered reveal */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================
   Scrollbar
   =========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .hero-toys {
    gap: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 140px;
  }

  .orbit-ring { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }

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

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

  .hero-toys {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: 0;
  }

  .photo-card { flex: 0 0 280px; }

  .project-card-inner { grid-template-columns: 1fr; }

  .project-demo {
    min-height: 240px;
    order: -1;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }

  .section { padding: 80px 0; }
  .section-title { font-size: 2rem; }
  .section-number { font-size: 3rem; }
  .section-header { gap: 16px; }

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

  .footer-top {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .footer-brand { flex-direction: column; }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cursor-glow { display: none; }

  .floating-kanji { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
  .writing-grid { grid-template-columns: 1fr; }
  .photo-card { flex: 0 0 240px; }
  .photos-scroll { padding: 16px 20px 32px; gap: 16px; }
  .hero-name { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .section-number { font-size: 2.5rem; }
  .hero-stats { gap: 12px; }
  .stat-value { font-size: 1.2rem; }
}
