:root {
  --bg: #0A0E14;
  --surface: #10151F;
  --surface-raised: #141A26;
  --border: rgba(79, 216, 196, 0.16);
  --border-strong: rgba(79, 216, 196, 0.4);
  --text: #EDEFF4;
  --text-dim: #8B93A7;
  --text-faint: #545E75;
  --teal: #4FD8C4;
  --amber: #E8A33D;

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.coord-readout {
  position: fixed;
  bottom: 18px;
  left: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  z-index: 40;
  pointer-events: none;
  display: none;
}
@media (min-width: 900px) {
  .coord-readout { display: block; }
}


.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-mark {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:focus-visible,
.btn:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}


.hero {
  position: relative;
  padding: 96px 32px 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.reticle {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 32px;
}
.hero-photo {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.hero-photo .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--teal);
}
.reticle .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--teal);
}
.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.crosshair-h, .crosshair-v {
  position: absolute;
  background: var(--border-strong);
}
.crosshair-h { top: 50%; left: 30%; width: 40%; height: 1px; }
.crosshair-v { left: 50%; top: 30%; height: 40%; width: 1px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.hero-role {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-dim);
  margin: 0 0 24px;
  font-weight: 500;
}
.hero-desc {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 2px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: #06110F; }
.btn-primary:hover { background: #6de3d1; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }


.section { max-width: 1080px; margin: 0 auto; padding: 96px 32px; }
.section-head { margin-bottom: 48px; }
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  margin: 0;
  font-weight: 600;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.project-card .corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--border-strong);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.project-card:hover .corner { opacity: 1; }
.project-card .corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.project-card .corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.project-card .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.project-card .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.project-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(232, 163, 61, 0.35);
  padding: 3px 8px;
  margin-bottom: 14px;
}
.project-card h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 600;
}
.project-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 18px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.project-stack span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface-raised);
  padding: 3px 8px;
  border: 1px solid var(--border);
}
.project-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-link:hover { text-decoration: underline; }
.project-link.disabled {
  color: var(--text-faint);
  pointer-events: none;
}


.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.about-text { color: var(--text-dim); font-size: 16px; max-width: 52ch; }
.about-facts { list-style: none; margin: 0; padding: 0; }
.about-facts li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.about-facts li span {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}


.contact-links { display: flex; flex-direction: column; }
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.15s ease;
}
.contact-link:hover { color: var(--teal); }
.contact-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.contact-value { font-size: 16px; }


.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-faint);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
