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

:root {
  --pink: #FF2680;
  --blue: #5DCFEE;
  --yellow: #FFE566;
  --white: #FFFFFF;
  --ink: #0D0D0D;
  --sans: 'Nunito', sans-serif;
  --mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--pink);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ── cursor ── */
#cursor {
  width: 14px; height: 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
  will-change: transform;
}
#cursor.big { width: 40px; height: 40px; background: var(--blue); }

/* ── LOCK SCREEN ── */
#lock-screen {
  position: fixed; inset: 0;
  background: var(--pink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1000;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#lock-screen.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
  will-change: transform;
  animation: float 6s ease-in-out infinite alternate;
}
.blob1 { width: 300px; height: 300px; background: var(--yellow); top: -80px; left: -80px; animation-delay: 0s; }
.blob2 { width: 200px; height: 200px; background: var(--blue); bottom: -50px; right: -50px; animation-delay: -2s; }
.blob3 { width: 150px; height: 150px; background: var(--white); top: 40%; right: 5%; animation-delay: -4s; }
@keyframes float { 0%{transform:scale(1) translate(0,0)} 100%{transform:scale(1.1) translate(15px,-15px)} }

.lock-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 2.5rem 2.5rem 2rem;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative; z-index: 2;
  max-width: 400px; width: 90%;
}

.lock-badge {
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 100px;
  font-family: var(--mono); font-size: 10px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 16px; margin-bottom: 1.25rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.lock-title {
  font-family: var(--sans);
  font-size: 2.2rem; font-weight: 900;
  line-height: 1.1; text-align: center;
  margin-bottom: 0.5rem;
}
.lock-title em { color: var(--pink); font-style: italic; }

.lock-sub {
  font-size: 0.85rem; color: #666;
  text-align: center; margin-bottom: 1.5rem;
  line-height: 1.6; max-width: 280px;
}

.camera-wrap {
  position: relative;
  width: 260px; height: 195px;
  border: 3px solid var(--ink);
  border-radius: 20px; overflow: hidden;
  background: #000;
  box-shadow: 4px 4px 0 var(--ink);
}
.camera-wrap::before, .camera-wrap::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--pink); border-style: solid;
  z-index: 10; border-radius: 3px;
}
.camera-wrap::before { top: 7px; left: 7px; border-width: 3px 0 0 3px; }
.camera-wrap::after  { bottom: 7px; right: 7px; border-width: 0 3px 3px 0; }

#webcam { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); display:block; }
#gesture-canvas { position:absolute; inset:0; width:100%; height:100%; transform:scaleX(-1); }

.prog-wrap {
  margin-top: 1rem; width: 260px; height: 10px;
  background: #F0E6EE; border: 2px solid var(--ink);
  border-radius: 100px; overflow: hidden;
}
.prog-fill {
  height: 100%; background: var(--pink);
  width: 0%; transition: width 0.08s;
  border-radius: 100px;
}

.lock-status {
  margin-top: 0.75rem;
  font-family: var(--mono); font-size: 10px;
  color: #999; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 7px;
}
.sdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ddd; flex-shrink: 0; transition: background 0.3s;
}
.sdot.on { background: var(--pink); animation: blink 1s infinite; }
.sdot.ok { background: #4ade80; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.skip-btn {
  position: absolute; bottom: 1.5rem; right: 1.75rem;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); background: none; border: none;
  cursor: none; transition: color 0.2s;
}
.skip-btn:hover { color: rgba(255,255,255,0.8); }

/* ── PORTFOLIO ── */
#portfolio { opacity: 0; transition: opacity 0.8s 0.15s ease; }
#portfolio.visible { opacity: 1; }

#portfolio {
  background: var(--pink);
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* ── HEADER ── */
header {
  padding: 1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  background: var(--pink);
  border-bottom: 3px solid rgba(0,0,0,0.08);
}

.logo {
  font-family: var(--sans);
  font-weight: 900; font-size: 1.2rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 5px 18px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; gap: 7px;
}
.logo-heart { color: var(--pink); animation: heartbeat 2s ease-in-out infinite; }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 20%{transform:scale(1.3)} 40%{transform:scale(1)} }

nav { display: flex; gap: 10px; }
.nav-pill {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink);
  border-radius: 100px; padding: 6px 16px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: background 0.2s, transform 0.1s;
}
.nav-pill:hover { background: var(--yellow); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }

/* ── HERO ── */
.hero-section {
  max-width: 1100px; margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.name-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); border: 2.5px solid var(--ink);
  border-radius: 100px; padding: 5px 18px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--yellow);
}

.hero-desc {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  font-size: 1rem; line-height: 1.7;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; padding: 5px 14px;
  border-radius: 100px; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: background 0.15s, transform 0.1s;
}
.chip:hover { background: var(--yellow); transform: translate(-1px,-1px); }
.chip.blue { background: var(--blue); }

/* hero right */
.hero-right { display: flex; flex-direction: column; gap: 12px; }

