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

:root {
  --color-bg: #0d0d0d;
  --color-surface: #131313;
  --color-surface-2: #1a1a1a;
  --color-text: #e8e8e8;
  --color-text-secondary: #888888;
  --color-accent: #f5f5f5;
  --color-border: #222222;
  --color-gold: #c9a84c;
  --color-gold-subtle: rgba(201, 168, 76, 0.35);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Syne', sans-serif;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --nav-height: 64px;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: none; border: none; background: none; }
input, textarea { font-family: inherit; cursor: none; }
::selection { background: rgba(255,255,255,0.9); color: #000; }

/* ============================================
   LOADER — Infinity icon (Tarefa 5)
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__icon {
  width: 160px;
  height: 22px;
}

.loader__path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: infinityDraw 2s ease-in-out infinite;
}

@keyframes infinityDraw {
  0% { stroke-dashoffset: 320; opacity: 0.15; }
  50% { stroke-dashoffset: 0; opacity: 0.65; }
  100% { stroke-dashoffset: -320; opacity: 0.15; }
}

/* All content above bg */
.nav, #smoothContent, .cursor, .cursor-dot, .page-transition {
  position: relative;
  z-index: 1;
}

/* ============================================
   CURSOR — Figma-style arrow in orange
   ============================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* No transition here — JS handles smooth lerp */
}

.cursor__arrow {
  width: 28px; height: 34px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transform-origin: 2px 1px; /* exact tip of the arrow */
  transition: transform 0.18s var(--ease-out-expo);
  flex-shrink: 0;
}

.cursor__tag {
  display: block;
  background: #FF7742;
  color: #fff;
  font-size: 10px; font-weight: 700;
  font-family: var(--font-base);
  padding: 2px 8px 3px;
  border-radius: 0 5px 5px 5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin-top: -2px;
  margin-left: 12px;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Hover on links */
.cursor--hover .cursor__arrow {
  transform: scale(1.12);
}

/* Click */
.cursor--click .cursor__arrow {
  transform: scale(0.82);
}

/* View project — tag turns white */
.cursor--view .cursor__tag {
  background: #fff;
  color: #111;
}

/* Dot — hidden, arrow tip handles precision */
.cursor-dot {
  display: none;
}

/* ============================================
   NAVIGATION (Tarefa 6)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  z-index: 100;
  border: 1px solid transparent;
  /* Smooth pill formation on scroll */
  transition: top 0.65s cubic-bezier(0.22,1,0.36,1),
              left 0.65s cubic-bezier(0.22,1,0.36,1),
              width 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1),
              height 0.5s cubic-bezier(0.22,1,0.36,1),
              padding 0.55s cubic-bezier(0.22,1,0.36,1),
              border-radius 0.55s cubic-bezier(0.22,1,0.36,1),
              background 0.5s,
              border-color 0.5s,
              box-shadow 0.5s;
}

/* Scrolled — smooth pill centered with transparent white bg */
.nav--scrolled {
  top: 12px;
  left: 50%;
  width: min(680px, 90vw);
  transform: translateX(-50%);
  height: 48px;
  padding: 0 22px;
  border-radius: 100px;
  background: rgba(248, 248, 248, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 4px 28px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.04);
  justify-content: space-between;
}

