/* =====================================================================
   Michael Michels — Online CV & Project Tracking
   Theme: JDM / Nightride / Sakura
   ===================================================================== */

:root {
  /* Backgrounds */
  --bg:        #07060d;
  --bg-2:      #0b0918;
  --bg-3:      #120a24;
  --panel:     rgba(20, 14, 38, 0.55);
  --panel-2:   rgba(28, 18, 52, 0.75);
  --line:      rgba(255, 156, 196, 0.16);

  /* Neon palette */
  --cyan:      #28e0ff;
  --pink:      #ff2d78;
  --magenta:   #ff3df0;
  --sakura:    #ff9ec4;
  --sakura-2:  #ffd0e0;
  --gold:      #ffcf6b;

  /* Text */
  --text:      #f4eef9;
  --text-dim:  #b6a9cf;
  --text-mut:  #7d7298;

  /* Type */
  --f-display: "Orbitron", system-ui, sans-serif;
  --f-body:    "Rajdhani", system-ui, sans-serif;
  --f-jp:      "Noto Sans JP", system-ui, sans-serif;

  --maxw: 1140px;
  --r: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 45, 120, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 5%, rgba(40, 224, 255, 0.08), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* Sakura canvas overlay */
#sakura {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* =====================================================================
   INTRO / VORSPANN
   ===================================================================== */
html.intro-lock { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background:
    radial-gradient(80% 80% at 50% 34%, rgba(255, 45, 120, 0.22), transparent 60%),
    radial-gradient(60% 60% at 50% 52%, rgba(40, 224, 255, 0.12), transparent 60%),
    #07060d;
  animation: introOut 2.4s cubic-bezier(0.7, 0, 0.2, 1) forwards;
  will-change: transform;
}
.intro__inner { text-align: center; animation: introIn 0.9s ease both; }
.intro__sun {
  display: block; width: 64px; height: 64px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, var(--pink) 55%, var(--magenta));
  box-shadow: 0 0 50px var(--pink);
  animation: introPulse 1.6s ease-in-out infinite;
}
.intro__jp {
  font-family: var(--f-jp); font-weight: 700; line-height: 1;
  font-size: clamp(3rem, 14vw, 8rem);
  background: linear-gradient(90deg, var(--cyan), var(--sakura), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(255, 45, 120, 0.3);
}
.intro__sub {
  margin-top: 1rem; font-family: var(--f-display);
  letter-spacing: 0.3em; font-size: clamp(0.65rem, 2vw, 0.9rem);
  color: var(--sakura); text-transform: uppercase;
}
.intro__bar {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  width: min(240px, 50vw); height: 2px; background: rgba(255, 255, 255, 0.12);
  border-radius: 2px; overflow: hidden;
}
.intro__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  animation: introFill 1.5s ease forwards 0.15s;
}
.intro__skip {
  position: absolute; bottom: 9%; left: 0; right: 0; text-align: center;
  color: var(--text-mut); font-size: 0.78rem; letter-spacing: 0.1em;
  animation: introIn 0.6s ease both 0.8s;
}
@keyframes introIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes introPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 40px var(--pink); } 50% { transform: scale(1.08); box-shadow: 0 0 72px var(--pink); } }
@keyframes introFill { to { width: 100%; } }
@keyframes introOut { 0%, 66% { transform: translateY(0); visibility: visible; } 100% { transform: translateY(-105%); visibility: hidden; } }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }
.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(18, 10, 36, 0.6) 12%, rgba(18, 10, 36, 0.6) 88%, transparent);
}
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent);
  opacity: 0.4;
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.section__kicker {
  font-family: var(--f-jp);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--sakura);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 0.8rem;
}
.section__lead {
  max-width: 60ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  margin-bottom: 2.5rem;
}
.hl {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--sakura));
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  --bd: var(--pink);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-display);
  font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1.5px solid var(--bd);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
  position: relative;
}
.btn--primary {
  color: #15030d;
  background: linear-gradient(90deg, var(--pink), var(--magenta));
  border-color: transparent;
  box-shadow: 0 0 0 rgba(255, 45, 120, 0), 0 10px 30px -10px var(--pink);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255, 45, 120, 0.6), 0 14px 34px -10px var(--pink);
}
.btn--ghost {
  color: var(--cyan);
  background: rgba(40, 224, 255, 0.06);
  border-color: var(--cyan);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(40, 224, 255, 0.14);
  box-shadow: 0 0 22px rgba(40, 224, 255, 0.45);
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand__sun {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, var(--pink) 55%, var(--magenta));
  box-shadow: 0 0 14px var(--pink);
  flex: none;
}
.brand__name {
  font-family: var(--f-display); font-weight: 900;
  letter-spacing: 0.12em; font-size: 1.15rem;
}
.brand__jp { font-family: var(--f-jp); color: var(--sakura); font-size: 0.8rem; opacity: 0.8; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 6, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(var(--maxw), 94vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  font-weight: 600; font-size: 0.98rem; color: var(--text-dim);
  letter-spacing: 0.02em; position: relative; padding: 0.2rem 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 0.25s ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__cta {
  border: 1.5px solid var(--pink); border-radius: 999px;
  padding: 0.45rem 1.1rem !important; color: var(--sakura) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: rgba(255, 45, 120, 0.12); box-shadow: 0 0 18px rgba(255,45,120,0.35); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-bottom: clamp(30px, 8vh, 100px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg::after {
  /* night sky gradient + stars vibe */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 40%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,0.4), transparent),
    linear-gradient(180deg, #0a0420 0%, #1a0838 38%, #2a0a3e 55%, #07060d 75%);
}

/* Synthwave sun */
.hero__sun {
  position: absolute;
  left: 50%; top: 30%;
  width: min(440px, 70vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd36b 0%, #ff7eb3 38%, #ff2d78 64%, #b026ff 100%);
  box-shadow: 0 0 120px 20px rgba(255, 70, 140, 0.45);
  z-index: -1;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 100%, #000 0);
}
.hero__sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 28px,
    rgba(7, 6, 13, 0.9) 28px 30px,
    transparent 30px 50px,
    rgba(7, 6, 13, 0.9) 50px 53px,
    transparent 53px 78px,
    rgba(7, 6, 13, 0.9) 78px 82px,
    transparent 82px 116px,
    rgba(7, 6, 13, 0.9) 116px 122px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent 46%, #000 52%);
  mask-image: linear-gradient(180deg, transparent 46%, #000 52%);
}

/* Perspective grid floor */
.hero__grid {
  position: absolute;
  left: -25%; right: -25%; bottom: 0; height: 46%;
  background-image:
    linear-gradient(90deg, rgba(40,224,255,0.55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,45,120,0.45) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(74deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(180deg, transparent, #000 38%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%);
  animation: gridMove 2.6s linear infinite;
  opacity: 0.65;
}
@keyframes gridMove { to { background-position: 0 64px, 0 64px; } }

.hero__mountains {
  position: absolute; left: 0; right: 0; bottom: 44%; height: 90px;
  background:
    linear-gradient(135deg, transparent 49%, #1a0d33 50%) 0 0/120px 90px repeat-x;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}

.hero__content { text-align: center; z-index: 2; }
.hero__eyebrow {
  font-family: var(--f-jp); letter-spacing: 0.3em; color: var(--sakura);
  font-size: clamp(0.75rem, 2vw, 0.95rem); margin-bottom: 1rem; text-shadow: 0 0 14px rgba(255,156,196,0.6);
}
.hero__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6rem); line-height: 0.96;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255,45,120,0.35);
}
.hero__title .accent {
  position: relative;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--sakura), var(--magenta));
  -webkit-background-clip: text; background-clip: text;
}
.hero__title .dot {
  display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, var(--pink) 60%, var(--magenta));
  box-shadow: 0 0 22px var(--pink);
  margin-left: 0.12em; vertical-align: 0.08em;
}
.hero__tag {
  margin: 1.3rem auto 0; max-width: 38ch;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--text-dim);
}
.hero__tag em { color: var(--cyan); font-style: normal; }
.hero__roles {
  display: flex; gap: 0.5rem 1.4rem; justify-content: center; flex-wrap: wrap;
  margin: 1.4rem 0 2.2rem; font-family: var(--f-display); letter-spacing: 0.14em;
  font-size: 0.82rem; color: var(--text-mut); text-transform: uppercase;
}
.hero__roles li { position: relative; }
.hero__roles li + li::before {
  content: "/"; color: var(--pink); position: absolute; left: -0.95rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,156,196,0.5); border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--sakura); transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__text p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1.08rem; }
