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

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

body {
  background: #fff;
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

canvas#world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 2;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 3;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 22px;
  background: #000;
  margin-bottom: 5px;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

.nav-toggle.is-open {
  background: rgba(0, 0, 0, 0.08);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-links a {
  margin-left: 16px;
  text-decoration: none;
  color: #000;
  font-size: 0.9rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 20px 40px;
}

.section-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(3px);
  transform-origin: center top;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  margin: 0 0 0.75rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.subtitle {
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0.5rem 0 1.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-cta .btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-cta .btn--primary {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.hero-cta .btn--primary:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.hero-cta .btn--outline {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.hero-cta .btn--outline:hover {
  background: #000;
  color: #fff;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

section p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-inner.is-visible h2 {
  transform: translateX(0);
  opacity: 1;
}

.section-inner.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  border: 1px solid #000;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 0 #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.project-card .meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 0 #000;
}

.projects-see-more-wrap {
  margin-top: 1rem;
  display: none;
}

.projects-see-more {
  font-size: 0.9rem;
  cursor: pointer;
}

.projects-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.stack-intro {
  margin-bottom: 1rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stack-category {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.stack-category-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.stack-category-tech {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
  opacity: 0.9;
}

.stack-list,
.about-list,
.language-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.75rem 0 0.5rem;
  font-size: 0.9rem;
}

.stack-list li + li,
.about-list li + li,
.language-list li + li {
  margin-top: 0.25rem;
}

.stack-meta {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.stack-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.stack-meta a:hover {
  border-bottom-style: dotted;
}

.video-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.video-featured {
  margin-top: 1rem;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #000;
  background: #000;
}

.video-card--featured iframe {
  border-width: 2px;
}

.video-title {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.video-title--small {
  font-size: 0.8rem;
  opacity: 0.9;
}

.video-placeholder {
  font-size: 0.85rem;
  opacity: 0.8;
}

.section-inner a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.section-inner a:hover {
  border-bottom-style: dotted;
}

form {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}

input,
textarea {
  border: 1px solid #000;
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
}

button {
  border: 1px solid #000;
  background: #000;
  color: #fff;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.status {
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--error {
  background: #b00020;
}

.now-lead {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.now-availability {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.95;
}

.now-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.now-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.now-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.contact-intro {
  margin-bottom: 1rem;
}

.contact-whatsapp-wrap {
  margin-bottom: 1.25rem;
}

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  background: transparent;
  color: #000;
  border: 1px solid #000;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--whatsapp:hover {
  background: #000;
  color: #fff;
}

.btn--whatsapp:hover i {
  color: #fff;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.contact-socials {
  margin-top: 1.25rem;
}

.contact-socials h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.contact-socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #000;
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.contact-social-link:hover {
  background: #000;
  color: #fff;
}

footer {
  padding: 40px 20px 32px;
  text-align: center;
  background: transparent;
  backdrop-filter: none;
}

.footer-separator {
  max-width: 960px;
  margin: 24px auto 0;
  border: 0;
  border-top: 1px solid #000;
}

.footer-inner p {
  margin: 0.3rem 0;
  font-size: 0.85rem;
}

.footer-signature {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-tagline {
  margin-top: 0;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-size: 0.9rem;
}

.footer-made-in {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-copyright {
  font-size: 13px;
  opacity: 0.6;
  margin: 0.25rem 0 0.5rem;
}

.footer-debug {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-debug-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.footer-debug-link:hover {
  opacity: 1;
  border-bottom-color: #000;
}

.footer-row {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  text-align: left;
}

.footer-block {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.footer-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-block li {
  font-size: 0.85rem;
  margin: 0.2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-block--social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

.footer-block--social li {
  margin: 0;
}

.footer-block a,
.social-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-block a:hover,
.social-link:hover {
  border-bottom-color: #000;
}

.icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid #000;
  margin-top: 0.4rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon i {
  font-size: 0.8rem;
}

.social-link:hover .social-icon {
  background-color: #000;
  color: #fff;
}

@media (max-width: 767px) {
  nav {
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-brand {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    line-height: 44px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
    padding: 12px 0 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .nav-links.is-open {
    display: flex;
    animation: navDropdown 0.25s ease;
  }

  @keyframes navDropdown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    margin: 0;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
  }

  .nav-links a:active {
    background: rgba(0, 0, 0, 0.1);
  }

  section {
    padding-top: 88px;
  }

  .section-inner {
    padding: 18px 16px;
  }

  body {
    font-size: 15px;
  }

  .stack-list,
  .about-list,
  .language-list {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0.5rem;
    font-size: 1rem;
  }

  .stack-list li,
  .about-list li,
  .language-list li {
    padding: 0.6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .stack-list li:first-child,
  .about-list li:first-child,
  .language-list li:first-child {
    border-top: 0;
  }

  body[data-scroll-direction='down'] nav {
    transform: translateY(-100%);
  }

  body[data-scroll-direction='up'] nav {
    transform: translateY(0);
  }

  .footer-row {
    gap: 1.2rem;
  }

  .footer-block h3 {
    margin-bottom: 0.35rem;
  }

  .video-grid {
    gap: 0.75rem;
  }

  .projects-see-more-wrap {
    display: block;
  }
  .projects-more {
    display: none;
  }
  .projects-more.is-open {
    display: contents;
  }
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .projects-see-more-wrap {
    display: none;
  }

  .footer-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