.stat-card {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

.stat-n {
  font-family: var(--sans); font-size: 2.8rem;
  font-weight: 900; line-height: 1; color: var(--pink);
  margin-bottom: 0.2rem;
}
.stat-l {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #888;
}

/* ── MARQUEE ── */
.marquee-section {
  margin: 1rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--yellow);
  padding: 0.8rem 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 2.5rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.m-item {
  font-family: var(--sans); font-size: 1.1rem;
  font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink);
  display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0;
}
.m-item::after { content: '★'; font-size: 0.8rem; color: var(--pink); }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── WORK ── */
.work-section {
  max-width: 1100px; margin: 0 auto;
  padding: 3rem 2.5rem;
}

.section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900; color: var(--white);
}

.section-badge {
  background: var(--white); border: 2px solid var(--ink);
  border-radius: 100px; padding: 4px 14px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 20px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.project-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.project-card:nth-child(2) { background: var(--blue); }
.project-card:nth-child(3) { background: var(--yellow); }

.project-type {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink);
}
.project-card:nth-child(2) .project-type,
.project-card:nth-child(3) .project-type { color: var(--ink); opacity: 0.6; }

.project-name {
  font-family: var(--sans); font-size: 1.6rem;
  font-weight: 900; line-height: 1.1; letter-spacing: -0.01em;
}

.project-body {
  font-size: 0.875rem; line-height: 1.65; color: #333; flex: 1;
}
.project-card:nth-child(2) .project-body,
.project-card:nth-child(3) .project-body { color: var(--ink); }

.stack { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.25rem; }
.pill {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.05em; padding: 3px 10px;
  background: rgba(0,0,0,0.07); border-radius: 100px; color: #444;
}

/* ── AGENT ── */
.agent-outer {
  background: var(--blue);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.agent-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 3.5rem 2.5rem;
}

.agent-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; margin-bottom: 2rem; align-items: end;
}

.agent-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900; line-height: 1.05;
}

.agent-desc {
  background: var(--white); border: 2.5px solid var(--ink);
  border-radius: 16px; padding: 1.25rem 1.5rem;
  font-size: 0.9rem; line-height: 1.7; color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.chat-card {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 24px; overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}

.chat-header {
  background: var(--pink);
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; gap: 10px;
}
.chat-header-dot {
  width: 10px; height: 10px;
  background: var(--yellow); border: 2px solid var(--ink);
  border-radius: 50%; animation: blink 1.5s infinite;
}
.chat-header-label {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--white); letter-spacing: 0.08em; text-transform: uppercase;
}

#messages {
  height: 300px; overflow-y: auto;
  padding: 1.25rem; display: flex;
  flex-direction: column; gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}

.msg { display: flex; gap: 10px; align-items: flex-start; }

.msg-av {
  width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  flex-shrink: 0; background: var(--pink); color: var(--white);
}
.msg.user .msg-av { background: var(--blue); color: var(--ink); }

.msg-bubble {
  font-size: 0.875rem; line-height: 1.65; color: var(--ink);
  background: #F9F1F6; border: 2px solid var(--ink);
  border-radius: 0 16px 16px 16px;
  padding: 0.65rem 0.9rem; max-width: 640px;
}
.msg.user .msg-bubble { background: #EDF8FE; border-radius: 16px 0 16px 16px; font-style: italic; }
.msg.thinking .msg-bubble { color: #aaa; font-style: italic; }

.suggestions {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 0.9rem 1.25rem;
  border-top: 2px solid rgba(0,0,0,0.07);
}
.sug {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; padding: 5px 13px;
  border: 2px solid var(--ink); border-radius: 100px;
  background: transparent; cursor: none; color: var(--ink);
  transition: background 0.15s, transform 0.1s;
}
.sug:hover { background: var(--yellow); transform: translate(-1px,-1px); }

.chat-input-row {
  border-top: 2px solid var(--ink);
  display: flex;
}
#chat-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 0.9rem 1.25rem;
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
  caret-color: var(--pink);
}
#chat-input::placeholder { color: #bbb; }
#send-btn {
  background: var(--pink); border: none;
  border-left: 2px solid var(--ink);
  padding: 0 1.25rem; cursor: none;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); transition: background 0.2s;
}
#send-btn:hover { background: #e01e6e; }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: var(--white);
  padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-l {
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 8px;
}
.footer-heart { color: var(--pink); animation: heartbeat 2s ease-in-out infinite; }
.footer-links { display: flex; gap: 10px; }
.footer-links a {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background: var(--white); border: 2px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 5px 14px;
  transition: background 0.15s;
}
.footer-links a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

@media (max-width: 768px) {
  header { padding: 1rem 1.5rem; }
  nav { display: none; }
  .hero-section { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .agent-top { grid-template-columns: 1fr; }
  .work-section, .agent-inner { padding: 2.5rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .camera-wrap { width: 240px; height: 180px; }
}
