html, body { margin: 0; padding: 0; }

body {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
  background: var(--bg);
  color: var(--fg);
  transition: background .25s, color .25s;
}
a, button { cursor: none; }

[data-theme="light"] {
  --bg: #fafaf7;
  --fg: #0a0a0a;
  --dim: #bdbdbd;
  --accent: #16a34a;
  --accent-soft: #86efac;
  --spot: #e11d48;
  --blend: normal;
}

[data-theme="dark"] {
  --bg: #000000;
  --fg: #f5f5f5;
  --dim: #3a3a3a;
  --accent: #f5f5f5;
  --accent-soft: #a3a3a3;
  --spot: #facc15;
  --blend: screen;
}

:root {
  --dot-size: 64px;
  --project-size: 4.7vw;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 36px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: sticky;
  z-index: 4;
  background: transparent;
  padding: 16px 0;
}
header { top: 0; }
footer { bottom: 0; }

.brand-mark {
  color: var(--accent);
  font-weight: 700;
}

.brand-tagline {
  color: var(--fg);
  margin-left: 10px;
}

#cycling-noun {
  display: inline-block;
}
#cycling-noun span {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.spot {
  color: var(--spot);
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 14px;
}

#theme-toggle,
#lang-toggle {
  background: transparent;
  border: none;
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2em;
  padding: 48px 0;
}

.coming-soon-text {
  margin: 0;
  font-size: clamp(3rem, 13vw, 16rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
}

.about {
  padding: 96px 0;
}

.card {
  position: relative;
  width: clamp(140px, 14vw, 200px);
  aspect-ratio: 3 / 4;
  margin: 96px auto;
}
.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity .35s ease;
}
.card-front,
.card-back {
  border: 1px solid var(--fg);
  box-sizing: border-box;
}
.card-front {
  object-fit: cover;
  background: var(--dim);
  opacity: 0;
}
.card-back {
  opacity: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.card:hover .card-front { opacity: 1; }
.card:hover .card-back  { opacity: 0; }

.bio-emoji {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 1rem;
  line-height: 1;
}
.bio {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--fg);
  text-align: center;
}

.section-label {
  font-size: 0.78rem;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.project {
  display: block;
  font-size: var(--project-size);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.project > span {
  white-space: nowrap;
  display: inline-block;
}
.project .collab {
  color: var(--accent-soft);
}
.project:hover {
  transform: scale(1.08);
}

#hover-email {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  outline: none;
}
#hover-email .suffix {
  color: var(--spot);
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 18px;
}
.socials a {
  color: var(--fg);
  text-decoration: none;
}

#mouse-spot {
  position: fixed;
  top: 0; left: 0;
  width: var(--dot-size);
  height: var(--dot-size);
  pointer-events: none;
  mix-blend-mode: var(--blend);
  z-index: 5;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
}

#mouse-spot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#mouse-spot svg line,
#mouse-spot svg circle {
  stroke: var(--spot);
  stroke-width: 5;
  fill: none;
  vector-effect: non-scaling-stroke;
}

@keyframes cnIn {
  from { transform: translateY(0.4em); opacity: 0; filter: blur(4px); }
  to   { transform: translateY(0);     opacity: 1; filter: blur(0); }
}

#debug {
  position: fixed;
  left: 12px;
  top: 25vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--fg);
  font-family: inherit;
}
[data-theme="dark"] #debug {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
#debug-toggle {
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0;
  text-align: left;
}
#debug.collapsed .debug-rows {
  display: none;
}
#debug .debug-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#debug .debug-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
#debug input[type="range"] {
  width: 140px;
}
#debug output {
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  text-align: right;
}