.about__text strong { color: var(--text); }

.about__photo { position: relative; margin: 0; }
.about__photo img {
  width: 100%; border-radius: var(--r); border: 1px solid var(--line);
  aspect-ratio: 4 / 5; max-height: 540px; object-fit: cover; object-position: center 25%;
  box-shadow: 0 24px 60px -26px rgba(255, 45, 120, 0.6);
}
.about__photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--f-display); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(7, 6, 13, 0.72); border: 1px solid var(--line); color: var(--sakura);
  backdrop-filter: blur(6px);
}

.about__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.fact {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.2rem; text-align: center; backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fact:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 0 26px -6px var(--pink); }
.fact__num {
  display: block; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: transparent; background: linear-gradient(90deg, var(--cyan), var(--sakura));
  -webkit-background-clip: text; background-clip: text;
}
.fact__label { color: var(--text-mut); font-size: 0.9rem; letter-spacing: 0.02em; }

/* =====================================================================
   TIMELINE / CV
   ===================================================================== */
.timeline { position: relative; margin: 1rem 0 3.5rem; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--pink), var(--magenta));
  opacity: 0.6;
}
.timeline__item { position: relative; padding: 0 0 2rem 1.6rem; }
.timeline__dot {
  position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--pink); box-shadow: 0 0 12px var(--pink);
  transform: translateX(-1px);
}
.timeline__item:nth-child(even) .timeline__dot { border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.timeline__date {
  font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--sakura); text-transform: uppercase;
}
.timeline__item h3 { font-size: 1.25rem; margin: 0.3rem 0 0.1rem; font-weight: 700; }
.timeline__org { color: var(--cyan); font-weight: 600; margin-bottom: 0.4rem; }
.timeline__item p { color: var(--text-dim); }
.timeline__item ul { color: var(--text-dim); padding-left: 1.1rem; list-style: none; }
.timeline__item ul li { position: relative; padding-left: 1rem; }
.timeline__item ul li::before {
  content: "›"; position: absolute; left: 0; color: var(--pink); font-weight: 700;
}