/* Brand stays fully visible in light nav */
.nav--scrolled .nav__brand {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav--scrolled .nav__name { color: #1a1a1a; }
.nav--scrolled .nav__name-word { color: #1a1a1a; }
.nav--scrolled .nav__link { color: rgba(0,0,0,0.55); }
.nav--scrolled .nav__link:hover { color: #000; }
.nav--scrolled .nav__link::after { background: #000; }
.nav--scrolled .nav__link--linkedin { color: rgba(0,0,0,0.55); }
.nav--scrolled .nav__link--linkedin:hover { color: #0077B5; }
.nav--scrolled .nav__photo-ring-path { stroke: #c9a84c; }

/* Brand — photo + name */
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  transition: opacity 0.3s;
}
.nav__brand:hover { opacity: 0.85; }

.nav__photo-wrap {
  position: relative;
  width: 36px; height: 36px;
  flex-shrink: 0;
}

.nav__photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.nav__photo-ring {
  position: absolute; inset: -3px;
  width: calc(100% + 6px); height: calc(100% + 6px);
}

.nav__photo-ring-path {
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: ringDraw 3s ease-in-out infinite;
}

@keyframes ringDraw {
  0% { stroke-dashoffset: 152; opacity: 0.3; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -152; opacity: 0.3; }
}

.nav__name {
  display: flex; gap: 4px;
  font-family: 'Haas Grot Text Trial', 'NeueHaasGroteskText', 'NHaasGroteskTXPro-55Rg', var(--font-brand), sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.nav__name-word {
  display: inline-block;
  transition: color 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.nav__brand:hover .nav__name-word:first-child {
  color: var(--color-gold);
}

.nav__brand:hover .nav__name-word:last-child {
  color: var(--color-gold);
  transition-delay: 0.06s;
}

.nav__links {
  display: flex; gap: 32px; align-items: center;
  padding: 0;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background 0.5s, padding 0.5s, border-radius 0.5s,
              border-color 0.5s, backdrop-filter 0.5s, gap 0.5s;
}

/* Scrolled: reset links pill (nav itself IS the pill now) */
.nav--scrolled .nav__links {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  padding: 0;
  gap: 28px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__link {
  font-size: 0.85rem; font-weight: 400;
  color: var(--color-text-secondary);
  transition: color 0.3s; position: relative;
  cursor: none; /* T1 — keep custom cursor, no native pointer */
}

.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: #fff;
  transition: width 0.4s var(--ease-out-expo);
}

.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }

.nav__link--linkedin {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-text-secondary);
}
.nav__link--linkedin::after { display: none; }
.nav__link--linkedin:hover { color: #fff; }

/* Stylized Eye — smoother blink (Tarefa 2) */
.nav__eye {
  width: 48px; height: 28px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.nav__eye-outer {
  width: 44px; height: 24px;
  border: 4px solid transparent;
  border-radius: 50% / 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
              linear-gradient(135deg, #ffffff, #aaaaaa, #555555) border-box;
  overflow: hidden;
  animation: eyeBlink 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes eyeBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  91% { transform: scaleY(0.05); }
  94% { transform: scaleY(1); }
}

.nav__eye-iris {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e0e0e0, #999, #555);
  position: relative;
  transition: transform 0.4s var(--ease-out-expo);
  display: flex; align-items: center; justify-content: center;
}

.nav__eye-pupil {
  width: 5px; height: 5px;
  border-radius: 50%; background: #fff;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out-expo);
}

/* ============================================
   PAGE TRANSITION — slide-down curtain
   ============================================ */
.page-transition {
  position: fixed; inset: 0;
  background: var(--color-bg);
  z-index: 9997;
  pointer-events: none;
  transform: translateY(-100%);
  will-change: transform;
}

.page-transition.is-covering {
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1);
  transform: translateY(0);
  pointer-events: all;
}

/* Reveal — curtain slides down off screen */
.page-transition.is-revealing {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(100%);
  pointer-events: none;
}

/* ============================================
   PROJECTS AMBIENT BLUR BACKGROUND
   ============================================ */
/* Blur bg disabled — replaced by card borders */
.projects-blur-bg { display: none; }

/* ============================================
   HERO (Tarefa 1)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: transparent;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.15; z-index: 1;
}

.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(13,13,13,0.2) 0%, rgba(13,13,13,0.5) 50%, rgba(13,13,13,0.85) 100%
  );
  z-index: 1;
}

/* Hero stack — vídeo acima, texto abaixo */
.hero__stack {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

/* Curtain video */
.hero__curtain {
  width: 0; height: 0;
  overflow: hidden;
  border-radius: 16px;
  opacity: 0;
  flex-shrink: 0;
}

.hero__curtain.is-opening {
  animation: curtainReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__curtain.is-open {
  width: clamp(260px, 42vw, 600px);
  height: clamp(146px, 23.6vw, 338px);
  opacity: 1;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.22), 0 12px 48px rgba(0,0,0,0.45); /* T2 — soft white stroke */
}

@keyframes curtainReveal {
  0%   { width: 0; height: 0; opacity: 0; border-radius: 50%; }
  30%  { opacity: 0.9; border-radius: 32px; }
  100% { width: clamp(260px, 42vw, 600px); height: clamp(146px, 23.6vw, 338px); opacity: 1; border-radius: 16px; }
}

.hero__curtain-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Hero content — abaixo do vídeo */
.hero__content {
  position: relative;
  text-align: center;
}

/* Hero title — static title + cycling attribution */
.hero__title {
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  font-weight: 800; line-height: 1.0;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #ffffff;
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center;
  gap: clamp(0.4rem, 1.2vw, 0.9rem);
  max-width: 100%;
}

.hero__title-top {
  display: flex; flex-direction: row;
  align-items: center; gap: 0.25em;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(-20px);
  will-change: transform, opacity;
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

#heroWord2.is-visible {
  transition-delay: 0.12s;
}

/* Attribution line — right-aligned with DESIGNER */
.hero__attr-line {
  display: flex; align-items: center; gap: 0.5em;
  font-size: clamp(0.85rem, 2.2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 1.2s forwards;
  min-height: 1.6em;
  align-self: flex-end;
  justify-content: flex-end;
}

.hero__attr-dash {
  color: var(--color-gold);
  opacity: 0.8;
  flex-shrink: 0;
}

.hero__attr {
  display: inline-block;
  position: relative;
  will-change: opacity, transform;
}

.hero__attr::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--color-gold);
  animation: cursorBlink 0.7s step-end infinite;
  font-weight: 300;
  opacity: 0;
}

.hero__attr.is-typing::after {
  opacity: 1;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes heroAttrIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.hero__attr.is-entering {
  animation: heroAttrIn 0.45s var(--ease-out-expo) forwards;
}

.hero__attr.is-exiting {
  animation: heroAttrOut 0.35s ease forwards;
}

/* ---- "Disponível para atuar" badge ---- */
.hero__available {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,10,10,0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideUp 0.9s 1.8s cubic-bezier(0.22,1,0.36,1) forwards;
  /* Gradient border */
  position: relative;
  z-index: 0;
  overflow: hidden;
}

/* Spinning gradient border — gray → white continuous loop */
.hero__available::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    #2a2a2a 0deg,
    #555555 60deg,
    #909090 120deg,
    #d4d4d4 160deg,
    #ffffff 180deg,
    #d4d4d4 200deg,
    #909090 240deg,
    #555555 300deg,
    #2a2a2a 360deg
  );
  animation: spinBorderBadge 3s linear infinite;
  z-index: -2;
}

/* Inner bg fill to create border gap */
.hero__available::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 100px;
  background: rgba(10,10,10,0.88);
  z-index: -1;
}

@keyframes spinBorderBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__available-dot {
  width: 8px; height: 8px; flex-shrink: 0;
  border-radius: 50%;
  background: #34C759;
  animation: availablePulse 2s ease-in-out infinite;
}

@keyframes availablePulse {
  0%   { box-shadow: 0 0 0 0   rgba(52,199,89,0.8); transform: scale(1); }
  60%  { box-shadow: 0 0 0 6px rgba(52,199,89,0);   transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0   rgba(52,199,89,0);   transform: scale(1); }
}

@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Letter-by-letter hover */
.section-title-hover { white-space: nowrap; }

.section-title-hover .char {
  display: inline-block;
  transition: color 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1);
  transition-delay: calc(var(--i, 0) * 42ms);
}

.section-title-hover:hover .char {
  color: var(--color-gold);
  transform: translateY(-4px);
}

.section-title-hover .char--space { display: inline; }

/* Hero scroll */
.hero__scroll-indicator {
  position: absolute; bottom: clamp(24px, 3vw, 48px);
  left: clamp(24px, 4vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  z-index: 2; opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 1.4s forwards;
}

.hero__scroll-indicator span {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  padding: clamp(80px, 12vw, 140px) clamp(24px, 4vw, 64px);
  max-width: 1400px; margin: 0 auto;
}

.section__header { margin-bottom: clamp(40px, 5vw, 64px); }

.section__label {
  display: block; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-text-secondary); margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700; letter-spacing: 0.02em; line-height: 1.15;
}

/* ============================================
   PROJECT CARDS — Tarefa 3 & 4
   ============================================ */
.projects__grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}

/* Stacking cards — each slides over the previous on scroll */
.project-card {
  position: sticky;
  top: 88px; /* below nav */
  cursor: none;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  padding: 12px;
  background: #0f0f0f; /* solid to cover card below */
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s, box-shadow 0.45s;
  margin-bottom: clamp(60px, 10vw, 120px); /* scroll space between cards */
}

/* Each card stacks slightly higher to show offset peek */
.project-card:nth-child(2) { top: 94px; }
.project-card:nth-child(3) { top: 100px; }

/* Zoom in suave + border highlight ao entrar */
.project-card:hover,
.project-card.is-touched {
  transform: scale(1.025);
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08),
              0 24px 64px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(255,255,255,0.08);
}

.project-card__image-wrap {
  position: relative; border-radius: 10px;
  overflow: hidden; aspect-ratio: 16 / 9;
}

/* ---- "Ver projeto" in info section on hover ---- */
.project-card__view-label {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1),
              color 0.3s;
  pointer-events: none;
}

.project-card:hover .project-card__view-label,
.project-card.is-touched .project-card__view-label {
  opacity: 1;
  transform: translateX(0);
  color: rgba(255,255,255,0.8);
}

.project-card__image {
  width: 100%; height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s var(--ease-out-expo);
}
.project-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card zoom — zoom in suave no hover, zoom out ao sair */
.project-card__image img,
.project-card__image video {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform: scale(1);
}
.project-card:hover .project-card__image img,
.project-card:hover .project-card__image video,
.project-card.is-touched .project-card__image img {
  transform: scale(1.08);
}

.project-card:hover .project-card__image,
.project-card.is-touched .project-card__image {
  filter: brightness(0.72);
}

/* Video container — centered, +160px, smooth easing */
.project-card__video-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: min(320px, 42%);
  aspect-ratio: 16 / 9;
  height: auto;
  z-index: 2; opacity: 0;
  transition: transform 0.8s var(--ease-out-expo), opacity 0.7s var(--ease-out-expo);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,0,0,0.75);
  outline: 4px solid transparent;
  outline-offset: 3px;
}

