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

:root {
  --bg: #ffffff;
  --bg2: #f5f5f5;
  --surface: #eeeeee;
  --border: #d0d0d0;
  --text: #111111;
  --muted: #999999;
  --accent: #111111;
  --accent2: #444444;
  --mono: 'Space Mono', monospace;
  --sans: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #111111;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-radius 0.2s, background 0.2s;
}
.cursor.big {
  width: 44px;
  height: 44px;
  border-radius: 22px;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--mono);
  font-size: 180px;
  color: #e0e0e0;
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-greeting {
  font-family: var(--sans);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-greeting span.dim { color: #2a2a2a; }

.hero-role-line {
  font-family: var(--sans);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  flex-wrap: wrap;
  margin-bottom: 48px;
  min-height: calc(clamp(52px, 8vw, 110px) * 0.95 * 2);
}

.hero-im {
  color: var(--muted);
}

.typewriter-wrap {
  position: relative;
  display: inline-block;
}

#typewriter {
  color: var(--accent);
  position: relative;
}

#typewriter::after {
  content: '|';
  color: var(--accent);
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

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

.hero-sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent2);
}
.btn-ghost {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* STATUS BAR */
.status-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
  display: flex;
  gap: 48px;
  overflow: hidden;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* SECTION */
section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 64px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 20px;
}
.about-text p strong {
  color: var(--text);
  font-weight: 600;
}
.about-text p .highlight {
  color: var(--accent);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.stat-box {
  background: var(--bg);
  padding: 32px;
  transition: background 0.2s;
}
.stat-box:hover { background: var(--surface); }
.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* INTERESTS */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.interest-card {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.interest-card:hover { background: var(--surface); }
.interest-card:hover .interest-num { color: var(--accent); }
.interest-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--border);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.interest-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}
.interest-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.interest-desc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.interest-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.interest-card:hover::after { width: 100%; }

/* PROJECTS */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}
.project-row {
  background: var(--bg);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: center;
  transition: background 0.2s, padding-left 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project-row:hover {
  background: var(--surface);
  padding-left: 52px;
}
.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.project-info h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.project-info p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.project-tags {
  display: flex;
  gap: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent2);
  border: 1px solid #cccccc;
  padding: 4px 10px;
  letter-spacing: 0.05em;
}
.project-arrow {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.project-row:hover .project-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* CONTACT */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}
.contact-text h2 span { color: var(--accent); }
.contact-text p {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}
.contact-link {
  background: var(--bg);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  transition: background 0.2s, padding-left 0.2s;
}
.contact-link:hover {
  background: var(--surface);
  padding-left: 36px;
}
.contact-link span { color: var(--muted); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}
.form-field {
  background: var(--bg);
  padding: 20px 24px;
}
.form-field label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  resize: none;
}
.form-field textarea { height: 100px; }
.form-submit {
  background: var(--accent);
  border: none;
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--accent2); }

/* AI CTA SECTION */
.ai-cta {
  background: var(--accent);
  padding: 80px 48px;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.ai-cta-text h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.ai-cta-text p {
  font-family: var(--mono);
  font-size: 13px;
  color: #aaaaaa;
  max-width: 420px;
  line-height: 1.7;
}
.ai-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: #ffffff;
  color: #111111;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.ai-cta-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 #999999;
}
@media (max-width: 768px) {
  .ai-cta { flex-direction: column; align-items: flex-start; padding: 48px 24px; }
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
footer p span { color: var(--accent); }

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  /* layout */
  nav, .hero, section, .status-bar, .ai-cta, footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  nav { padding-top: 16px; padding-bottom: 16px; }
  nav::after { left: 20px; right: 20px; }
  section { padding-top: 60px; padding-bottom: 60px; }

  /* nav */
  .nav-links { gap: 20px; }

  /* hero */
  .hero { padding-top: 100px; padding-bottom: 60px; }
  .hero-bg-text { display: none; }
  .hero-scroll { display: none; }
  .hero-greeting, .hero-role-line {
    font-size: clamp(40px, 11vw, 64px);
  }
  .hero-role-line { min-height: calc(clamp(40px, 11vw, 64px) * 0.95 * 2); }
  .hero-sub { font-size: 12px; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* status bar */
  .status-bar {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* about */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-text p { font-size: 15px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 32px; }
  .stat-box { padding: 20px; }
  .section-title { margin-bottom: 36px; }

  /* projects */
  .project-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 20px;
  }
  .project-row:hover { padding-left: 20px; }
  .project-num { display: none; }
  .project-tags { flex-wrap: wrap; }
  .project-arrow { display: none; }

  /* contact */
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-text h2 { font-size: clamp(36px, 10vw, 52px); }

  /* ai cta */
  .ai-cta {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 24px;
  }
  .ai-cta-btn { width: 100%; justify-content: center; }

  /* footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
