@charset "UTF-8";

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

:root {
  --white:      #FFFFFF;
  --ink:        #0E0E0E;
  --ink-mid:    #444444;
  --ink-soft:   #888888;
  --line:       #E0E0E0;
  --line-heavy: #C8C8C8;
  --surface:    #F5F5F5;
  --blue:       #0057FF;
  --blue-dim:   #D6E4FF;
  --blue-dark:  #003FCC;
  --grid-color: rgba(0,87,255,0.07);
  --grid-minor: rgba(0,87,255,0.03);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/*  BLUEPRINT BG  */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/*  NAV  */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo .dot { color: var(--blue); }

.nav-center {
  display: none;
  gap: 36px;
  list-style: none;
}
.nav-center a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-center a:hover,
.nav-center a.active { color: var(--blue); }

.nav-hire {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border: none;
  padding: 9px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: none;
}
.nav-hire:hover { background: var(--blue-dark); }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  z-index: 190;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 0;
}
.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--blue); color: var(--white); }
.mobile-menu a:hover .mm-arrow { color: var(--white); }
.mm-arrow { color: var(--blue); font-size: 18px; }

/*  HERO  */
.hero {
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-cross {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.hero-cross::before,
.hero-cross::after {
  content: '';
  position: absolute;
  background: var(--blue);
  opacity: 0.3;
}
.hero-cross::before { width: 1px; height: 100%; left: 50%; top: 0; }
.hero-cross::after  { width: 100%; height: 1px; top: 50%; left: 0; }
.cross-tl { top: 24px; left: 24px; }
.cross-tr { top: 24px; right: 24px; }
.cross-bl { bottom: 24px; left: 24px; }
.cross-br { bottom: 24px; right: 24px; }

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards 0.15s;
}

.hero-title {
  font-size: clamp(38px, 10vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards 0.3s;
}
.hero-title .accent { color: var(--blue); }
.hero-title .outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards 0.45s;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  padding: 16px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
  text-align: center;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: transparent;
  border: 2px solid var(--line-heavy);
  padding: 16px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
  text-align: center;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/*  STACK TICKER  */
.stack-bar {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  background: var(--white);
}
.stack-label-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 13px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.stack-track-wrap { overflow: hidden; flex: 1; display: flex; align-items: center; }
.stack-track {
  display: flex;
  animation: ticker 26s linear infinite;
  white-space: nowrap;
}
.stack-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 13px 22px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.stack-item.hi { color: var(--blue); }

/*  SECTION SHELL  */
.section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--line);
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 40px;
}

/*  SKILLS / EXPERTISE  */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}

.exp-card {
  background: var(--white);
  padding: 28px 24px;
  transition: background 0.2s;
  position: relative;
}
.exp-card:hover { background: #F0F5FF; }

.exp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.exp-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--blue-dim);
  background: var(--blue-dim);
}

.exp-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.exp-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exp-desc {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
}
.tag-blue { color: var(--blue); background: var(--blue-dim); }
.tag-grey { color: var(--ink-soft); background: var(--surface); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/*  EXPERIENCE TIMELINE  */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
}

.tl-item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }

.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 20px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.tl-body {
  padding: 20px 20px;
  flex: 1;
}
.tl-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}
.tl-company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-desc {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/*  PROJECTS  */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue);
  transition: width 0.35s ease;
}
.project-card:hover { background: #F0F5FF; }
.project-card:hover::after { width: 100%; }

.project-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.project-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.project-desc {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
}
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/*  ABOUT  */
.about-highlight {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--blue);
  padding-left: 18px;
  margin-bottom: 24px;
}
.about-text p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.stat-row:last-child { border-bottom: none; }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.stat-value.blue { color: var(--blue); }

/*  CONTACT  */
.contact-heading {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.contact-sub {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s;
  gap: 8px;
}
.contact-link-row:last-child { border-bottom: none; }
.contact-link-row:hover { background: var(--blue); }
.contact-link-row:hover .cl-label,
.contact-link-row:hover .cl-val,
.contact-link-row:hover .cl-arrow { color: var(--white); }
.cl-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.15s;
  flex-shrink: 0;
  min-width: 70px;
}
.cl-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s;
  flex: 1;
  text-align: right;
  word-break: break-all;
}
.cl-arrow {
  font-size: 16px;
  color: var(--blue);
  transition: color 0.15s;
  flex-shrink: 0;
  margin-left: 8px;
}

/*  FOOTER  */
footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/*  SCROLL REVEAL  */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.08s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.16s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.24s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.32s; }

/*  KEYFRAMES  */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/*  CURSOR (desktop only)  */
#cursor {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0;
}
#cursor.expand { width: 32px; height: 32px; opacity: 0.15; }

/*  DESKTOP OVERRIDES (768px+)  */
@media (min-width: 768px) {
  nav { padding: 0 60px; height: 64px; }
  .nav-burger { display: none; }
  .nav-center { display: flex; }
  .nav-hire { display: block; }
  .mobile-menu { display: none; }

  .hero {
    min-height: calc(100svh - 64px);
    padding: 80px 60px;
  }
  .hero-actions {
    flex-direction: row;
    gap: 16px;
  }
  .btn-primary,
  .btn-ghost { display: inline-block; text-align: left; }

  .cross-tl { top: 40px; left: 60px; }
  .cross-tr { top: 40px; right: 60px; }
  .cross-bl { bottom: 40px; left: 60px; }
  .cross-br { bottom: 40px; right: 60px; }

  .section { padding: 80px 60px; }

  .expertise-grid { grid-template-columns: 1fr 1fr; }

  .projects-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .project-card.wide { grid-column: span 2; }

  .about-stats { margin-top: 0; }
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
  }
}

/*  REDUCED MOTION  */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