.project-card:hover .project-card__video-container,
.project-card.is-touched .project-card__video-container {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  outline-color: rgba(201, 168, 76, 0.6);
  box-shadow: 0 16px 56px rgba(0,0,0,0.75), 0 0 0 4px rgba(201, 168, 76, 0.25), 0 0 20px rgba(201, 168, 76, 0.15);
}

.project-card__video {
  width: 100%; height: 100%; object-fit: cover;
}

.project-card__info { padding: 16px 4px 0; }

.project-card__title {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 6px;
  color: var(--color-accent);
}

.project-card__bullets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  font-size: 0.78rem; color: var(--color-text-secondary);
}

.project-card__bullets span { white-space: nowrap; }

.bullet-sep {
  margin: 0 10px; opacity: 0.4;
}

/* ============================================
   SPECKS VIDEO SECTION
   ============================================ */
.specks-section {
  position: relative; width: 100%;
  height: 75vh; min-height: 400px;
  overflow: hidden;
}

.specks-section__video-wrap { position: absolute; inset: 0; }

.specks-section__video {
  width: 100%; height: 100%; object-fit: cover;
}

.specks-section__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(13,13,13,0.7) 0%, rgba(13,13,13,0.05) 25%,
    rgba(13,13,13,0.05) 75%, rgba(13,13,13,0.7) 100%
  );
}

