@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}

:root {
  --bg: #161616;
  --bg-2: #1c1c1c;
  --bg-3: #222;
  --cream: #eadfc8;
  --muted: rgba(234, 223, 200, 0.66);
  --dim: rgba(234, 223, 200, 0.55);
  --line: rgba(234, 223, 200, 0.12);
  --gold: #d6b27a;
  --sage: #8fa89a;
  --rose: #c08f7e;
  --pad: clamp(20px, 5.5vw, 68px);
  --max: 1240px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: -20vh -20vw auto;
  height: 90vh;
  background: radial-gradient(50% 50% at 50% 30%, rgba(234, 223, 200, 0.06), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left));
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

.display, .title, .contact__title {
  margin: 0;
  font-family: "Bebas Neue", "Anton", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.display { font-size: clamp(56px, 10.5vw, 148px); }
.title { font-size: clamp(44px, 6.5vw, 88px); }
.display em, .title em, .contact__title em {
  font-style: normal;
  color: var(--cream);
}

.display em, .contact__title em {
  color: transparent;
  -webkit-text-stroke: max(1px, 0.012em) var(--cream);
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 22px max(var(--pad), env(safe-area-inset-left));
  font-size: 15px;
  transition: background-color 300ms ease, padding 300ms var(--ease), border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 14px;
  background: rgba(22, 22, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; justify-self: start;
  padding: 8px 0;
}
.nav__brand svg { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 8px 16px; border-radius: 999px;
  text-decoration: none; color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav__role { justify-self: end; color: var(--muted); }

.intro { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 110px); }

.video-section { padding-bottom: clamp(56px, 8vw, 100px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__text { max-width: 380px; margin: 0; color: var(--muted); }

.player {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border: 0; padding: 0; cursor: pointer;
  background: url("assets/video/capa.webp?v=2") center / cover no-repeat;
  color: var(--cream);
  font: inherit;
  transition: opacity 400ms ease, visibility 400ms;
}
.player__cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 0.15), rgba(10, 10, 10, 0.55));
}
.player__cover.is-hidden { opacity: 0; visibility: hidden; }
.player__btn {
  position: relative;
  display: grid; place-items: center;
  width: clamp(68px, 8vw, 96px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 10px rgba(234, 223, 200, 0.14);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.player__btn svg { width: 34%; fill: #141414; margin-left: 6%; }
.player__label {
  position: relative;
  font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(22, 22, 22, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.player__cover:active .player__btn { transform: scale(0.95); }
.player__cover:focus-visible { outline: 2px solid var(--cream); outline-offset: -6px; }
.video-note { margin: 22px auto 0; text-align: center; color: var(--dim); font-size: 14px; max-width: 520px; }

.stack { padding-top: clamp(40px, 6vw, 80px); }
.stack__groups {
  display: grid; grid-template-columns: 4fr 2.5fr 1.9fr; gap: clamp(16px, 2vw, 28px);
}
.stack__group {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.stack__label {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.stack__label span { color: var(--dim); }
.stack__list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tech {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 112px; padding: 18px 8px 14px;
  border-radius: 16px;
  background: rgba(234, 223, 200, 0.04);
  border: 1px solid rgba(234, 223, 200, 0.08);
  font-size: 14px; font-weight: 500;
  transition: transform 260ms var(--ease), border-color 260ms ease, background-color 260ms ease;
}
.tech__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 16px;
  background: #efe6d3;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.tech__icon img { width: 36px; height: 36px; transition: transform 320ms var(--ease); }

.projects { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 10vw, 130px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  transition: transform 300ms var(--ease), border-color 300ms ease, box-shadow 300ms var(--ease), opacity 700ms var(--ease);
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #262626, #1a1a1a);
  border-bottom: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.card__title { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0.01em; }
.card__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.card__tags li { font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.card__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.card__link svg { width: 16px; height: 16px; transition: transform 250ms var(--ease); }

.card--soon .card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 22, 22, 0.6), transparent 55%);
}
.card--soon .card__title { color: var(--muted); }

.mock { position: absolute; inset: 14% 10% -6%; border-radius: 10px 10px 0 0; background: #1d1d1d; border: 1px solid rgba(234, 223, 200, 0.1); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); transition: transform 600ms var(--ease); }
.mock__bar { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid rgba(234, 223, 200, 0.07); }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(234, 223, 200, 0.2); }
.mock__page { position: relative; height: 100%; }
.mock__page span { position: absolute; border-radius: 5px; background: rgba(234, 223, 200, 0.08); }
.mock__logo { left: 7%; top: 9%; width: 16%; height: 5%; background: var(--accent, var(--gold)) !important; opacity: 0.85; }
.mock__h1 { left: 7%; top: 22%; width: 42%; height: 8%; background: rgba(234, 223, 200, 0.7) !important; }
.mock__h2 { left: 7%; top: 33%; width: 32%; height: 8%; background: rgba(234, 223, 200, 0.7) !important; }
.mock__p { left: 7%; top: 46%; width: 38%; height: 3.5%; }
.mock__btn { left: 7%; top: 56%; width: 18%; height: 8%; border-radius: 99px !important; background: var(--accent, var(--gold)) !important; }
.mock__img { right: 7%; top: 20%; width: 36%; height: 52%; background: linear-gradient(150deg, var(--accent, var(--gold)), transparent) !important; opacity: 0.5; }
.mock--1 { --accent: var(--sage); }
.mock--1 .mock__img { left: 7%; right: auto; top: 20%; width: 86%; height: 30%; }
.mock--1 .mock__h1 { top: 56%; } .mock--1 .mock__h2 { top: 67%; width: 26%; } .mock--1 .mock__p, .mock--1 .mock__btn { display: none; }
.mock--2 { --accent: var(--rose); }
.mock--2 .mock__h1 { left: 29%; width: 42%; } .mock--2 .mock__h2 { left: 34%; width: 32%; }
.mock--2 .mock__p { left: 31%; } .mock--2 .mock__btn { left: 41%; }
.mock--2 .mock__img { display: none; }

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--cream); background: rgba(234, 223, 200, 0.06); }
  .nav__brand:hover svg { transform: translateX(-4px); }
  .player__cover:hover .player__btn { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(234, 223, 200, 0.1); }
  .card:hover { transform: translateY(-6px); border-color: rgba(234, 223, 200, 0.28); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
  .card:hover .mock { transform: translateY(-4%); }
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__link svg { transform: translate(3px, -3px); }
  .card::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--x, 50%) var(--y, 0%), rgba(234, 223, 200, 0.07), transparent 65%);
    opacity: 0; transition: opacity 300ms ease;
  }
  .card:hover::after { opacity: 1; }
  .tech:hover { transform: translateY(-4px); background: rgba(234, 223, 200, 0.07); border-color: rgba(234, 223, 200, 0.22); }
  .tech:hover .tech__icon img { transform: scale(1.12) rotate(-4deg); }
  .btn:hover { background: transparent; color: var(--cream); }
  .btn:hover svg { transform: translateX(4px); }
}

.contact { padding-bottom: clamp(60px, 8vw, 100px); }
.contact__box {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, rgba(214, 178, 122, 0.10), transparent 60%), var(--bg-2);
}
.contact__title { font-size: clamp(64px, 12vw, 170px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; margin-top: 36px; padding: 0 28px 0 32px;
  border-radius: 999px; border: 1.5px solid var(--cream);
  background: var(--cream); color: #141414;
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform 220ms var(--ease); }
.btn:active { transform: scale(0.97); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact__actions .btn { margin-top: 0; }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(234, 223, 200, 0.4); padding: 0 26px; }
.ico {
  display: inline-block; flex: none;
  width: 19px; height: 19px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}
.ico--whatsapp { --ico: url("assets/icons/whatsapp.svg"); }
.ico--github { --ico: url("assets/icons/github.svg"); }
.ico--instagram { --ico: url("assets/icons/instagram.svg"); }
.contact__phone { margin: 22px 0 0; font-size: 14px; color: var(--dim); }
.contact__phone a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.btn:focus-visible, .card:focus-visible, .nav a:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 60px; }
.notfound__code { margin: 0 0 8px; font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(120px, 22vw, 260px); line-height: 0.85; color: transparent; -webkit-text-stroke: 2px var(--cream); }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 28px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--dim); font-size: 14px;
}

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in { transition: transform 300ms var(--ease), border-color 300ms ease, box-shadow 300ms var(--ease), opacity 800ms var(--ease); }