/* SKILLS */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skills__col {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem;
}
.skills__head { font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips li {
  font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(40,224,255,0.4); color: var(--cyan); background: rgba(40,224,255,0.07);
}
.chips--accent li { border-color: rgba(255,45,120,0.4); color: var(--sakura); background: rgba(255,45,120,0.08); }

/* =====================================================================
   GARAGE
   ===================================================================== */
.garage { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.garage__visual { position: relative; margin: 0; }
.garage__visual img {
  width: 100%; border-radius: var(--r); border: 1px solid var(--line);
  aspect-ratio: 4 / 5; max-height: 540px; object-fit: cover; object-position: center;
  box-shadow: 0 24px 60px -26px rgba(40, 224, 255, 0.55);
}
.garage__badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--f-display); font-weight: 900; font-size: 1.4rem;
  color: var(--pink); text-shadow: 0 0 16px var(--pink); letter-spacing: 0.08em;
}
.garage__banner {
  position: relative; margin: 1.6rem 0 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
}
.garage__banner img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 55%; display: block;
}
.garage__banner figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--f-jp); color: var(--sakura); letter-spacing: 0.06em;
  text-shadow: 0 1px 12px #000;
}
.garage__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.spec {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.spec:hover { transform: translateY(-3px); border-color: var(--cyan); }
.spec__label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mut); }
.spec__value { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; color: var(--text); }

/* =====================================================================
   PRODUCT TILES (Shop)
   ===================================================================== */
.product {
  position: relative; margin: 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 18px 40px -20px var(--pink); }
.product img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.product:hover img { transform: scale(1.06); }
.product figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text);
  background: linear-gradient(transparent, rgba(7, 6, 13, 0.92));
}