/* ============================================
   ABOUT
   ============================================ */
.about__content {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 5vw, 80px); align-items: start;
}

.about__image-wrap {
  position: relative; border-radius: 12px;
  overflow: hidden; aspect-ratio: 3/4; perspective: 800px;
}

.about__video-container { width: 100%; height: 100%; }

.about__video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s var(--ease-out-expo); will-change: transform;
}

.about__bio {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.8; color: var(--color-text-secondary); margin-bottom: 20px;
}

.about__skills { margin-top: 40px; }

.about__skills h3,
.about__timeline h3 {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-secondary); margin-bottom: 20px;
}

/* Skill pills */
.skills-animated {
  display: flex; flex-wrap: wrap; gap: 12px;
}

.skill-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo),
              color 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
  opacity: 0; transform: translateY(16px) scale(0.95);
}

.skill-pill.is-visible {
  opacity: 1; transform: translateY(0) scale(1);
  transition-delay: calc(var(--delay, 0) * 100ms);
}

.skill-pill:hover {
  border-color: var(--color-gold-subtle);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.08);
}

.skill-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0; transform: scale(0);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  transition-delay: calc(var(--delay, 0) * 100ms + 300ms);
}

.skill-pill.is-visible .skill-pill__dot {
  opacity: 1; transform: scale(1);
}