.split__w {
  display: inline-block; vertical-align: bottom; overflow: hidden;
  padding: 0.16em 0.04em 0.04em; margin: -0.16em -0.04em -0.04em;
}
.split__w > span { display: inline-block; transform: translateY(110%); transition: transform 900ms var(--ease); }
.split.is-in .split__w > span { transform: none; }

.is-leaving body { opacity: 0; transition: opacity 250ms ease; }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .split:not(.is-split) { visibility: hidden; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out 260ms var(--ease) both; }
  ::view-transition-new(root) { animation: page-in 460ms var(--ease) both; }
  @keyframes page-out { to { opacity: 0; transform: scale(0.985); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stack__groups { grid-template-columns: 1fr 1fr; }
  .stack__group:first-child { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: start; gap: 18px; }
  .section-head--center { align-items: center; }
}

@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; padding-block: 16px; }
  .nav__links { display: none; }
  .nav__role { font-size: 13px; }
  .grid { grid-template-columns: 1fr; }
  .stack__groups { grid-template-columns: 1fr; }
  .stack__group { padding: 20px; border-radius: 18px; }
  .stack__label { margin-bottom: 14px; font-size: 12px; }
  .stack__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tech { width: auto; min-width: 0; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px; border-radius: 12px; font-size: 14px; white-space: nowrap; }
  .tech__icon { width: 36px; height: 36px; border-radius: 9px; flex: none; }
  .tech__icon img { width: 22px; height: 22px; }
  .contact__actions .btn--ghost { flex: 1; justify-content: center; }
  .card__title { font-size: 30px; }
  .player { border-radius: 14px; }
  .player__label { font-size: 11px; }
  .btn { width: 100%; justify-content: center; white-space: nowrap; padding-inline: 18px; font-size: 13px; letter-spacing: 0.07em; }
  .contact__box { border-radius: 20px; }
  .footer { flex-direction: column; gap: 4px; }
}

@media (max-width: 360px) {
  .stack__group { padding: 16px; }
  .tech { gap: 8px; padding: 6px; font-size: 13px; }
  .tech__icon { width: 32px; height: 32px; border-radius: 8px; }
  .tech__icon img { width: 20px; height: 20px; }
}
