:root {
  --bg: #070707;
  --bg-soft: #101010;
  --panel: #171717;
  --panel-light: #f4f1ea;
  --text: #f7f7f2;
  --muted: #b9b6ad;
  --ink: #151515;
  --accent: #ffd84a;
  --accent-2: #66d9ef;
  --line: rgba(255, 255, 255, .13);
  --radius: 18px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 216, 74, .12), transparent 28%),
    radial-gradient(circle at 90% 28%, rgba(102, 217, 239, .10), transparent 24%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 44%, #050505 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(20px, 6vw, 88px);
  background: rgba(7, 7, 7, .74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.logo {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.logo span {
  margin-left: 6px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 750;
  padding: 9px 12px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

.nav-links .cta {
  color: #111;
  background: var(--accent);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  padding: 0;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 99px;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 82px);
  min-height: calc(100vh - 82px);
  padding: clamp(70px, 8vw, 130px) clamp(20px, 6vw, 88px) 90px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 7.1rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  font-weight: 900;
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #111;
  background: var(--accent);
  box-shadow: 0 14px 42px rgba(255, 216, 74, .22);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

.hero-panel {
  position: relative;
  align-self: stretch;
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  animation: floatPanel 7s ease-in-out infinite;
}

.hero-panel img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(.92);
  transform: scale(1.03);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, .72));
}

.hero-badge {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(0, 0, 0, .44);
  backdrop-filter: blur(12px);
}

.hero-badge span {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-badge strong {
  font-size: .95rem;
}

.section {
  position: relative;
  padding: clamp(74px, 9vw, 120px) clamp(20px, 6vw, 88px);
}

.alt {
  background: rgba(255, 255, 255, .035);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p,
.two-column p,
.contact p {
  color: var(--muted);
}

.video-card {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-slider {
  position: relative;
}

.portfolio-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 18px;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-track .card {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
}

.slider-arrow {
  position: absolute;
  top: 155px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.slider-arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
}

.slider-arrow-left {
  left: -24px;
}

.slider-arrow-left::before {
  transform: rotate(45deg) translate(2px, -2px);
}

.slider-arrow-right {
  right: -24px;
}

.slider-arrow-right::before {
  transform: rotate(225deg) translate(2px, -2px);
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, .82);
  transform: scale(1.06);
}

.slider-progress {
  height: 5px;
  margin: 10px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.slider-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(255, 216, 74, .42);
  transition: width .18s ease;
}

.card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 64px rgba(0, 0, 0, .23);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.project-card {
  position: relative;
  cursor: pointer;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transition: transform .25s ease, background .25s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 35px;
  right: 36px;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--accent);
  transition: transform .25s ease;
}

.project-card:hover::before {
  background: rgba(0, 0, 0, .72);
  transform: scale(1.08);
}

.project-card:hover::after {
  transform: translateX(2px) scale(1.04);
}

.project-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 216, 74, .42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}

.card img,
.card-preview {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.card:hover img,
.card:hover .card-preview {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
}

.project-tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: #111;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card p {
  color: var(--muted);
}

.card h4 {
  margin: 22px 0 6px;
  color: var(--accent-2);
}

.bio-section {
  overflow: hidden;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.profile-stack {
  display: grid;
  gap: 18px;
}

.profile-stack img {
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.skills {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: var(--panel-light);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skills ul {
  margin: 0;
  padding-left: 18px;
}

.skills li {
  margin: 10px 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.timeline-item {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  transition: transform .25s ease, border-color .25s ease;
}

.timeline-item:hover {
  transform: translateY(-6px);
  border-color: rgba(102, 217, 239, .42);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.timeline-item p {
  color: var(--muted);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

blockquote {
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-light);
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 650;
}

cite {
  display: block;
  margin-top: 18px;
  color: #5b5851;
  font-style: normal;
  font-weight: 900;
}

.contact {
  text-align: center;
  background:
    linear-gradient(rgba(7, 7, 7, .55), rgba(7, 7, 7, .9)),
    url("fotos/ChatGPT_Image_4_jun_2026_23_29_52.png") center / cover fixed;
}

.contact > div {
  max-width: 820px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-links a {
  color: #111;
  background: var(--text);
  padding: 12px 17px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}

.contact-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

footer {
  padding: 30px clamp(20px, 6vw, 88px);
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.project-page {
  min-height: 100vh;
}

.project-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, .78);
  backdrop-filter: blur(18px);
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}

.back-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
  transform: rotate(45deg) translate(2px, -2px);
}

.back-button:hover {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, .11);
}

.project-hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 82px);
  padding: clamp(70px, 8vw, 120px) clamp(20px, 6vw, 88px);
}

.project-detail {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.project-detail .section-heading {
  margin-bottom: 32px;
}

.project-video {
  max-width: none;
}

.phone-video {
  width: min(420px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.project-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.project-notes article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}

.project-notes h2 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.project-notes p {
  margin: 0;
  color: var(--muted);
}

.short-video-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.short-video-stack .phone-video {
  width: 100%;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

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

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .24s;
}

@keyframes floatPanel {
  0%,
  100% {
    transform: rotate(1.2deg) translateY(0);
  }

  50% {
    transform: rotate(.2deg) translateY(-12px);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .hero-panel {
    min-height: 420px;
    transform: none;
  }

  .grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-track .card {
    flex-basis: calc((100% - 22px) / 2);
  }

  .two-column,
  .reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .nav {
    padding: 14px 18px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 73px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 7, 7, .96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.7rem);
  }

  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-panel {
    min-height: 360px;
  }

  .hero-badge {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .portfolio-track .card {
    flex-basis: 100%;
  }

  .slider-arrow {
    top: 130px;
    width: 42px;
    height: 42px;
  }

  .slider-arrow-left {
    left: -8px;
  }

  .slider-arrow-right {
    right: -8px;
  }

  .card img,
  .card-preview {
    height: 260px;
  }

  .contact {
    background-attachment: scroll;
  }

  .short-video-stack {
    grid-template-columns: 1fr;
  }

  .short-video-stack .phone-video {
    width: min(420px, 100%);
    justify-self: center;
  }

  .project-notes {
    grid-template-columns: 1fr;
  }
}