/* Timeline */
.about__timeline { margin-top: 40px; }

.timeline { position: relative; padding-left: 24px; }

.timeline__line {
  position: absolute; left: 0; top: 0;
  width: 2px; height: 0;
  background: rgba(255,255,255,0.4);
  transition: height 0.05s linear;
}

.timeline__item { position: relative; padding: 0 0 20px 0; }

.timeline__item::before {
  content: ''; position: absolute; left: -28px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--color-border); background: var(--color-bg);
  transition: border-color 0.3s;
}

.timeline__item.is-active::before { border-color: #fff; }

.timeline__year {
  display: block; font-size: 0.72rem; font-weight: 500;
  color: rgba(255,255,255,0.5); margin-bottom: 3px;
}

.timeline__role { font-size: 0.85rem; color: var(--color-text-secondary); }

/* ============================================
   SKILLS TICKER — full-width marquee
   ============================================ */
.skills-ticker {
  width: 100%;
  height: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
  z-index: 2;
}

.skills-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 22s linear infinite;
  will-change: transform;
}

.skills-ticker__item {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 28px;
}

.skills-ticker__sep {
  color: var(--color-gold);
  opacity: 0.5;
  font-size: 1rem;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   PROCESS — 8 cards with demos (Tarefa 7)
   ============================================ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 22px;
  cursor: none;
  position: relative;
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo),
              background 0.3s;
}

.process__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(201,168,76,0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease-out-expo);
}

.process__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(135deg, #ffffff, var(--color-gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.process__card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.12);
  background: var(--color-surface-2);
}

.process__card:hover::before { opacity: 0; }
.process__card:hover::after  { opacity: 1; }

.process__card.is-active {
  border-color: var(--color-gold-subtle);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.06);
}

.process__icon { width: 36px; height: 36px; margin-bottom: 18px; color: #fff; }

.process-icon-svg .icon-draw {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  transition: stroke-dashoffset 1s var(--ease-out-expo);
}

.process__card.is-visible .icon-draw { stroke-dashoffset: 0; }

.process__step {
  display: block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--color-text-secondary); margin-bottom: 8px;
}

.process__title {
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px; color: #fff;
}

.process__desc {
  font-size: 0.78rem; line-height: 1.6; color: var(--color-text-secondary);
}

/* Process demo panel */
.process__demo {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.6s var(--ease-out-expo),
              opacity 0.4s var(--ease-out-expo),
              margin-top 0.4s var(--ease-out-expo);
  margin-top: 0;
}

.process__card.is-active .process__demo {
  max-height: 200px; opacity: 1; margin-top: 16px;
}

.process__demo-content {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.process__demo-visual { margin-bottom: 8px; }

.process__demo-visual svg {
  width: 100%; height: auto; max-height: 80px;
}

.process__demo-label {
  display: block; text-align: center;
  font-size: 0.68rem; color: var(--color-text-secondary);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 4vw, 64px);
  background: var(--color-bg);
}

/* Carousel wrapper */
.testimonials__carousel {
  position: relative;
  width: 360px;
  max-width: 90vw;
  margin: 0 auto;
}

/* Track: stacks slides on top of each other */
.testimonials__track {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #111;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 64px rgba(0,0,0,0.6);
}

/* Each slide is absolutely positioned, crossfade */
.testimonials__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.testimonials__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.testimonials__slide video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Progress bar */
.testimonials__progress-wrap {
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.testimonials__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  border-radius: 2px;
  transition: width linear;
}

/* Dots */
.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.testimonials__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.testimonials__dot.is-active {
  background: var(--color-gold);
  transform: scale(1.4);
}

/* ============================================
   CONTACT
   ============================================ */
.contact__content {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(48px, 6vw, 96px); align-items: start;
}

.form-group { position: relative; margin-bottom: 28px; }

.form-group input,
.form-group textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0 10px; font-size: 0.95rem; color: #fff;
  outline: none; transition: border-color 0.3s;
}
.form-group textarea { resize: vertical; min-height: 80px; }

.form-group label {
  position: absolute; left: 0; top: 14px;
  font-size: 0.85rem; color: var(--color-text-secondary);
  pointer-events: none;
  transition: transform 0.3s var(--ease-out-expo), font-size 0.3s var(--ease-out-expo), color 0.3s;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-22px); font-size: 0.68rem; color: rgba(255,255,255,0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }

.form-line {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: #fff;
  transition: width 0.4s var(--ease-out-expo);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line { width: 100%; }

.form-group.error input,
.form-group.error textarea { border-bottom-color: #ff4444; }
.form-group.error { animation: shake 0.4s var(--ease-out-expo); }
.form-group.success .form-line { width: 100%; background: #555; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.contact__submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; background: #fff; color: #000;
  border-radius: 100px; font-size: 0.85rem; font-weight: 600;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), background 0.3s;
}
.contact__submit:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 255, 255, 0.12); }
.contact__submit:active { transform: scale(0.97); }

.contact__info h4 {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-secondary); margin-bottom: 8px;
}
.contact__info > div { margin-bottom: 28px; }

.contact__link {
  font-size: 0.95rem; color: rgba(255,255,255,0.75); transition: color 0.3s;
}
.contact__link:hover { color: #fff; }

.contact__socials { display: flex; flex-wrap: wrap; gap: 12px; }

.contact__social {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--color-text-secondary);
  transition: color 0.3s, border-color 0.3s;
  padding: 8px 16px;
  border: 1px solid var(--color-border); border-radius: 100px;
}
.contact__social:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.contact__social-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center; padding: 36px 24px;
  font-size: 0.75rem; color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

/* ============================================
   RESPONSIVE — cobertura completa
   ============================================ */

/* ---- 1280px — large tablet / small laptop ---- */
@media (max-width: 1280px) {
  .hero__curtain.is-open {
    width: clamp(220px, 38vw, 520px);
    height: clamp(124px, 21.4vw, 293px);
  }
  @keyframes curtainReveal {
    0%   { width: 0; height: 0; opacity: 0; border-radius: 50%; }
    30%  { opacity: 0.9; border-radius: 32px; }
    100% { width: clamp(220px, 38vw, 520px); height: clamp(124px, 21.4vw, 293px); opacity: 1; border-radius: 16px; }
  }
}

/* ---- 1024px — tablet landscape ---- */
@media (max-width: 1024px) {
  .about__content { grid-template-columns: 1fr; gap: 40px; }
  .about__image-wrap { max-width: 340px; }
  .case-study__body { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact__content { grid-template-columns: 1fr; gap: 40px; }
  .hero__curtain.is-open {
    width: clamp(200px, 46vw, 460px);
    height: clamp(113px, 25.9vw, 259px);
  }
  .hero__title { font-size: clamp(2rem, 6vw, 5rem); }
}

/* ---- 900px — iPad / large phone landscape ---- */
@media (max-width: 900px) {
  .nav__eye { display: none; }
  .nav__links { gap: 20px; }
  .section { padding: clamp(60px, 10vw, 100px) clamp(20px, 4vw, 48px); }
  .projects__grid { gap: 32px; }
  .about__image-wrap { max-width: 280px; }
  .skills-ticker { height: 44px; }
  .skills-ticker__item { font-size: 0.75rem; padding: 0 20px; }
}

/* ---- 768px — tablet portrait / large mobile ---- */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  /* cursor */
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  button, a, input, textarea { cursor: auto; }

  /* nav */
  .nav { padding: 0 clamp(16px, 4vw, 32px); }
  .nav__links { gap: 14px; }
  .nav__link { font-size: 0.78rem; }
  .nav__link--cv { padding: 6px 14px; font-size: 0.78rem; }
  .nav__name { font-size: 0.68rem; gap: 4px; }

  /* hero */
  .hero__title { font-size: clamp(1.8rem, 6.5vw, 4rem); }
  .hero__curtain.is-open {
    width: clamp(180px, 68vw, 400px);
    height: clamp(101px, 38.25vw, 225px);
  }
  .hero__stack { gap: clamp(14px, 3vw, 24px); }

  /* loader */
  .loader__icon { width: 120px; height: 17px; }

  /* projects */
  .project-card__image-wrap { aspect-ratio: 16 / 10; }
  .project-card__video-container { width: min(220px, 46%); }

  /* specks */
  .specks-section { height: 55vh; min-height: 280px; }

  /* process */
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .process__card { padding: 22px 18px; }
  .process__title { font-size: 1rem; }

  /* skills ticker */
  .skills-ticker { height: 42px; }
  .skills-ticker__item { font-size: 0.72rem; padding: 0 16px; }
  .skills-ticker__sep { font-size: 0.9rem; }

  /* contact */
  .contact__content { grid-template-columns: 1fr; gap: 36px; }

  /* footer */
  .footer { padding: 28px 20px; font-size: 0.7rem; }
}