/* =====================================================================
   WORKSHOP CARDS
   ===================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(40,224,255,0.08), transparent 40%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--pink); box-shadow: 0 18px 40px -18px var(--pink); }
.card:hover::before { opacity: 1; }
.card__icon { margin-bottom: 0.9rem; color: var(--cyan); line-height: 0; }
.card__icon svg { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(40, 224, 255, 0.45)); }
.card--craft .card__icon { color: var(--sakura); }
.card--craft .card__icon svg { filter: drop-shadow(0 0 10px rgba(255, 45, 120, 0.45)); }
.card h3 { font-family: var(--f-display); font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 1rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card__tags li { font-size: 0.74rem; color: var(--text-mut); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; }

/* =====================================================================
   PROJECTS / TRACKING
   ===================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-dim);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.2rem; cursor: pointer; transition: all 0.2s ease;
}
.filter:hover { color: var(--text); border-color: var(--cyan); }
.filter.is-active { color: #15030d; background: linear-gradient(90deg, var(--cyan), var(--sakura)); border-color: transparent; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.project {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project:hover { transform: translateY(-5px); border-color: var(--cyan); box-shadow: 0 16px 38px -18px var(--cyan); }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.project__cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mut); }
.project__status {
  font-family: var(--f-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.status--progress { color: var(--cyan); background: rgba(40,224,255,0.12); border: 1px solid rgba(40,224,255,0.4); }
.status--planned  { color: var(--gold); background: rgba(255,207,107,0.12); border: 1px solid rgba(255,207,107,0.4); }
.status--done     { color: var(--sakura); background: rgba(255,45,120,0.12); border: 1px solid rgba(255,45,120,0.4); }
.project h3 { font-family: var(--f-display); font-size: 1.2rem; }
.project p { color: var(--text-dim); font-size: 0.96rem; flex: 1; }
.project__bar {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; position: relative;
}
.project__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 999px; transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.project__meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-mut); }
.project__pct { font-family: var(--f-display); font-weight: 700; color: var(--text); }
.project__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project__tags span { font-size: 0.72rem; color: var(--text-mut); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.55rem; }

/* =====================================================================
   SHOP
   ===================================================================== */
.shop { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.shop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =====================================================================
   3D-SCAN VIEWER
   ===================================================================== */
.viewer {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 45, 120, 0.12), transparent 55%),
    radial-gradient(100% 100% at 50% 100%, rgba(40, 224, 255, 0.12), transparent 55%),
    var(--bg-3);
  touch-action: none;
}
.viewer canvas { display: block; width: 100%; height: 100%; }
.viewer__hint {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 1.5rem; color: var(--text-dim); font-weight: 600; pointer-events: none;
}
.viewer__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.viewer__btn {
  font-family: var(--f-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(7, 6, 13, 0.6); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.95rem; cursor: pointer; backdrop-filter: blur(6px); transition: all 0.2s ease;
}
.viewer__btn:hover { color: var(--text); border-color: var(--cyan); box-shadow: 0 0 14px rgba(40, 224, 255, 0.35); }
.viewer__btn.is-active { color: #15030d; background: linear-gradient(90deg, var(--cyan), var(--sakura)); border-color: transparent; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { margin-top: 1.5rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 0.9rem; font-size: 1.05rem; }
.contact__ic {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--sakura);
}
.contact__ic svg { width: 20px; height: 20px; }
.contact__list a { transition: color 0.2s ease; }
.contact__list a:hover { color: var(--cyan); }

.contact__form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; display: grid; gap: 1rem; }
.contact__form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--text-dim); }
.contact__form input,
.contact__form textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--text);
  background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(40,224,255,0.15); }
.contact__form .btn { justify-content: center; }
.contact__note { font-size: 0.9rem; min-height: 1.2em; color: var(--sakura); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; background: rgba(7,6,13,0.6); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.footer__tag { font-family: var(--f-jp); color: var(--sakura); letter-spacing: 0.1em; font-size: 0.92rem; }
.footer__copy { color: var(--text-mut); font-size: 0.88rem; }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .about, .garage, .shop, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 380px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .garage__specs { grid-template-columns: 1fr 1fr; }
  .about__facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 1.4rem;
    padding: 6rem 2rem 2rem; background: rgba(11, 9, 24, 0.97);
    backdrop-filter: blur(16px); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__burger { display: flex; z-index: 51; }
  .nav__links a { font-size: 1.15rem; }

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

@media (max-width: 560px) {
  .cards, .projects, .shop__grid, .garage__specs { grid-template-columns: 1fr; }
  .hero__roles { font-size: 0.72rem; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none !important; }
}
