/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg: #0B0D10;
  --surface: #15181D;
  --surface-2: #1C2026;
  --border: #2A2F37;
  --text: #E8EAED;
  --text-dim: #8B9199;
  --text-faint: #5B6169;
  --accent: #5EE6C5;
  --accent-dim: #2D7A68;
  --accent2: #4C8DFF;
  --red: #FF6B6B;
  --yellow: #FFD166;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

::selection { background: var(--accent-dim); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.accent { color: var(--accent); }

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand { display: flex; align-items: center; gap: 10px; }

.nav__brand-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
}

.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav__links { display: flex; align-items: center; gap: 28px; }

.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s ease;
}
.nav__cta:hover { opacity: 0.85; color: var(--bg) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.nav__mobile a {
  padding: 12px 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.nav__mobile a:last-child { border-bottom: none; color: var(--accent); }

.nav__mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 100px 24px 90px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 80% -10%, rgba(94, 230, 197, 0.10), transparent),
    radial-gradient(ellipse 600px 400px at 0% 60%, rgba(76, 141, 255, 0.08), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94,230,197,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,230,197,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(94,230,197,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,230,197,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 600;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.hero__desc {
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 32px;
  font-size: 16px;
}

.hero__cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.btn--primary { background: var(--accent); color: #06110D; }
.btn--primary:hover { transform: translateY(-1px); opacity: 0.92; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}
.hero__meta a { color: var(--text-dim); }
.hero__meta a:hover { color: var(--accent); }
.meta-sep { margin: 0 10px; }

/* Terminal card */
.hero__terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dotc { width: 10px; height: 10px; border-radius: 50%; }
.dotc--r { background: #FF5F57; }
.dotc--y { background: #FEBC2E; }
.dotc--g { background: #28C840; }

.term__title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.term__body {
  padding: 22px 20px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.term__body p { margin: 0 0 10px; }
.term__prompt { color: var(--accent); margin-right: 8px; }
.term__out { color: var(--text-dim); margin-left: 18px; margin-bottom: 18px !important; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: 70px 20px 60px; }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section { padding: 100px 24px; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__inner { max-width: var(--max-width); margin: 0 auto; }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section__lede {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 56px;
  font-size: 16px;
}

.subhead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 56px 0 24px;
  color: var(--text);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}

.timeline__item { position: relative; padding-bottom: 48px; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 4px;
  font-weight: 600;
}

.timeline__org {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 10px;
  font-weight: 500;
}

.timeline__content p:last-child {
  color: var(--text-dim);
  margin: 0;
  max-width: 640px;
}

/* ============================================
   SKILLS GRID
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.skill-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }

.skill-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.skill-card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

@media (max-width: 760px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PROJECTS — browser-window cards
   ============================================ */
.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--accent-dim); color: var(--text); }
.filter-btn.is-active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }

.pc__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.pc__bar .dotc { width: 8px; height: 8px; }
.pc__url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc__shot {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}
.pc__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.project-card:hover .pc__shot img { transform: scale(1.04); }

.pc__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }

.pc__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.pc__desc {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 14px;
  flex: 1;
}

.pc__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  background: rgba(94,230,197,0.08);
  border: 1px solid var(--accent-dim);
  padding: 3px 8px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MASONRY (social/graphic design)
   ============================================ */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.masonry img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.25s ease;
}
.masonry img:hover { transform: scale(1.03); }

@media (max-width: 760px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   REFERENCES
   ============================================ */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.ref-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--accent-dim);
}

.ref-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 4px;
}

.ref-card__role {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.ref-card__link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}
.ref-card__link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .refs-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 110px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(94,230,197,0.08), transparent);
  border-top: 1px solid var(--border);
}
.cta__inner { max-width: 680px; margin: 0 auto; }
.cta .section__eyebrow { justify-content: center; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.cta__desc { color: var(--text-dim); margin: 0 0 32px; }
.cta .hero__cta-row { justify-content: center; margin-bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 24px 30px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-size: 14px; color: var(--text-dim); }
.footer__links a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent-dim); }

.footer__copy {
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 700px) {
  .footer__inner { flex-direction: column; text-align: center; }
}