/* ---- 640px — large smartphones ---- */
@media (max-width: 640px) {
  /* nav — compact but visible */
  .nav__name { font-size: 0.56rem; gap: 2px; }
  .nav__links { gap: 12px; }
  .nav__link { font-size: 0.72rem; }
  .nav__photo-wrap { width: 34px; height: 34px; }

  /* hero */
  .hero__title { font-size: clamp(1.2rem, 6vw, 3rem); letter-spacing: 0.02em; }
  .hero__curtain.is-open {
    width: clamp(160px, 80vw, 360px);
    height: clamp(90px, 45vw, 203px);
  }
  .hero__stack { padding: 0 clamp(16px, 4vw, 32px); gap: 16px; }

  /* section */
  .section { padding: 56px clamp(16px, 5vw, 28px); }
  .section__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section__label { font-size: 0.65rem; }

  /* projects */
  .projects__grid { gap: 24px; }
  .project-card__image-wrap { aspect-ratio: 4 / 3; border-radius: 10px; }
  .project-card__video-container { width: min(190px, 50%); }
  .project-card__title { font-size: 1.05rem; }

  /* about */
  .about__content { gap: 28px; }
  .about__image-wrap { max-width: 100%; aspect-ratio: 4/3; }
  .about__bio { font-size: 0.9rem; }
  .timeline__role { font-size: 0.8rem; }

  /* process */
  .process__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .process__card { padding: 18px 14px; }
  .process__title { font-size: 0.9rem; }
  .process__desc { font-size: 0.72rem; }
  .process__step { font-size: 0.6rem; }
  .process__icon { width: 28px; height: 28px; }
  .process__demo { display: none; }

  /* skills ticker */
  .skills-ticker { height: 38px; }
  .skills-ticker__item { font-size: 0.68rem; padding: 0 12px; }
  .skills-ticker__sep { font-size: 0.8rem; }

  /* contact */
  .contact__submit { padding: 12px 28px; font-size: 0.82rem; }
  .contact__socials { gap: 8px; }
  .contact__social { padding: 6px 12px; font-size: 0.78rem; }
  .contact__social-icon { width: 15px; height: 15px; }

  /* specks */
  .specks-section { height: 45vh; min-height: 220px; }

  /* footer */
  .footer { padding: 24px 16px; font-size: 0.68rem; }
}

/* ---- 480px — smartphones ---- */
@media (max-width: 480px) {
  /* hero */
  .hero__title { font-size: clamp(1.1rem, 6vw, 1.8rem); }
  .hero__curtain.is-open {
    width: clamp(140px, 88vw, 320px);
    height: clamp(79px, 49.5vw, 180px);
  }

  /* section */
  .section { padding: 48px 16px; }
  .section__title { font-size: 1.5rem; }

  /* process */
  .process__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .process__card { padding: 16px 12px; }
  .process__title { font-size: 0.82rem; }
  .process__desc { display: none; }

  /* about */
  .about__image-wrap { aspect-ratio: 1; }

  /* loader */
  .loader__icon { width: 96px; height: 14px; }

  /* skills ticker */
  .skills-ticker { height: 36px; }
  .skills-ticker__item { font-size: 0.63rem; padding: 0 10px; }
  .skills-ticker__track { animation-duration: 16s; }
}

/* ---- 360px — small phones ---- */
@media (max-width: 360px) {
  .hero__title { font-size: clamp(1rem, 7.5vw, 1.4rem); letter-spacing: 0.03em; }
  .nav__link--cv { padding: 4px 10px; font-size: 0.7rem; }
  .section { padding: 40px 14px; }
  .process__grid { grid-template-columns: 1fr; gap: 8px; }
  .skills-ticker__item { font-size: 0.6rem; padding: 0 8px; }
  .skills-ticker__sep { font-size: 0.7rem; }
  .hero__curtain.is-open {
    width: clamp(130px, 90vw, 300px);
    height: clamp(73px, 50.6vw, 169px);
  }
}
