:root {
  --nb-border: 2px;
  --nb-radius: 20px;
  --nb-shadow: 6px 6px 0 0 #000;
  --nb-color-bg: #fdf7f1;
  --nb-color-card: #fffdf9;
  --nb-color-ink: #0f172a;
  --nb-color-muted: #6b7280;
  --nb-color-accent: #ff7a7a;
  --nb-color-ghost: #fef3c7;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--nb-color-bg);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #000;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--nb-color-accent);
  outline-offset: 3px;
}

.nb-page {
  min-height: 100vh;
  padding: 2.5rem 1.5rem 4rem;
}

.nb-stack {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nb-section {
  scroll-margin-top: 100px;
  padding: 5rem 0;
}

#hero {
  padding-top: 0;
}

.nb-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.nb-section-title {
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nb-section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--nb-color-muted);
}

.nb-card {
  background: var(--nb-color-card);
  border: var(--nb-border) solid rgba(15, 23, 42, 0.15);
  border-radius: var(--nb-radius);
  padding: 1.5rem;
  box-shadow: var(--nb-shadow);
}

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  border: 3px solid #000;
  background: linear-gradient(135deg, #ff6b5b, #ff9850);
  color: #000;
  cursor: pointer;
  box-shadow: 6px 6px 0 0 #000;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.nb-btn--ghost {
  background: #fffdf4;
  color: #000;
}

.nb-btn--email {
  background: #fffdf4;
  color: #000;
}

.nb-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #000;
}

.nb-btn:active {
  transform: translate(0, 0);
  box-shadow: 4px 4px 0 0 #000;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 4px solid #000;
  border-radius: 8px;
  padding: 2.2rem 2.2rem 2rem 2.2rem;
  padding-right: clamp(3rem, 8vw, 7rem);
  box-shadow: 6px 6px 0 0 #000;
  transform: rotate(-1deg);
  background: #fffdf4;
  position: relative;
  overflow: visible;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', ui-monospace;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #000;
  border: 3px solid #000;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  box-shadow: 3px 3px 0 0 #000;
  background: #d4f4dd;
  align-self: flex-start;
  font-weight: 700;
  transform: rotate(-1deg);
  transform-origin: center;
  transition: transform 150ms ease;
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 3rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
  color: #000;
}

.hero-role {
  font-weight: 700;
  margin: 0;
  color: #000;
}

.hero-summary {
  margin: 0;
  color: #000;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-card .nb-avatar {
  position: absolute;
  top: -30px;
  right: -50px;
  width: 220px;
  border-radius: 12px;
  border: 4px solid #000;
  overflow: hidden;
  padding: 0.75rem;
  background: #fff;
  box-shadow: 8px 8px 0 0 #000;
  transform: rotate(-4deg);
  z-index: 10;
}

.hero-card .nb-avatar img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.skills-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.skills-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.skill-group-header {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 1rem;
  color: #000;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 3px solid #000;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 0 #000;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 0 #000;
  background: #f9f9f9;
}

#experience-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#experience-list::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(15, 23, 42, 0.12);
}

.experience-card {
  position: relative;
  padding-left: 2.5rem;
  background: linear-gradient(135deg, #fffdf9, #fff6ec);
}

.experience-marker {
  position: absolute;
  left: 6px;
  top: 1.2rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.6);
  background: #fff;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.15);
}

#experience-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.experience-card {
  border: 4px solid #000;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 6px 6px 0 0 #000;
  background: #fff;
}

.experience-card-header {
  margin-bottom: 1.5rem;
}

.experience-role {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.experience-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  background: #ff6b5b;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 150ms ease;
}

.experience-role-badge--lead {
  transform: rotate(1.5deg);
}

.experience-company {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #666;
  margin-bottom: 0.3rem;
}

.experience-location {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #999;
}

.experience-intro {
  font-size: 0.98rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.experience-projects {
  display: flex;
  flex-direction: column;
}

.experience-project-block {
  margin-top: 1.75rem;
}

.experience-project-block--first {
  margin-top: 1.5rem;
}

.experience-project-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.experience-project-title a {
  text-decoration: none;
  color: inherit;
}

.experience-project-title a:hover {
  text-decoration: underline;
}

.experience-project-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.75rem;
}

.experience-project-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.55;
}

.experience-project-list li {
  margin-bottom: 0.5rem;
}

.experience-project-extra {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.experience-project-metric {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid #000;
  border-radius: 4px;
  background: #fff9e6;
  font-size: 0.8rem;
  font-weight: 700;
}

.experience-project-metric-label {
  font-weight: 600;
  margin-right: 0.4rem;
}

.experience-project-metric-value {
  font-weight: 700;
}

.experience-body {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.contact-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0;
  margin-bottom: 2.5rem;
}

.contact-primary {
  display: flex;
  justify-content: center;
}

.contact-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border: 4px solid #000;
  border-radius: 8px;
  background: #fff;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #000;
  text-decoration: none;
  box-shadow: 6px 6px 0 0 #000;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.contact-email-pill:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 0 #000;
  background: #fafafa;
}

.contact-email-icon {
  font-size: 1.5rem;
}

.contact-secondary {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-secondary-label {
  font-size: 0.9rem;
  color: #666;
}

.contact-secondary-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 3px solid #000;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  box-shadow: 3px 3px 0 0 #000;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.contact-secondary-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 0 #000;
}

.nb-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: var(--nb-border) solid rgba(15, 23, 42, 0.5);
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--nb-shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.nb-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.js-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.js-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .nb-btn,
  .nb-card,
  .nb-to-top {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .hero-card {
    padding: 1.75rem;
    padding-right: 1.75rem;
  }

  .hero-card .nb-avatar {
    position: static;
    width: min(260px, 70vw);
    margin: 1rem auto 0;
    transform: rotate(0deg);
  }

  .hero-kicker {
    padding: 0.4rem 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .experience-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 1.5rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-kicker {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .contact-email-pill {
    padding: 1rem 1.4rem;
  }
}

@media (max-width: 640px) {
  .contact-secondary-links {
    flex-direction: column;
    width: 100%;
  }

  .contact-secondary-btn {
    width: 100%;
  }

  .contact-email-pill {
    font-size: 1rem;
  }
}
